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 240099 - org.netbeans.modules.parsing.impl.indexing.ScanCancelledException: Slow scanning in text/javascript
Summary: org.netbeans.modules.parsing.impl.indexing.ScanCancelledException: Slow scann...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: issues@web
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-07 21:10 UTC by alied
Modified: 2014-07-24 08:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203899


Attachments
stacktrace (2.08 KB, text/plain)
2014-01-07 21:10 UTC, alied
Details
Big file (130.95 KB, application/x-7z-compressed)
2014-02-10 13:29 UTC, Ondrej Brejla
Details
stacktrace (1.11 KB, text/plain)
2014-03-10 09:01 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2014-01-07 21:10:07 UTC
Build: NetBeans IDE 7.4 (Build 201310012201)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
GUEST: Working on a Maven Java project. Renaming some packages in the src/main/resources. Getting "can't rename because scanning or project".

GUEST: Blocking wen scanning web maven module

alied: after a while running and editing the IDE gets sluggish. background scanning of projects keeps even after I closed the project




Stacktrace: 
org.netbeans.modules.parsing.impl.indexing.ScanCancelledException: Slow scanning in text/javascript
   at java.lang.Thread.getStackTrace(Thread.java:1588)
   at org.netbeans.modules.parsing.impl.indexing.LogContext.create(LogContext.java:131)
   at org.netbeans.modules.parsing.impl.indexing.LogContext.create(LogContext.java:124)
   at org.netbeans.modules.parsing.impl.indexing.PathRegistry.scheduleFirer(PathRegistry.java:829)
   at org.netbeans.modules.parsing.impl.indexing.PathRegistry.resetCacheAndFire(PathRegistry.java:822)
   at org.netbeans.modules.parsing.impl.indexing.PathRegistry.access$500(PathRegistry.java:86)
Comment 1 alied 2014-01-07 21:10:09 UTC
Created attachment 143692 [details]
stacktrace
Comment 2 Exceptions Reporter 2014-02-10 06:43:25 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=203899
Comment 3 Petr Pisl 2014-02-10 09:52:16 UTC
Due to the last report I'm moving this to php.
Comment 4 Ondrej Brejla 2014-02-10 10:01:24 UTC
Sorry but parsing PHP files bigger than 5MB is not allowed and is forbidden in code. Can you try to create empty php project (no features like versioning etc.) and put there that big file? It shouldn't be parsed. 

Run NB with this option: -J-Dorg.netbeans.modules.php.editor.parser.Logger.level=FINE

You can also mail me that file...zipped to obrejla@netbeans.org Thanks.
Comment 5 KOMOKHEPBOB 2014-02-10 13:07:37 UTC
(In reply to Ondrej Brejla from comment #4)
> Sorry but parsing PHP files bigger than 5MB is not allowed and is forbidden
> in code. Can you try to create empty php project (no features like
> versioning etc.) and put there that big file? It shouldn't be parsed. 
> 
> Run NB with this option:
> -J-Dorg.netbeans.modules.php.editor.parser.Logger.level=FINE
> 
> You can also mail me that file...zipped to obrejla@netbeans.org Thanks.

Hi,

You probably understood me wrong - it is *.html file (not PHP) which contains log with PHP errors.

I've tried creating an empty project and putting this *.html file inside - the same problem occurred.

I will email you this file zipped. Hope it will help to get rid of this bug :)
Comment 6 Ondrej Brejla 2014-02-10 13:10:38 UTC
Ok, reassigning to html.
Comment 7 KOMOKHEPBOB 2014-02-10 13:22:08 UTC
(In reply to Ondrej Brejla from comment #6)
> Ok, reassigning to html.

Email sent. Hope it will help.
Comment 8 Ondrej Brejla 2014-02-10 13:29:23 UTC
Created attachment 144986 [details]
Big file

Hmm, I tried that in the dev build and file is parsed properly in few secs (file attached)...no endless scanning. The only thing in the log is JS parser exception. It will be fixed by ppisl. So this is "works for me".

You can try the dev build... or you have some strange setup, hard to say. Try to make "fresh" instal, with clean userdir and no old settings imported.
Comment 9 KOMOKHEPBOB 2014-02-10 13:32:44 UTC
(In reply to Ondrej Brejla from comment #8)
> Created attachment 144986 [details]
> Big file
> 
> Hmm, I tried that in the dev build and file is parsed properly in few secs
> (file attached)...no endless scanning. The only thing in the log is JS
> parser exception. It will be fixed by ppisl. So this is "works for me".
> 
> You can try the dev build... or you have some strange setup, hard to say.
> Try to make "fresh" instal, with clean userdir and no old settings imported.

I will try it in a few hours. Will install NetBeans on a fresh PC. If it will work for me too, I'll try to compare both IDE settings.
Comment 10 Petr Pisl 2014-02-10 14:21:55 UTC
I have fixed the js parser exception noted by Ondra.
Comment 11 KOMOKHEPBOB 2014-02-11 11:02:00 UTC
(In reply to Ondrej Brejla from comment #8)
> Created attachment 144986 [details]
> Big file
> 
> Hmm, I tried that in the dev build and file is parsed properly in few secs
> (file attached)...no endless scanning. The only thing in the log is JS
> parser exception. It will be fixed by ppisl. So this is "works for me".
> 
> You can try the dev build... or you have some strange setup, hard to say.
> Try to make "fresh" instal, with clean userdir and no old settings imported.

I've tried clean installs with 7.4 and nightly build.

7.4 - bug exists
NB -  no bug

So I believe it will be fixed in a new release.
Comment 12 Exceptions Reporter 2014-03-10 09:01:06 UTC
Created attachment 145892 [details]
stacktrace

a
Comment 13 Petr Jiricka 2014-07-18 11:34:11 UTC
So what else remains to be done here?
Comment 14 Marek Fukala 2014-07-24 08:38:02 UTC
seems the issue has been already fixed