IDEA 2019.2 DEBUG HANGS ON COLLECTING DATA
Answered
debug will hang after the console print out "Connected to the target VM, address: '127.0.0.1:6241', transport: 'socket'" and the main thread is still in runing status and stuck at collecting data.
even a really simple helloworld app can reproduce this problem.
i have print debug log, it seems there are an error occur, is there any idea how to fix it ?
2019-07-29 20:46:02,426 [2087927] INFO - xecution.process.OSProcessUtil - Cannot destroy already terminated process (pid: 2764, command: D:\JAVA\jdk\jdk1.8.0_181\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:6241,suspend=y,server=n -javaagent:C:\Users\chuHa\.IntelliJIdea2019.2\system\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "D:\JAVA\jdk\jdk1.8.0_181\jre\lib\charsets.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\deploy.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\access-bridge-64.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\cldrdata.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\dnsns.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\jaccess.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\jfxrt.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\localedata.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\nashorn.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\sunec.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\sunjce_provider.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\sunmscapi.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\sunpkcs11.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\ext\zipfs.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\javaws.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\jce.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\jfr.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\jfxswt.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\jsse.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\management-agent.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\plugin.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\resources.jar;D:\JAVA\jdk\jdk1.8.0_181\jre\lib\rt.jar;F:\JavaPractise\ThreadDemo\out\production\ThreadDemo;D:\Program Files\JetBrains\apps\IDEA-U\ch-0\192.5728.98\lib\idea_rt.jar" Run)
2019-07-29 20:46:02,607 [2088108] INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2019-07-29 20:46:02,613 [2088114] INFO - j.compiler.server.BuildManager - Using preloaded build process to compile F:\JavaPractise\ThreadDemo
2019-07-29 20:46:03,081 [2088582] INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 479 ms: 0 min 0sec
2019-07-29 20:46:03,256 [2088757] INFO - ij.execution.JavaExecutionUtil - Agent jars were copied to C:\Users\chuHa\.IntelliJIdea2019.2\system\captureAgent
2019-07-29 20:46:03,280 [2088781] INFO - s.CompilerReferenceServiceBase - backward reference index reader is opened
2019-07-29 20:46:03,343 [2088844] INFO - console.filter.MainInputFilter - Initializing for com.intellij.execution.impl.ConsoleViewImpl
2019-07-29 20:46:03,782 [2089283] ERROR - lij.debugger.impl.InvokeThread - Bad type on operand stack
Exception Details:
Location:
com/intellij/debugger/engine/DebugProcessEvents$DebuggerEventThread.run()V @142: athrow
Reason:
Type 'java/lang/Object' (current frame, stack[0]) is not assignable to 'java/lang/Throwable'
Current Frame:
bci: @142
flags: { }
locals: { 'com/intellij/debugger/engine/DebugProcessEvents$DebuggerEventThread', 'com/zeroturnaround/xrebel/sdk/traces/TraceContext', 'com/zeroturnaround/xrebel/sdk/async/AsyncCollectorContext', 'com/sun/jdi/event/EventQueue', 'java/lang/Object' }
stack: { 'java/lang/Object' }
Bytecode:
0000000: 1400 3eb8 0045 4c2a b400 2c01 a500 102a
0000010: b400 2cb6 0055 c000 57a7 0004 014d 2cbb
0000020: 005b 5912 5d12 5eb7 0061 b800 654d 2ab4
0000030: 002a 2b12 66b8 006a b600 704e 2a2b 1273
0000040: b800 6ab7 0075 9a00 5c2d 2b12 76b8 006a
0000050: b900 7a01 003a 042a b400 1f2b 127b b800
0000060: 6ab6 007f bb00 0e59 2ab2 0083 1904 b700
0000070: 86b6 008c a7ff c83a 042b 128d b800 6ab8
0000080: 0091 1904 b600 97a7 ffb5 3a04 1904 bf3a
0000090: 042b 1298 b800 6ab8 0091 1904 b600 97a7
00000a0: ff9d 2b12 99b8 006a b800 9e57 a700 2a4e
00000b0: 2a2b 129f b800 6ab7 00a2 2b12 99b8 006a
00000c0: b800 9e57 a700 123a 052b 1299 b800 6ab8
00000d0: 009e 5719 05bf 2c2b 12a3 b800 6ab8 00a7
00000e0: 1400 3e2b b800 abb1 59b8 00b0 2cb8 00a7
00000f0: bf14 003e 2bb8 00ab bf
Exception Handler Table:
bci [73, 116] => handler: 119
bci [73, 116] => handler: 138
bci [73, 116] => handler: 138
bci [73, 116] => handler: 138
bci [73, 116] => handler: 143
bci [46, 162] => handler: 175
bci [46, 162] => handler: 175
bci [46, 162] => handler: 199
bci [175, 186] => handler: 199
bci [46, 232] => handler: 232
bci [7, 241] => handler: 241
Stackmap Table:
append_frame(@28,Object[#89])
same_locals_1_stack_item_frame(@29,Object[#87])
append_frame(@60,Object[#87],Object[#114])
same_locals_1_stack_item_frame(@119,Object[#71])
same_locals_1_stack_item_frame(@138,Object[#4])
same_locals_1_stack_item_frame(@143,Object[#79])
same_frame(@162)
full_frame(@175,{Object[#2],Object[#89],Object[#87]},{Object[#4]})
same_locals_1_stack_item_frame(@199,Object[#79])
append_frame(@214,Object[#4])
full_frame(@232,{Object[#2],Object[#89],Object[#87]},{Object[#79]})
full_frame(@241,{Top,Object[#89]},{Object[#79]})
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
com/intellij/debugger/engine/DebugProcessEvents$DebuggerEventThread.run()V @142: athrow
Reason:
Type 'java/lang/Object' (current frame, stack[0]) is not assignable to 'java/lang/Throwable'
Current Frame:
bci: @142
flags: { }
locals: { 'com/intellij/debugger/engine/DebugProcessEvents$DebuggerEventThread', 'com/zeroturnaround/xrebel/sdk/traces/TraceContext', 'com/zeroturnaround/xrebel/sdk/async/AsyncCollectorContext', 'com/sun/jdi/event/EventQueue', 'java/lang/Object' }
stack: { 'java/lang/Object' }
Bytecode:
0000000: 1400 3eb8 0045 4c2a b400 2c01 a500 102a
0000010: b400 2cb6 0055 c000 57a7 0004 014d 2cbb
0000020: 005b 5912 5d12 5eb7 0061 b800 654d 2ab4
0000030: 002a 2b12 66b8 006a b600 704e 2a2b 1273
0000040: b800 6ab7 0075 9a00 5c2d 2b12 76b8 006a
0000050: b900 7a01 003a 042a b400 1f2b 127b b800
0000060: 6ab6 007f bb00 0e59 2ab2 0083 1904 b700
0000070: 86b6 008c a7ff c83a 042b 128d b800 6ab8
0000080: 0091 1904 b600 97a7 ffb5 3a04 1904 bf3a
0000090: 042b 1298 b800 6ab8 0091 1904 b600 97a7
00000a0: ff9d 2b12 99b8 006a b800 9e57 a700 2a4e
00000b0: 2a2b 129f b800 6ab7 00a2 2b12 99b8 006a
00000c0: b800 9e57 a700 123a 052b 1299 b800 6ab8
00000d0: 009e 5719 05bf 2c2b 12a3 b800 6ab8 00a7
00000e0: 1400 3e2b b800 abb1 59b8 00b0 2cb8 00a7
00000f0: bf14 003e 2bb8 00ab bf
Exception Handler Table:
bci [73, 116] => handler: 119
bci [73, 116] => handler: 138
bci [73, 116] => handler: 138
bci [73, 116] => handler: 138
bci [73, 116] => handler: 143
bci [46, 162] => handler: 175
bci [46, 162] => handler: 175
bci [46, 162] => handler: 199
bci [175, 186] => handler: 199
bci [46, 232] => handler: 232
bci [7, 241] => handler: 241
Stackmap Table:
append_frame(@28,Object[#89])
same_locals_1_stack_item_frame(@29,Object[#87])
append_frame(@60,Object[#87],Object[#114])
same_locals_1_stack_item_frame(@119,Object[#71])
same_locals_1_stack_item_frame(@138,Object[#4])
same_locals_1_stack_item_frame(@143,Object[#79])
same_frame(@162)
full_frame(@175,{Object[#2],Object[#89],Object[#87]},{Object[#4]})
same_locals_1_stack_item_frame(@199,Object[#79])
append_frame(@214,Object[#4])
full_frame(@232,{Object[#2],Object[#89],Object[#87]},{Object[#79]})
full_frame(@241,{Top,Object[#89]},{Object[#79]})
at com.intellij.debugger.engine.DebugProcessEvents.commitVM(DebugProcessEvents.java:80)
at com.intellij.debugger.engine.DebugProcessImpl$10$1.action(DebugProcessImpl.java:2024)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:43)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:151)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:29)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:138)
at com.intellij.debugger.impl.InvokeThread.access$100(InvokeThread.java:19)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.lambda$run$0(InvokeThread.java:49)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:208)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:48)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2019-07-29 20:46:03,789 [2089290] ERROR - lij.debugger.impl.InvokeThread - IntelliJ IDEA 2019.2 Build #IU-192.5728.98
2019-07-29 20:46:03,789 [2089290] ERROR - lij.debugger.impl.InvokeThread - JDK: 11.0.3; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-07-29 20:46:03,794 [2089295] ERROR - lij.debugger.impl.InvokeThread - OS: Windows 10
2019-07-29 20:46:03,794 [2089295] ERROR - lij.debugger.impl.InvokeThread - Last Action: Rerun
2019-07-29 20:46:03,857 [2089358] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: D:/Program Files/JetBrains/apps/IDEA-U/ch-0/192.5728.98/plugins/java/lib/jps-launcher.jar;D:/JAVA/jdk/jdk1.8.0_181/lib/tools.jar
2019-07-29 20:46:03,951 [2089452] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2019-07-29 20:46:03,952 [2089453] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2019-07-29 20:46:03,952 [2089453] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.


Please sign in to leave a comment.
Hello,
Please try to temporary disable custom plugins (e.g. JRebel one).