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 84629 - Deadlock in palette
Summary: Deadlock in palette
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Kaspar
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2006-09-11 17:11 UTC by Lukas Hasik
Modified: 2009-01-15 13:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full thread dump (22.44 KB, text/plain)
2006-09-11 17:13 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2006-09-11 17:11:27 UTC
build 060911

-I closed a visual designer document then deadlock appeared
-thread dump attached
Comment 1 Lukas Hasik 2006-09-11 17:13:20 UTC
Created attachment 33774 [details]
full thread dump
Comment 2 Lukas Hasik 2006-09-11 17:15:35 UTC
maybe it's caused by palette itself. 
Davide. please, evalute and reassign if necessary.
Comment 3 David Kaspar 2006-09-12 15:29:10 UTC
This bug is caused by deadlock in locking of CloneableEditoSupport vs. Nodes.
To reproduce it, the VisualMIDlet has to be opened, the JavaInfrastructure has
to be parsing the file.
The JavaInf locks the Nodes Mutex first and then asking to Designer. The
Designer closing locks the Designer first, then invokes the refreshing of
Palette which is asking for Nodes Mutex. Therefore the deadlock happened.

Possible fix is to postpone the "invocation of palette refresh" using "invokeLater".
Comment 4 David Kaspar 2006-09-12 16:21:43 UTC
Fixed in "dev". Leaving as "New" since the bug should be fixed in 5.5 too.
Comment 5 David Kaspar 2006-09-14 14:36:33 UTC
Fixed in NB 5.5 too.
Comment 6 Lukas Hasik 2006-09-26 14:10:43 UTC
verified in latest 5.5 build. It's hard to reproduce... I'll reopen if it
appears again, of course
Comment 7 Ivan Sidorkin 2009-01-15 13:29:25 UTC
closing old issues