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.
a lot of java.lang.IllegalStateException: java.lang.IllegalStateException: FAILED ASSERTION at org.mozilla.nb.javascript.Kit.codeBug(Kit.java:449) at org.mozilla.nb.javascript.Node.getExistingIntProp(Node.java:769) at org.mozilla.nb.javascript.Parser.getterSetterProperty(Parser.java:3625) at org.mozilla.nb.javascript.Parser.primaryExpr(Parser.java:3328)
Created attachment 89633 [details] one of exeption
Please, remove logging exception. It is prevent other logging. I do not expect such logging if I open fierfox/crome C/C++ project.
Hi, can you please attach some source code which reproduces this issue? Thanks.
Sources: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.5.6/source/firefox-3.5.6.source.tar.bz2
I am not able to reproduce using the current dev build of NB 6.9. How exactly did you set up the project in the IDE? I used the following steps: 1. Expanded the source archive 2. Selected New Project -> C/C++ -> C/C++ project with existing sources 3. In the next page, selected the chrome subdirectory as the existing sources dir and changed the configuration mode to Custom 4. In the next page, selected chrome/Makefile.in as the existing makefile, unchecked Clean and Build after Finish 5. Then I just accepted all the defaults and finished the wizard 6. Waited for the source scanning to complete 7. From the Files tab, opened all the individual .js files in the editor => No exception. I am attaching the zipped chrome subdirectory for convenience, so this is easier to reproduce.
Created attachment 94051 [details] chrome.zip
All steps right except: -remove "test" pattern from ignored folders pattern on "source files" step. I also do not see exceptions in your example in current development IDE. But on real chromium-trunk (from 7 December 2009) bug still reproduced. See attachment (contains assertion with previous IllegalArgumentException, may be it help). I still do not see resolvable explanation in exceptions. It make too difficult to point on file that causes exception. My steps is: - download chromium - build chromium with flags provide CFLAGS="-g3 -gwdarf-2" and CXXFLAGS="-g3 -gwdarf-2" - start IDE with 1G Xmx - create project from existent code: Custom, without build, remove test pattern. - See a very, very, very slow scanning. It consumes a several hours (and about 120 minutes of CPU time). See a lot of exception in log.
Created attachment 94065 [details] fresh log
(In reply to comment #7) > - See a very, very, very slow scanning. It consumes a several hours (and about > 120 minutes of CPU time). Sorry, not veyr slow, real time is: INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: file:/net/elif/export1/sside/av202691/chromas/ took: 167 ms (New or modified files: 11, Deleted files: 0) INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 2 source roots took: 1486978 ms (New or modified files: 73895, Deleted files: 0)
Should be fixed in NB 6.9, i will try to look at this.
The codeBug function is designed to terminate parsing process, if there is something wrong in a js file. It's a part of the mozilla parser. The function never ends and always throws the java.lang.IllegalStateException: FAILED ASSERTION . The exception is caught in NetBeans and then the stacktrace is printed to the error stream. Because the exceptions is basically "a return type" of the parsing, these exceptions shouldn't be printed. When I look into the code, it looks like the printing was added by vstejskal for some debug reasons. So the patch remove printing the exception. Fixed in the webmain.
Could you point to change set that fix a problem?
http://hg.netbeans.org/web-main/rev/56cfe3018750 The change is simple. Just remove the printing of the exceptions.
Integrated into 'main-golden', will be available in build *201003250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/56cfe3018750 User: Petr Pisl <ppisl@netbeans.org> Log: #174755 - a lot of java.lang.IllegalStateException: FAILED ASSERTION