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 211842 - New File wizard displays Please wait... forever
Summary: New File wizard displays Please wait... forever
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: RANDOM
Depends on:
Blocks: 191677 191951
  Show dependency tree
 
Reported: 2012-04-27 12:14 UTC by Petr Jiricka
Modified: 2012-06-05 06:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (116.88 KB, image/png)
2012-04-27 12:17 UTC, Petr Jiricka
Details
IDE log file (68.76 KB, application/octet-stream)
2012-04-27 12:17 UTC, Petr Jiricka
Details
Thread dump (16.42 KB, text/plain)
2012-04-27 12:17 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-04-27 12:14:05 UTC
Product Version: NetBeans IDE Dev (Build web-main-7492-on-20120427)
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)

Not sure how to reproduce this, but I got to a state when the New File wizard displays just "please wait". I am attaching a screenshot, thread dump and IDE log file.
Comment 1 Petr Jiricka 2012-04-27 12:17:20 UTC
Created attachment 118865 [details]
Screenshot
Comment 2 Petr Jiricka 2012-04-27 12:17:39 UTC
Created attachment 118866 [details]
IDE log file
Comment 3 Petr Jiricka 2012-04-27 12:17:54 UTC
Created attachment 118867 [details]
Thread dump
Comment 4 Stanislav Aubrecht 2012-04-27 12:33:14 UTC
Looks like threading problem in JDK 7 update 4, half of the threads are "parking".
I've seen similar deadlock states with JDK 7u4 before...
Comment 5 Antonin Nebuzelsky 2012-06-01 12:48:52 UTC
Maybe not related to Mac at all. Also there is no relevant information here that could be reported against JDK.

The code waiting is
at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:499)
which was introduced by Jesse's fix in issue 191951 a few months ago.

Jesse, please evaluate thoroughly if this is a regression on our side.
Comment 6 Jesse Glick 2012-06-01 16:06:30 UTC
The fix of bug #191951 is indeed related to the "org.netbeans.modules.project.ui.actions.NewFile" thread blocking. This would happen if something went wrong with an asynchronous instantiating iterator, such as is used for Maven archetypes. That is another bug but of course I do not know how to reproduce it; your log file gives no apparent clues.

Given that this RP task is blocking, the reported problem - "Please wait..." - is just due to the fact that the existing code for bug #191677 could be blocked by the actually unrelated template instantiation, sharing that RP as of 4bb5b9db6649, so theoretically could happen in 7.1.

Not P2 unless this is known to be common. Workaround would likely be to use File > New File instead of the context menu.
Comment 7 Jesse Glick 2012-06-01 16:12:58 UTC
core-main #e010dfaed823
Comment 8 Quality Engineering 2012-06-05 06:04:35 UTC
Integrated into 'main-golden', will be available in build *201206050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e010dfaed823
User: Jesse Glick <jglick@netbeans.org>
Log: #211842: New File wizard displays Please wait... forever