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 98180 - Assertion warning about bad usage of AWT
Summary: Assertion warning about bad usage of AWT
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-19 10:48 UTC by Martin Krauskopf
Modified: 2008-02-15 12:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
awt-assertion.txt (3.41 KB, text/plain)
2007-03-19 10:48 UTC, Martin Krauskopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2007-03-19 10:48:08 UTC
see attached stacktrace
Comment 1 Martin Krauskopf 2007-03-19 10:48:43 UTC
Created attachment 39616 [details]
awt-assertion.txt
Comment 2 Vitezslav Stejskal 2007-03-19 22:07:47 UTC
Looks like Tools-Options deferred initialization is causing problems. Does it
happen regularily? Thanks.
Comment 3 Vitezslav Stejskal 2007-03-19 22:09:35 UTC
Actually, David might be interested too. If not, sorry and don't bother.
Comment 4 David Strupl 2007-03-19 23:51:38 UTC
BTW core/options deferred initialization is causing also one race condition that
I am trying to solve right now.

I have seen even shorter stack traces starting from these:

        at
org.netbeans.modules.options.keymap.KeymapPanelController.getLookup(KeymapPanelController.java:63)
        at
org.netbeans.modules.options.CategoryModel$Category.getLookup(CategoryModel.java:394)
        at
org.netbeans.modules.options.CategoryModel$Category.access$000(CategoryModel.java:283)
        at org.netbeans.modules.options.CategoryModel$1.run(CategoryModel.java:68)

that end up in the assertion error. I thought that the assertion itself is a bit
overkill since even some code that does not violates the swing threading rule
ends up with the same assertion error. My case was not going through windows
manager but I don't know what is wrong on asking an action for a display name
from non AWT thread. That is most probably off-topic for this report but to stay
on topic: if you happen to change something under
org.netbeans.modules.options.keymap please note that I am currently working on a
branch shortcuts_77386 and whatever you change I must propagate there. I suggest
that you either fix it on the branch or leave it to me ;-) Or wait cca 1 week
after I merge the branch ...
Comment 5 Vitezslav Stejskal 2007-03-20 01:03:30 UTC
I know, I'll wait for you to integrate your changes and then reevaluate this
defect. 
Comment 6 Jan Becicka 2008-02-15 11:35:22 UTC
Please reevaluate. Thanks
Comment 7 Vitezslav Stejskal 2008-02-15 12:13:18 UTC
Haven't seen this one for a long time. So, probably fixed. I'm sure somebody will reopen it should it happen again.