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 131701 - AssertionError: no file for UID KeyBasedUID on FileKey
Summary: AssertionError: no file for UID KeyBasedUID on FileKey
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-01 10:45 UTC by Alexander Simon
Modified: 2008-04-10 13:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
assertion (3.07 KB, text/plain)
2008-04-01 10:46 UTC, Alexander Simon
Details
full log (281.74 KB, text/plain)
2008-04-01 10:47 UTC, Alexander Simon
Details
the mentioned above fix (4.45 KB, text/plain)
2008-04-09 20:52 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2008-04-01 10:45:54 UTC
Scenario:
1. Run IDE with opened UTS project (OpenSolaris kernel from 77 build)
2. Close project
3. Create new UST project from 80 build. Note: OpenSolaris should be build.
4. After successfully created project (IZ#131697 should be fixed) parsing starts.
5. In log I see assertion.
I believe that bug is hard reproduced.
Comment 1 Alexander Simon 2008-04-01 10:46:36 UTC
Created attachment 59466 [details]
assertion
Comment 2 Alexander Simon 2008-04-01 10:47:38 UTC
Created attachment 59467 [details]
full log
Comment 3 Vladimir Kvashin 2008-04-07 07:34:10 UTC
Though rarely reproducible, the issue is quite serious.
I believe we should at least create a workaround for this for 6.1
Comment 4 Jesse Grodnik 2008-04-07 17:22:30 UTC
This may be a P1. I've escalated it, but I have not yet set this to must fix.
Comment 5 _ gordonp 2008-04-07 19:26:24 UTC
I hadn't seen this for quite some time, but this morning I was getting it pretty much
after every change. I exited the IDE, and after a restart, no longer got it. I remember
it being like this before. Once you get it, you're pretty much hosed until you restart!
Comment 6 Vladimir Kvashin 2008-04-08 15:21:29 UTC
Here is a workaround that I pushed into main:
http://hg.netbeans.org/main/rev/19aab9dc947c

It allows you starting Netbeans with -J-Dcnd.repository.hardrefs=true option.
In this case persistence is replaced with in-memory map, which works fine if you have enough memory.
For project like Open Solaris kernel, which has 4-5K files, it's sufficient to have 600Mn heap to work with this option.
Comment 7 Vladimir Voskresensky 2008-04-08 16:05:00 UTC
I reviewed the workaround and it is correct.
Comment 8 Quality Engineering 2008-04-09 17:00:25 UTC
Integrated in HG-pull #8 (See [http://hudson.czech.sun.com:8080//hudson/job/HG-pull/8/] / [Changeset 5220a1767a02])
Link: http://hg.netbeans.org/main/rev/5220a1767a02
Comment 9 Marian Mirilovic 2008-04-09 17:15:29 UTC
The last comment from "qa" user is not related to this issue. I am really sorry for that.
Comment 10 Vladimir Kvashin 2008-04-09 18:04:02 UTC
I've put a workaround:
http://hg.netbeans.org/main/rev/e3ae83ea3c90
http://hg.netbeans.org/main/rev/833fe4b6ef83
Comment 11 Vladimir Voskresensky 2008-04-09 18:10:15 UTC
I reviewed the problem and can summarize that "fix" is not possible in a safe way.
So, I agree that workaround is the necessary step for 6.1 and the proposed workaround (3 commits) is correct and safe.
Comment 12 Vladimir Kvashin 2008-04-09 20:46:04 UTC
One more fix was recently added.
A jar to test against release61 has been set to QA
Comment 13 Vladimir Kvashin 2008-04-09 20:50:23 UTC
This most recent fix concerned the situation when the persistence is broken, but this fact couldn't be discovered at
project opening. After applying this fix, language model processed situation smoothly. The project was reparsed, after
that code assistance worked ok.
Comment 14 Vladimir Kvashin 2008-04-09 20:52:01 UTC
Created attachment 59931 [details]
the mentioned above fix
Comment 15 Alexander Pepin 2008-04-09 21:16:02 UTC
The attached fix is reviewed by Vladimir Voskresensky.
Comment 16 Alexander Pepin 2008-04-09 21:17:43 UTC
The fix is verified in NB6.1RC1 (build 200804082140) with provided jar file.
Comment 18 Jesse Grodnik 2008-04-09 22:19:44 UTC
See previous entry regarding push into NB61.
Comment 19 Alexander Pepin 2008-04-10 13:22:41 UTC
verified in NB6.1RC1 build