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 193789 - Exception: Don't call getHostInfo() from the UI thread while info is not known. Use quick isHostInfoAvailable() to detect whether info is available or not and go out of EDT if not
Summary: Exception: Don't call getHostInfo() from the UI thread while info is not know...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-24 11:29 UTC by igor_nikiforov
Modified: 2011-01-14 06:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175318


Attachments
stacktrace (5.07 KB, text/plain)
2010-12-24 11:29 UTC, igor_nikiforov
Details
stacktrace (2.12 KB, text/plain)
2010-12-28 09:30 UTC, Vladimir Voskresensky
Details
stacktrace (2.12 KB, text/plain)
2010-12-28 10:06 UTC, Vladimir Voskresensky
Details
stacktrace (2.12 KB, text/plain)
2010-12-30 01:16 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description igor_nikiforov 2010-12-24 11:29:33 UTC
This issue was reported manually by igor_nikiforov.
It already has 2 duplicates 


Build: NetBeans IDE Dev (Build 101222-604906a5f6c5)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Linux

User Comments:
igor_nikiforov: This exception appears if selecting the "Attach Debugger"  from Debug button menu.




Stacktrace: 
java.lang.Exception: Don't call getHostInfo() from the UI thread while info is not known. Use quick isHostInfoAvailable() to detect whether info is available or not and go out of EDT if not
   at org.netbeans.modules.nativeexecution.support.Logger.assertNonUiThread(Logger.java:104)
   at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:192)
   at org.netbeans.modules.cnd.api.utils.PlatformInfo.<init>(PlatformInfo.java:83)
   at org.netbeans.modules.cnd.api.utils.PlatformInfo.getDefault(PlatformInfo.java:394)
   at org.netbeans.modules.cnd.debugger.common2.debugger.remote.CndRemote.platformInfo(CndRemote.java:463)
   at org.netbeans.modules.cnd.debugger.common2.debugger.remote.CndRemote.hostFromName(CndRemote.java:290)
Comment 1 igor_nikiforov 2010-12-24 11:29:36 UTC
Created attachment 104474 [details]
stacktrace
Comment 2 Maria Tishkova 2010-12-24 11:42:50 UTC
should be fixed in Debugger
Comment 3 Vladimir Voskresensky 2010-12-28 09:30:48 UTC
Created attachment 104551 [details]
stacktrace

debug core file action on core file from Files view
Comment 4 Vladimir Voskresensky 2010-12-28 10:06:49 UTC
Created attachment 104556 [details]
stacktrace
Comment 5 Vladimir Voskresensky 2010-12-30 01:16:01 UTC
Created attachment 104612 [details]
stacktrace

debug core action on remote core file
Comment 6 Exceptions Reporter 2010-12-30 01:16:09 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=175318
Comment 7 Andrew Krasny 2010-12-30 14:10:52 UTC
FIY: with changeset http://hg.netbeans.org/cnd-main/rev/dace67fa13f0 the default level for this assertion logging in INFO. So there is no pop-up window. 
To change this default one can pass -DExecution.nonUIThreadAsservionLevel=severe to a JVM while starting NB.
Comment 8 Egor Ushakov 2011-01-12 15:34:10 UTC
attach issues fixed in:
http://hg.netbeans.org/cnd-main/rev/84c94e656c53
Comment 9 Egor Ushakov 2011-01-13 10:26:38 UTC
core dialog issues fixed in:
http://hg.netbeans.org/cnd-main/rev/1a6a823507be
Comment 10 Quality Engineering 2011-01-14 06:06:38 UTC
Integrated into 'main-golden', will be available in build *201101140000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1a6a823507be
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #193789 (Exception: Don't call getHostInfo() from the UI thread) - core dialog issues