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 254135 - 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/
Summary: AssertionError: referenced macro is null. ref [881,890] file=KeyBasedUID on F...
Status: RESOLVED DUPLICATE of bug 254053
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-04 21:18 UTC by tbrunhoff
Modified: 2015-08-14 13:01 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 152125


Attachments
stacktrace (4.05 KB, text/plain)
2015-08-04 21:18 UTC, tbrunhoff
Details
messages.log (229.21 KB, text/x-log)
2015-08-04 21:20 UTC, tbrunhoff
Details
stacktrace (4.05 KB, text/plain)
2015-08-04 21:33 UTC, tbrunhoff
Details
messages.log since restarting ide... still occuring (198.44 KB, text/x-log)
2015-08-04 21:37 UTC, tbrunhoff
Details
Most recent log of exceptions. (73.23 KB, text/x-log)
2015-08-04 23:21 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2015-08-04 21:18:52 UTC
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)
Comment 1 tbrunhoff 2015-08-04 21:18:54 UTC
Created attachment 155170 [details]
stacktrace
Comment 2 tbrunhoff 2015-08-04 21:20:55 UTC
Created attachment 155171 [details]
messages.log
Comment 3 tbrunhoff 2015-08-04 21:33:30 UTC
Created attachment 155172 [details]
stacktrace

entering code.
Comment 4 tbrunhoff 2015-08-04 21:35:03 UTC
I am getting constant exceptions ==> P1, I think.
Comment 5 tbrunhoff 2015-08-04 21:37:09 UTC
Created attachment 155173 [details]
messages.log since restarting ide... still occuring
Comment 6 tbrunhoff 2015-08-04 23:20:37 UTC
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)
Comment 7 tbrunhoff 2015-08-04 23:21:05 UTC
Created attachment 155175 [details]
Most recent log of exceptions.
Comment 8 Vladimir Voskresensky 2015-08-07 13:07:13 UTC
smth wrong with deserialization of predefined system macros: i.e. __linux__
Comment 9 tbrunhoff 2015-08-07 14:54:01 UTC
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
Comment 10 tbrunhoff 2015-08-07 14:56:18 UTC
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
Comment 11 tbrunhoff 2015-08-07 23:52:57 UTC
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?
Comment 12 Vladimir Voskresensky 2015-08-14 13:01:40 UTC
There is a test case in issue #254053

*** This bug has been marked as a duplicate of bug 254053 ***