exbin / bined-intellij-plugin

Hex viewer/editor plugin for JetBrains IntelliJ platform
https://bined.exbin.org/intellij-plugin
Apache License 2.0
61 stars 10 forks source link

Exception thrown when debugging. #4

Closed chrBrd closed 6 years ago

chrBrd commented 6 years ago
update failed for AnAction(org.exbin.deltahex.intellij.DebugViewHexAction) with ID=Debugger.DeltaHexShowAsHex: com/intellij/debugger/engine/JavaValue
java.lang.NoClassDefFoundError: com/intellij/debugger/engine/JavaValue
    at org.exbin.deltahex.intellij.DebugViewHexAction.getDataNode(DebugViewHexAction.java:92)
    at org.exbin.deltahex.intellij.DebugViewHexAction.update(DebugViewHexAction.java:82)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:136)
    at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:259)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:202)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:153)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:228)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.a(ActionToolbarImpl.java:1050)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.access$000(ActionToolbarImpl.java:52)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$2.updateActionsImpl(ActionToolbarImpl.java:173)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyUpdateRunnable.run(ToolbarUpdater.java:186)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:430)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1376)
    at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
    at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
    at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1376)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:428)
    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)

java.lang.NoClassDefFoundError: com/intellij/debugger/engine/JavaValue
    at org.exbin.deltahex.intellij.DebugViewHexAction.getDataNode(DebugViewHexAction.java:92)
    at org.exbin.deltahex.intellij.DebugViewHexAction.update(DebugViewHexAction.java:82)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:136)
    at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:259)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:202)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:153)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:228)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.a(ActionToolbarImpl.java:1050)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.access$000(ActionToolbarImpl.java:52)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$2.updateActionsImpl(ActionToolbarImpl.java:173)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyUpdateRunnable.run(ToolbarUpdater.java:186)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2886)
    at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:173)
    at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:132)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:190)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.a(ToolbarUpdater.java:108)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.access$400(ToolbarUpdater.java:40)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyTimerListener.run(ToolbarUpdater.java:158)
    at com.intellij.openapi.actionSystem.impl.WeakTimerListener.run(WeakTimerListener.java:54)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.a(ActionManagerImpl.java:1439)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.a(ActionManagerImpl.java:1429)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.actionPerformed(ActionManagerImpl.java:1413)
    at javax.swing.Timer.fireActionPerformed(Timer.java:313)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.i(IdeEventQueue.java:786)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:727)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
    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)

Plugin version: 0.1.6.1

IDE details: CLion 2018.1.3 Build #CL-181.5087.36, built on May 23, 2018 JRE: 1.8.0_152-release-1136-b39 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.16.12-2-default

hajdam commented 6 years ago

Hi, thanks for report. I assume it's for any data type while debugging C/C++ application? There is currently just a basic support for debugging - primary reason was to provide capability to show byte[] in Idea.

Also, I didn't test it in CLion as I don't have license. I'll try to request it.

chrBrd commented 6 years ago

Just spent a short while trying to isolate the issue. It will happen a short while after clicking in the 'Variables' section of the debug pane, but can be made to occur a little sooner by right-clicking on a variable to bring up the context menu.

Once the error has first happened it'll keep repeating until the debugger's stopped.

I'm not sure if there should be any plugin-specific options in resulting context menu, but if so there aren't.

hajdam commented 6 years ago

Hi, still don't have CLion available, so I tried some possible workaround without testing. You can try it here: http://bined.exbin.org/download.php?deltahex-intellij-plugin.jar If this will not work, you can use older version of the plugin (without debugging action), if this issue is causing you any trouble: http://bined.exbin.org/download.php?deltahex-intellij-plugin-0.1.5.jar

I'll try to fix it properly later as I would like to support debugging for C/C++ languages by this plugin as well.

SimonIT commented 6 years ago

I get the same Exception during Debugging in PyCharm

IDE: PyCharm 2018.1.4 (Professional Edition) Build #PY-181.5087.37, built on May 24, 2018 JRE: 1.8.0_152-release-1136-b39 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0

Exception:


update failed for AnAction(org.exbin.deltahex.intellij.DebugViewHexAction) with ID=Debugger.DeltaHexShowAsHex: com/intellij/debugger/engine/JavaValue
java.lang.NoClassDefFoundError: com/intellij/debugger/engine/JavaValue
    at org.exbin.deltahex.intellij.DebugViewHexAction.getDataNode(DebugViewHexAction.java:92)
    at org.exbin.deltahex.intellij.DebugViewHexAction.update(DebugViewHexAction.java:82)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:136)
    at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:259)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:202)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:153)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:228)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.a(ActionToolbarImpl.java:1050)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.access$000(ActionToolbarImpl.java:52)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$2.updateActionsImpl(ActionToolbarImpl.java:173)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyUpdateRunnable.run(ToolbarUpdater.java:186)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2886)
    at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:173)
    at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:132)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:190)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.a(ToolbarUpdater.java:108)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.access$400(ToolbarUpdater.java:40)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyTimerListener.run(ToolbarUpdater.java:158)
    at com.intellij.openapi.actionSystem.impl.WeakTimerListener.run(WeakTimerListener.java:54)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.a(ActionManagerImpl.java:1439)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.a(ActionManagerImpl.java:1429)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.actionPerformed(ActionManagerImpl.java:1413)
    at javax.swing.Timer.fireActionPerformed(Timer.java:313)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.m(IdeEventQueue.java:786)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:727)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
    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)```
hajdam commented 6 years ago

Should be fixed in 0.1.7.