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 267605 - "Should not be called from UI thread" exception when updating remote tool bar
Summary: "Should not be called from UI thread" exception when updating remote tool bar
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-16 15:52 UTC by Vladimir Kvashin
Modified: 2016-08-17 01:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2016-08-16 15:52:05 UTC
INFO [dlight.libs.common.logger]: Should not be called from UI thread
java.lang.Exception: Should not be called from UI thread
    at org.netbeans.modules.dlight.libs.common.DLightLibsCommonLogger.assertNonUiThread(DLightLibsCommonLogger.java:131)
    at org.netbeans.modules.dlight.libs.common.DLightLibsCommonLogger.assertNonUiThreadOnce(DLightLibsCommonLogger.java:141)
    at org.netbeans.modules.cnd.utils.CndUtils.assertNonUiThread(CndUtils.java:338)
    at org.netbeans.modules.cnd.remote.server.RemoteServerList.get(RemoteServerList.java:212)
    at org.netbeans.modules.cnd.remote.server.RemoteServerList.get(RemoteServerList.java:194)
    at org.netbeans.modules.cnd.remote.server.RemoteServerList.get(RemoteServerList.java:85)
    at org.netbeans.modules.cnd.api.remote.ServerList.get(ServerList.java:101)
    at org.netbeans.modules.cnd.remote.projectui.actions.ConnectionStatusActionPerformer$1.run(ConnectionStatusActionPerformer.java:148)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 1 Vladimir Kvashin 2016-08-16 16:14:39 UTC
It was just a wrong assertion - I removed it. I analysed the code that is called and found no slowness. Should there appear some slow place on the stack, the assertion should be placed exactly in this place, not here.

Fixed in
http://hg.netbeans.org/cnd-main/rev/b2038f3149ba
Comment 2 Quality Engineering 2016-08-17 01:50:50 UTC
Integrated into 'main-silver', will be available in build *201608170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b2038f3149ba
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: Fixed #267605 - "Should not be called from UI thread" exception when updating remote tool bar
Just removed wrong assertion.
I analyzed the code that is called and found no slowness there, so no need for this assertion.
Should there appear some slow place on the stack, the assertion should be placed exactly in this place, not here.