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.
Exception in inaccuracy tests from NetBeans IDE Dev (Build cnd-main-5706-on-20110414) SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.cnd.navigation.overrides.AnnotationsHolder java.lang.NullPointerException at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1027) at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1010) at org.netbeans.editor.BaseTextUI.getYFromPos(BaseTextUI.java:337) at org.netbeans.editor.GlyphGutter.changedLine(GlyphGutter.java:615) at org.netbeans.editor.Annotations.fireChangedLine(Annotations.java:640) at org.netbeans.editor.Annotations.refreshLine(Annotations.java:560) at org.netbeans.editor.Annotations.addAnnotation(Annotations.java:296) at org.netbeans.modules.editor.NbEditorDocument.addAnnotation(NbEditorDocument.java:233) at org.openide.text.NbDocument.addAnnotation(NbDocument.java:504) at org.netbeans.modules.cnd.navigation.overrides.BaseAnnotation.attach(BaseAnnotation.java:216) at org.netbeans.modules.cnd.navigation.overrides.AnnotationsHolder.run(AnnotationsHolder.java:187) Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to at org.openide.util.RequestProcessor$Task.schedule(RequestProcessor.java:1465) at org.netbeans.modules.cnd.navigation.overrides.AnnotationsHolder.setNewAnnotations(AnnotationsHolder.java:221) at org.netbeans.modules.cnd.navigation.overrides.OverrideTaskFactory$PhaseRunnerImpl.addAnnotations(OverrideTaskFactory.java:173) at org.netbeans.modules.cnd.navigation.overrides.OverrideTaskFactory$PhaseRunnerImpl.run(OverrideTaskFactory.java:155) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$5.run(CsmFileTaskFactory.java:474) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$CsmSafeRunnable.run(CsmFileTaskFactory.java:491) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Editor team, please evaluate bug. I do not see anything wrong in cnd side.
This exception now blocks Code Model tests. Important task for CND or Editor team. org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.NullPointerException at org.openide.util.RequestProcessor$Task.schedule(RequestProcessor.java:1465) at org.netbeans.modules.cnd.navigation.overrides.AnnotationsHolder.setNewAnnotations(AnnotationsHolder.java:221) at org.netbeans.modules.cnd.navigation.overrides.OverrideTaskFactory$PhaseRunnerImpl.addAnnotations(OverrideTaskFactory.java:173) at org.netbeans.modules.cnd.navigation.overrides.OverrideTaskFactory$PhaseRunnerImpl.run(OverrideTaskFactory.java:155) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$5.run(CsmFileTaskFactory.java:474) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$CsmSafeRunnable.run(CsmFileTaskFactory.java:491) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968) Caused by: java.lang.NullPointerException at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1027) at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1010) at org.netbeans.editor.BaseTextUI.getYFromPos(BaseTextUI.java:337) at org.netbeans.editor.GlyphGutter.changedLine(GlyphGutter.java:615) at org.netbeans.editor.Annotations.fireChangedLine(Annotations.java:640) at org.netbeans.editor.Annotations.refreshLine(Annotations.java:560) at org.netbeans.editor.Annotations.addAnnotation(Annotations.java:296) at org.netbeans.modules.editor.NbEditorDocument.addAnnotation(NbEditorDocument.java:233) at org.openide.text.NbDocument.addAnnotation(NbDocument.java:504) at org.netbeans.modules.cnd.navigation.overrides.BaseAnnotation.attach(BaseAnnotation.java:216) at org.netbeans.modules.cnd.navigation.overrides.AnnotationsHolder.run(AnnotationsHolder.java:187) ... 2 more
It looks like BasicTextUI.editor is null. I'll attempt to fix it. Btw what module's tests are failing? I've tried cnd.navigation and cnd.modelimpl and they pass fine. Is it random? If so please add RANDOM keyword.
No. It is not a OpenSource tests (out of NetBeans repository). C/C++ team uses some internal tool in order to check parser accuracy.
So please provide steps how can I reproduce the issue. Thanks.
Workaround is found. Special delay between open and close file is added. Test scenario before fix: for (file : AllFilesInProject) { openFileInEditor(file); isBadFile = validateFileInInternalAPI(file); if (isBadFile) { sleepInSeconds(3); } doSomeActions(file, isBadFile); closeFileInEditor(file); } Test scenario now: for (file : AllFilesInProject) { openFileInEditor(file); isBadFile = validateFileInInternalAPI(file); // if (isBadFile) { sleepInSeconds(3); // } doSomeActions(file, isBadFile); closeFileInEditor(file); }
Hello, is this still P1 bug for the editor team??? Thanks, David
Summary: In order to analyze 622 files in IDE I miss about 826 seconds. Almost all time I am waiting while file will appear or disappear in editor. Additional time penalty (50 ms per file) will make my tests stable again.
Well, so the summary is also a complaint to shrink a per-file time or is it just a description of the current situation? Anyway I plan to rewrite the Annotations class in post NB 7.0.1 time so I treat this as a requirement for the new class to not fail your tests.
*** Bug 198581 has been marked as a duplicate of this bug. ***
*** Bug 198701 has been marked as a duplicate of this bug. ***
Created attachment 108711 [details] stacktrace Closing some editor tabs.
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=176598
Created attachment 110497 [details] stacktrace Switching project groups.
http://hg.netbeans.org/jet-main/rev/e55ff6998af5 Cnd team, could you please run your tests whether it will proceed fine now? Thanks.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/e55ff6998af5 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #197857 - Error in RequestProcessor org.netbeans.modules.cnd.navigation.overrides.AnnotationsHolder - NPE from GlyphGutter:654.
*** Bug 196077 has been marked as a duplicate of this bug. ***
*** Bug 195930 has been marked as a duplicate of this bug. ***