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 255804 - AssertionError: already initialized normalized file? FileEntry{ Name=/home/vvoskres/NetBeansProjects/CheckLinks/inc/header.h, Size=37, ModTime=2390997797, Dir=DirectoryEntry{Name=/home/vvoskres/NetBea
Summary: AssertionError: already initialized normalized file? FileEntry{ Name=/home/vv...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: 81_HR_FIX
Depends on:
Blocks:
 
Reported: 2015-10-08 14:10 UTC by Vladimir Voskresensky
Modified: 2015-10-26 15:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220439


Attachments
stacktrace (6.74 KB, text/plain)
2015-10-08 14:10 UTC, Vladimir Voskresensky
Details
stacktrace (4.61 KB, text/plain)
2015-10-08 16:04 UTC, Alexander Simon
Details
stacktrace (4.61 KB, text/plain)
2015-10-08 16:07 UTC, Alexander Simon
Details
test project (34.00 KB, application/x-tar)
2015-10-08 17:55 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2015-10-08 14:10:21 UTC
Build: NetBeans IDE Dev (Build 20151008-9bb225911800)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: SunOS

User Comments:
vv159170: adding linked file to project




Stacktrace: 
java.lang.AssertionError: already initialized normalized file? FileEntry{
Name=/home/vvoskres/NetBeansProjects/CheckLinks/inc/header.h, Size=37, ModTime=2390997797,
Dir=DirectoryEntry{Name=/home/vvoskres/NetBeansProjects/CheckLinks/src/../inc},
UID=2, UniqueID=UniqueID{Device=2555505541121, File=704956}, IsNamedPipe=false, InPCH=false, IsValid=true, File=unique_ptr{destroyed=false, Ptr=null}
}
   at org.clang.basic.FileManager.getFile(FileManager.java:520)
   at org.clang.basic.FileManager.getFile(FileManager.java:446)
   at org.clang.lex.impl.HeaderSearchStatics.getFileAndSuggestModule(HeaderSearchStatics.java:65)
   at org.clang.lex.HeaderSearch.LookupFile(HeaderSearch.java:668)
   at org.clang.lex.Preprocessor.LookupFile(Preprocessor.java:4726)
   at org.clang.lex.Preprocessor.LookupFile(Preprocessor.java:4633)
Comment 1 Vladimir Voskresensky 2015-10-08 14:10:22 UTC
Created attachment 156624 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2015-10-08 15:42:22 UTC
It is serious
Comment 3 Alexander Simon 2015-10-08 16:04:04 UTC
Created attachment 156630 [details]
stacktrace

close project
Comment 4 Alexander Simon 2015-10-08 16:07:03 UTC
Created attachment 156631 [details]
stacktrace

hyperlink from glut.h to freeglut_std.h after closing a project
Comment 5 Vladimir Voskresensky 2015-10-08 17:55:41 UTC
Created attachment 156633 [details]
test project
Comment 6 Quality Engineering 2015-10-09 01:21:54 UTC
Integrated into 'main-silver', will be available in build *201510090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/df19c0e8fb47
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #255804 - AssertionError: already initialized normalized file?
- allow to skip complier predefines and system includes when init DB
Comment 7 Quality Engineering 2015-10-11 10:48:05 UTC
Integrated into 'main-silver', will be available in build *201510110923* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5f83b3128056
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #255804 - AssertionError: already initialized normalized file? (i18n)
Comment 8 Quality Engineering 2015-10-12 01:29:03 UTC
Integrated into 'main-silver', will be available in build *201510120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cbc15be01f8e
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #255804 - AssertionError: already initialized normalized file?
- trying to fix NPE
Comment 10 Vladimir Kvashin 2015-10-12 16:23:42 UTC
I reviewed fixes; they are correct.
Comment 11 Quality Engineering 2015-10-13 01:32:59 UTC
Integrated into 'main-silver', will be available in build *201510130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d6e86730abb9
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #255804 - AssertionError: already initialized normalized file?
- fixed asserts when project has "-include file" options
Comment 12 ilia 2015-10-13 14:38:59 UTC
Transplanted to release81:
  http://hg.netbeans.org/releases/rev/c090c7f5ad74 [fixing #255804 - AssertionError: already initialized normalized file?]
  http://hg.netbeans.org/releases/rev/e42a261e7580 [fixing #255804 - AssertionError: already initialized normalized file?]
  http://hg.netbeans.org/releases/rev/6d38577eaf71 [fixing #255804 - AssertionError: already initialized normalized file?]
  http://hg.netbeans.org/releases/rev/ed06a3c7e3a2 [fixing #255804 - AssertionError: already initialized normalized file?]
  http://hg.netbeans.org/releases/rev/db80f64b36e4 [fixing #255804 - AssertionError: already initialized normalized file? (i18n)]
  http://hg.netbeans.org/releases/rev/9f84efefab4a [fixing #255804 - AssertionError: already initialized normalized file?]
  http://hg.netbeans.org/releases/rev/9daf37ed0107 [fixing #255804 - AssertionError: already initialized normalized file?]
  http://hg.netbeans.org/releases/rev/a0eed1d80bca [fixing misprint #255804 - AssertionError: already initialized normalized file?]
  http://hg.netbeans.org/releases/rev/c0c04b555439 [fixing #255804 - AssertionError: already initialized normalized file?]
Comment 13 soldatov 2015-10-26 15:42:42 UTC
Verified in NetBeans IDE 8.1 (Build 201510222201)
In FCS I don't see so much exceptions. And I can't reproduce this exception too. I will mark bug as a VERIFIED.