https://kotlinlang.org logo
Title
x

xenomachina

03/11/2021, 4:38 PM
When I try to use the Coroutines tab in IntelliJ IDEA's debugger it says "An error occurred on fetching information". How do I get it working?
Here are the "About" window details, in case any of that helps:
IntelliJ IDEA 2020.3.2 (Community Edition)
Build #IC-203.7148.57, built on January 25, 2021
Runtime version: 11.0.9.1+11-b1145.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.3.0-7648-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Non-Bundled Plugins: IdeaVIM, org.jetbrains.kotlin, kotest-plugin-intellij
Current Desktop: i3
Clicking or double clicking on the "An error occurred" message doesn't provide any additional information.
Ah, I just noticed that there's a stack trace being dumped in the console:
2021-03-11 08:43:53,855 [408724185]  ERROR - roxy.CoroutineDebugProbesProxy - Exception is thrown by calling dumpCoroutines. 
java.lang.IllegalArgumentException: Argument for @NotNull parameter 'refType' of com/intellij/debugger/engine/DebuggerUtils.findMethod must not be null
	at com.intellij.debugger.engine.DebuggerUtils.$$$reportNull$$$0(DebuggerUtils.java)
	at com.intellij.debugger.engine.DebuggerUtils.findMethod(DebuggerUtils.java)
	at com.intellij.debugger.jdi.GeneratedLocation.<init>(GeneratedLocation.java:21)
	at org.jetbrains.kotlin.idea.debugger.coroutine.proxy.LocationCache.createLocation(LocationCache.kt:36)
	at org.jetbrains.kotlin.idea.debugger.coroutine.proxy.LocationCache.createLocation(LocationCache.kt:17)
	at org.jetbrains.kotlin.idea.debugger.coroutine.proxy.CoroutineLibraryAgent2Proxy.findStackFrames(CoroutineLibraryAgent2Proxy.kt:86)
	at org.jetbrains.kotlin.idea.debugger.coroutine.proxy.CoroutineLibraryAgent2Proxy.mapToCoroutineInfoData(CoroutineLibraryAgent2Proxy.kt:37)
	at org.jetbrains.kotlin.idea.debugger.coroutine.proxy.CoroutineLibraryAgent2Proxy.dumpCoroutinesInfo(CoroutineLibraryAgent2Proxy.kt:30)
	at org.jetbrains.kotlin.idea.debugger.coroutine.proxy.CoroutineDebugProbesProxy.dumpCoroutines(CoroutineDebugProbesProxy.kt:29)
	at org.jetbrains.kotlin.idea.debugger.coroutine.view.XCoroutineView$CoroutineGroupContainer$computeChildren$1.invoke(XCoroutineView.kt:154)
	at org.jetbrains.kotlin.idea.debugger.coroutine.view.XCoroutineView$CoroutineGroupContainer$computeChildren$1.invoke(XCoroutineView.kt:147)
	at org.jetbrains.kotlin.idea.debugger.coroutine.proxy.ManagerThreadExecutor$ManagerThreadExecutorInstance$makeCommand$1.contextAction(ManagerThreadExecutor.kt:45)
	at com.intellij.debugger.engine.events.SuspendContextCommandImpl.action(SuspendContextCommandImpl.java:57)
	at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:43)
	at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:154)
	at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:29)
	at com.intellij.debugger.impl.InvokeThread.lambda$run$0(InvokeThread.java:138)
	at com.intellij.openapi.project.DumbService.runWithAlternativeResolveEnabled(DumbService.java:367)
	at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:125)
	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.util.RunnableCallable.call(RunnableCallable.java:20)
	at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:270)
	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.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:834)
2021-03-11 08:43:53,855 [408724185]  ERROR - roxy.CoroutineDebugProbesProxy - IntelliJ IDEA 2020.3.2  Build #IC-203.7148.57 
2021-03-11 08:43:53,855 [408724185]  ERROR - roxy.CoroutineDebugProbesProxy - JDK: 11.0.9.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2021-03-11 08:43:53,855 [408724185]  ERROR - roxy.CoroutineDebugProbesProxy - OS: Linux 
2021-03-11 08:43:53,855 [408724185]  ERROR - roxy.CoroutineDebugProbesProxy - Plugin to blame: Kotlin version: 203-1.4.31-release-IJ7148.5 
2021-03-11 08:43:53,855 [408724185]  ERROR - roxy.CoroutineDebugProbesProxy - Last Action: Rerun
l

louiscad

03/11/2021, 4:46 PM
Then, it's a good candidate for a proper report on kotl.in/issue
👍 2
x

xenomachina

03/11/2021, 4:57 PM