This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 238470 - Eternal 'Background scanning of process' of a JavaScript file in a Maven project
Summary: Eternal 'Background scanning of process' of a JavaScript file in a Maven project
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-17 01:06 UTC by JVerstrynge
Modified: 2014-01-30 03:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
How to replicate the issue (325.43 KB, application/octet-stream)
2013-11-17 01:06 UTC, JVerstrynge
Details
thread dumps (17.96 KB, application/zip)
2014-01-16 10:11 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JVerstrynge 2013-11-17 01:06:30 UTC
Created attachment 142274 [details]
How to replicate the issue

NetBeans stalls eternally while performing 'Background scanning of process'.

I have managed to replicate this issue reported by many. I am attaching a mini maven project. Open it in NetBeans 7.3.1 or 7.4 and wait for the scanning to start.

This issue started when I migrated from 7.3.1 to 7.4. It did not happen before. When I reverted to 7.3.1, the issue persisted.

The projet was under git. But when I exported it, the issue remained in the non-versioned directory too.

Why is this js file causing the issue? I have no idea...
Comment 1 Vladimir Riha 2014-01-16 10:11:48 UTC
Created attachment 144020 [details]
thread dumps

Thank you for the project. Reproducible, I'm attaching couple of thread dumps


Product Version: NetBeans IDE Dev (Build 201401160001)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 Petr Pisl 2014-01-29 13:26:53 UTC
Fixed in webmain. 

The current logic is that a js files bigger then 1024 x 1024 are not parsed by default. If a file has size bigger then (1024 x 1024)/3, then is tested, whether is minimized (the first 5 nocomment lines have more then 200 chars), then the file is not parsed as well.
Comment 3 Quality Engineering 2014-01-30 03:05:15 UTC
Integrated into 'main-silver', will be available in build *201401300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/18753ec27e50
User: Petr Pisl <ppisl@netbeans.org>
Log: #238470 - Eternal 'Background scanning of process' of a JavaScript file in a Maven project