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 212056 - Deadlock when opening IDE snapshot
Summary: Deadlock when opening IDE snapshot
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2012-05-04 08:20 UTC by Petr Jiricka
Modified: 2012-05-10 09:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (24.36 KB, text/plain)
2012-05-04 08:20 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2012-05-04 08:20:05 UTC
Created attachment 119064 [details]
Thread dump

See the attached thread dump.
Comment 1 Tomas Hurka 2012-05-04 08:27:53 UTC
Can you please test it with Apple JDK. Thanks.
Comment 2 Petr Jiricka 2012-05-04 08:36:14 UTC
I will, but Oracle JDK is supported as well, no? I am using:

Product Version: NetBeans IDE Dev (Build web-main-7531-on-20120503)
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
System: Mac OS X version 10.7.3 running on x86_64; UTF-8; en_US (nb)
Comment 3 Tomas Hurka 2012-05-04 08:37:58 UTC
(In reply to comment #2)
> I will, but Oracle JDK is supported as well, no?
Yes, it is.

> I am using: 
> Product Version: NetBeans IDE Dev (Build web-main-7531-on-20120503)
> Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
> System: Mac OS X version 10.7.3 running on x86_64; UTF-8; en_US (nb)
I know what you are using.
Comment 4 Petr Jiricka 2012-05-04 08:44:47 UTC
Ok, I tried with:
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415

and it worked fine, I did not get any deadlock.
Comment 5 Tomas Hurka 2012-05-04 08:51:00 UTC
(In reply to comment #4)
> Ok, I tried with:
> Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415
> 
> and it worked fine, I did not get any deadlock.
OK, so it looks like bug in 1.7.0_04 on Mac, since it also works on Linux with 1.7.0_04. Reassigning.
Comment 6 Antonin Nebuzelsky 2012-05-04 10:30:40 UTC
Similar to already filed JDK bug:
http://monaco.us.oracle.com/detail.jsf?cr=7101674

Note that the JDK bug is filed against their tests. The UI manipulation is  done outside of EDT which is wrong by definition.

The same case like here. Tracer Processor thread is opening Swing UI. This needs to be replanned to EDT in our code.
Comment 7 Jiri Sedlacek 2012-05-04 15:00:18 UTC
You're right, unfortunately the JOptionPane isn't designed to be opened outside of EDT, unlike other JDialogs. Will fix.
Comment 8 Jiri Sedlacek 2012-05-04 15:08:06 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/402580ee8e91.
Comment 9 Quality Engineering 2012-05-10 09:58:31 UTC
Integrated into 'main-golden', will be available in build *201205100400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/402580ee8e91
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #212056 - invoke Swing code in EDT