mbeddr / mbeddr.core

The mbeddr core. An extensible C
Eclipse Public License 2.0
226 stars 77 forks source link

Resolving Icon Fails #450

Closed DomenikP closed 12 years ago

DomenikP commented 12 years ago

Action: Breakpoint on test main(), Open argv

[ 278113] ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_PRESSED,(385,727),absolute(385,749),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on frame1 java.lang.AssertionError: Could not resolve path to icon at com.mbeddr.core.debug.debugger.MComplexValue.getPresentationIcon(Unknown Source) at com.mbeddr.core.pointers.behavior.ArrayType_Behavior.virtual_resolveChildren_8519572659617671165(Unknown Source) at com.mbeddr.core.pointers.behavior.ArrayType_BehaviorDescriptor.virtual_resolveChildren_8519572659617671165(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at jetbrains.mps.smodel.runtime.impl.CompiledBehaviorDescriptor.invoke(CompiledBehaviorDescriptor.java:101) at com.mbeddr.core.debug.behavior.IChildrenResolver_Behavior.call_resolveChildren_8519572659617671165(Unknown Source) at com.mbeddr.core.debug.debugger.MComplexValue.getSubvalues(Unknown Source) at jetbrains.mps.debugger.api.ui.tree.WatchableNode.doInit(WatchableNode.java:70) at jetbrains.mps.ide.ui.MPSTreeNode$2.compute(MPSTreeNode.java:144) at jetbrains.mps.ide.ui.MPSTreeNode$2.compute(MPSTreeNode.java:142) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:129) at jetbrains.mps.ide.ui.MPSTreeNode.init(MPSTreeNode.java:142) at jetbrains.mps.ide.ui.MPSTree$1.run(MPSTree.java:114) at jetbrains.mps.ide.smodel.WorkbenchModelAccess$2.run(WorkbenchModelAccess.java:118) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:860) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:114) at jetbrains.mps.ide.ui.MPSTree.doInit(MPSTree.java:112) at jetbrains.mps.ide.ui.MPSTree$MyTreeWillExpandListener.treeWillExpand(MPSTree.java:637) at javax.swing.JTree.fireTreeWillExpand(JTree.java:2723) at javax.swing.JTree.setExpandedState(JTree.java:3421) at javax.swing.JTree.expandPath(JTree.java:2163) at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2204) at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTreeUI.java:2191) at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(BasicTreeUI.java:2149) at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3511) at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3459) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.Component.processMouseEvent(Component.java:6379) at javax.swing.JComponent.processMouseEvent(JComponent.java:3275) at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:324) at com.intellij.ide.dnd.aware.DnDAwareTree.processMouseEvent(DnDAwareTree.java:50) at java.awt.Component.processEvent(Component.java:6147) at java.awt.Container.processEvent(Container.java:2083) at java.awt.Component.dispatchEventImpl(Component.java:4744) at java.awt.Container.dispatchEventImpl(Container.java:2141) at java.awt.Component.dispatchEvent(Component.java:4572) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4277) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210) at java.awt.Container.dispatchEventImpl(Container.java:2127) at java.awt.Window.dispatchEventImpl(Window.java:2489) at java.awt.Component.dispatchEvent(Component.java:4572) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:704) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:663) at java.awt.EventQueue$2.run(EventQueue.java:661) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$3.run(EventQueue.java:677) at java.awt.EventQueue$3.run(EventQueue.java:675) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:674) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) [ 278116] ERROR - com.intellij.ide.IdeEventQueue - JetBrains MPS 2.5 Build #MPS-117.9341 [ 278116] ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_35 [ 278116] ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) 64-Bit Server VM [ 278116] ERROR - com.intellij.ide.IdeEventQueue - Vendor: Apple Inc. [ 278116] ERROR - com.intellij.ide.IdeEventQueue - OS: Mac OS X [ 278116] ERROR - com.intellij.ide.IdeEventQueue - Last Action: Debug

DomenikP commented 12 years ago

The same exception was also thrown on another machine:

Error during dispatching of java.awt.event.MouseEvent[MOUSE_PRESSED,(220,705),absolute(220,727),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on frame1: Could not resolve path to icon java.lang.AssertionError: Could not resolve path to icon at com.mbeddr.core.debug.debugger.MComplexValue.getPresentationIcon(Unknown Source) at com.mbeddr.core.pointers.behavior.ArrayType_Behavior.virtual_resolveChildren_8519572659617671165(Unknown Source) at com.mbeddr.core.pointers.behavior.ArrayType_BehaviorDescriptor.virtual_resolveChildren_8519572659617671165(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at jetbrains.mps.smodel.runtime.impl.CompiledBehaviorDescriptor.invoke(CompiledBehaviorDescriptor.java:101) at com.mbeddr.core.debug.behavior.IChildrenResolver_Behavior.call_resolveChildren_8519572659617671165(Unknown Source) at com.mbeddr.core.debug.debugger.MComplexValue.getSubvalues(Unknown Source) at jetbrains.mps.debugger.api.ui.tree.WatchableNode.doInit(WatchableNode.java:70) at jetbrains.mps.ide.ui.MPSTreeNode$2.compute(MPSTreeNode.java:144) at jetbrains.mps.ide.ui.MPSTreeNode$2.compute(MPSTreeNode.java:142) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:129) at jetbrains.mps.ide.ui.MPSTreeNode.init(MPSTreeNode.java:142) at jetbrains.mps.ide.ui.MPSTree$1.run(MPSTree.java:114) at jetbrains.mps.ide.smodel.WorkbenchModelAccess$2.run(WorkbenchModelAccess.java:118) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:860) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:114) at jetbrains.mps.ide.ui.MPSTree.doInit(MPSTree.java:112) at jetbrains.mps.ide.ui.MPSTree$MyTreeWillExpandListener.treeWillExpand(MPSTree.java:637) at javax.swing.JTree.fireTreeWillExpand(JTree.java:2723) at javax.swing.JTree.setExpandedState(JTree.java:3421) at javax.swing.JTree.expandPath(JTree.java:2163) at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2204) at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTreeUI.java:2191) at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(BasicTreeUI.java:2149) at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3511) at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3459) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262) at java.awt.Component.processMouseEvent(Component.java:6379) at javax.swing.JComponent.processMouseEvent(JComponent.java:3275) at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:324) at com.intellij.ide.dnd.aware.DnDAwareTree.processMouseEvent(DnDAwareTree.java:50) at java.awt.Component.processEvent(Component.java:6147) at java.awt.Container.processEvent(Container.java:2083) at java.awt.Component.dispatchEventImpl(Component.java:4744) at java.awt.Container.dispatchEventImpl(Container.java:2141) at java.awt.Component.dispatchEvent(Component.java:4572) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4277) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210) at java.awt.Container.dispatchEventImpl(Container.java:2127) at java.awt.Window.dispatchEventImpl(Window.java:2489) at java.awt.Component.dispatchEvent(Component.java:4572) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:704) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:663) at java.awt.EventQueue$2.run(EventQueue.java:661) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$3.run(EventQueue.java:677) at java.awt.EventQueue$3.run(EventQueue.java:675) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:674) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

DomenikP commented 12 years ago

Reason for the exception: We try to load the icon from the repository (hard coded path)

DomenikP commented 12 years ago

Fixed with commit 72689e3b2b6af63921137c74497a0cbd3e2926ba