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.
Build: NetBeans IDE Dev (Build nbms-and-javadoc-180-on-20150731) VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14 OS: Linux User Comments: GUEST: Close .cpp file tbrunhoff: clicking on code while stoppend in gdb. tbrunhoff: clicking on code while stopped in gdb. Stacktrace: java.lang.AssertionError: referenced macro is null. ref [881,890] file=KeyBasedUID on FileKey (/home/toddb/src/srcapp/libmapi/omneon/shared/media/media.nb/N/, /home/toddb/src/srcapp/libmapi/omneon/shared/media/avcmediafile.cc);refKind=DIRECT_USAGE;refObj=KeyBasedUID on MacroKey: __linux__[M 0-0] {/home/toddb/src/srcapp/libmapi/omneon/shared/media/avcmediafile.cc; /home/toddb/src/srcapp/libmapi/omneon/shared/media/media.nb/N/};topUID=KeyBasedUID on FileKey (/home/toddb/src/srcapp/libmapi/omneon/shared/media/media.nb/N/, /home/toddb/src/srcapp/libmapi/omneon/shared/media/avcmediafile.cc);ownerUID=null}, file PARSED FileImpl @-1091197644:2043604215 /home/toddb/src/srcapp/libmapi/omneon/shared/media/avcmediafile.cc prj:573577944KeyBasedUID on ProjectKey /home/toddb/src/srcapp/libmapi/omneon/shared/media/media.nb/N/ NOT_BEING_PARSED, name at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findMacro(ReferencesSupport.java:706) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmExpandedTokenProcessor.isMacro(CsmExpandedTokenProcessor.java:126) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmExpandedTokenProcessor.token(CsmExpandedTokenProcessor.java:135) at org.netbeans.cnd.api.lexer.CndTokenUtilities.processTokensImpl(CndTokenUtilities.java:427) at org.netbeans.cnd.api.lexer.CndTokenUtilities.processTokensImpl(CndTokenUtilities.java:436) at org.netbeans.cnd.api.lexer.CndTokenUtilities.processTokens(CndTokenUtilities.java:160)
Created attachment 155170 [details] stacktrace
Created attachment 155171 [details] messages.log
Created attachment 155172 [details] stacktrace entering code.
I am getting constant exceptions ==> P1, I think.
Created attachment 155173 [details] messages.log since restarting ide... still occuring
Downgrading to Build 201506040001. This version Build nbms-and-javadoc-180-on-20150731 of the ide is unusable. The exceptions seem to focus on this, and I don't see how to avoid this. java.lang.AssertionError: referenced macro is null. ref [881,890] file=KeyBasedUID on FileKey (/home/toddb/src/srcapp/libmapi/omneon/shared/media/media.nb/N/, /home/toddb/src/srcapp/libmapi/omneon/shared/media/avcmediafile.cc);refKind=DIRECT_USAGE;refObj=KeyBasedUID on MacroKey: __linux__[M 0-0] {/home/toddb/src/srcapp/libmapi/omneon/shared/media/avcmediafile.cc; /home/toddb/src/srcapp/libmapi/omneon/shared/media/media.nb/N/};topUID=KeyBasedUID on FileKey (/home/toddb/src/srcapp/libmapi/omneon/shared/media/media.nb/N/, /home/toddb/src/srcapp/libmapi/omneon/shared/media/avcmediafile.cc);ownerUID=null}, file PARSED FileImpl @-1091197644:1899802068 /home/toddb/src/srcapp/libmapi/omneon/shared/media/avcmediafile.cc prj:386011343KeyBasedUID on ProjectKey /home/toddb/src/srcapp/libmapi/omneon/shared/media/media.nb/N/ NOT_BEING_PARSED, name at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findMacro(ReferencesSupport.java:706) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmExpandedTokenProcessor.isMacro(CsmExpandedTokenProcessor.java:126) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmExpandedTokenProcessor.token(CsmExpandedTokenProcessor.java:135) at org.netbeans.cnd.api.lexer.CndTokenUtilities.processTokensImpl(CndTokenUtilities.java:427) at org.netbeans.cnd.api.lexer.CndTokenUtilities.processTokensImpl(CndTokenUtilities.java:436) at org.netbeans.cnd.api.lexer.CndTokenUtilities.processTokens(CndTokenUtilities.java:160) at org.netbeans.cnd.api.lexer.CndTokenUtilities.processTokens(CndTokenUtilities.java:143) at org.netbeans.cnd.api.lexer.CndTokenUtilities.processTokens(CndTokenUtilities.java:131) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$4.run(CsmCompletionQuery.java:732) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1386) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.processTokensInFile(CsmCompletionQuery.java:729) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.queryImpl(CsmCompletionQuery.java:563) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:527) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:520) at org.netbeans.modules.cnd.completion.csm.CompletionUtilities.findItemsReferencedAtCaretPos(CompletionUtilities.java:163) at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:491) at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:428) at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findReferencedObject(ReferencesSupport.java:227) at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.getReferencedObjectImpl(ReferenceImpl.java:134) at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.getReferencedObject(ReferenceImpl.java:96) at org.netbeans.modules.cnd.highlight.error.IdentifierErrorProvider$ReferenceVisitor.visit(IdentifierErrorProvider.java:145) at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl._accept(FileReferencesImpl.java:157) at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl.accept(FileReferencesImpl.java:109) at org.netbeans.modules.cnd.highlight.error.IdentifierErrorProvider.doGetErrors(IdentifierErrorProvider.java:117) at org.netbeans.modules.cnd.highlight.error.CodeAssistanceHintProvider.doGetErrors(CodeAssistanceHintProvider.java:174) at org.netbeans.modules.cnd.api.model.syntaxerr.CsmErrorProvider.getErrors(CsmErrorProvider.java:131) at org.netbeans.modules.cnd.highlight.error.HighlightProvider$RunnableImpl.run(HighlightProvider.java:362) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Created attachment 155175 [details] Most recent log of exceptions.
smth wrong with deserialization of predefined system macros: i.e. __linux__
This was an issue on my home machine. I thought I was running the same version at work because the download date was the same. Both downloaded files are named netbeans-trunk-nightly-201507280002-linux.sh but they are different files. the home version below is Build nbms-and-javadoc-180-on-20150731, and the work version is Build 201507280002. And the version at work does not have this issue. Home: -rw-rw-r-- 1 toddb toddb 214979584 Jul 31 14:59 netbeans-trunk-nightly-201507280002-linux.sh Work: -rw-rw-r-- 1 toddb toddb 214979584 Jul 28 10:36 netbeans-trunk-nightly-201507280002-linux.sh Home version: Product Version: NetBeans IDE Dev (Build 201507280002) Updates: Updates available Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14 System: Linux version 3.14.27-100.fc19.x86_64 running on amd64; UTF-8; en_US (nb) User directory: /home/toddb/.netbeans/dev Cache directory: /home/toddb/.cache/netbeans/dev
Sorry. Labeled the last item above incorrectly... Work version: Product Version: NetBeans IDE Dev (Build 201507280002) Updates: Updates available Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14 System: Linux version 3.14.27-100.fc19.x86_64 running on amd64; UTF-8; en_US (nb) User directory: /home/toddb/.netbeans/dev Cache directory: /home/toddb/.cache/netbeans/dev
The installers on both work and home machine are identical: $ sha1sum netbeans-trunk-nightly-201507280002-linux.sh 472a30abd973bcbb8a0f89440aa9871309363685 netbeans-trunk-nightly-201507280002-linux.sh What would cause the same installation to be labeled (in help-->about) differently?
There is a test case in issue #254053 *** This bug has been marked as a duplicate of bug 254053 ***