Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Rider plugin exception "Must be executed on UI thread or background threads with special permission"
cheil
#1 Posted : Tuesday, March 19, 2024 8:41:49 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/5/2019(UTC)
Posts: 7
Location: United States of America

Thanks: 4 times
Was thanked: 2 time(s) in 2 post(s)
I recently installed the Rider plugin (v5.3.0.2) on Rider 2023.3.4 and saw the error below twice this afternoon. I am on Windows 10 as well.

I did experiment with moving the NCrunch window around the IDE, floating, docked/undocked, etc. which might have triggered it given the description of the error message.

Code:

Must be executed on UI thread or background threads with special permissions

java.lang.IllegalStateException: |E| Wrong thread RdSignal: `RiderDebugRunner.DebuggerWorkerModel.detachTarget`
	at com.jetbrains.rdclient.protocol.RdDispatcher.assertThread(RdDispatcher.kt:69)
	at com.jetbrains.rd.framework.base.RdReactiveBase.assertThreading(RdReactiveBase.kt:28)
	at com.jetbrains.rd.framework.impl.RdSignal.fire(RdSignal.kt:45)
	at com.jetbrains.rd.util.reactive.InterfacesKt.fire(Interfaces.kt:163)
	at com.jetbrains.rider.debugger.DebuggerWorkerProcessHandlerBase.detachProcessImpl(DebuggerWorkerProcessHandlerBase.kt:41)
	at com.jetbrains.rider.debugger.DebuggerWorkerProcessHandler.detachProcessImpl(DebuggerWorkerProcessHandler.kt:148)
	at com.intellij.execution.process.ProcessHandler.lambda$detachProcess$1(ProcessHandler.java:140)
	at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:322)
	at com.intellij.execution.process.ProcessHandler.detachProcess(ProcessHandler.java:137)
	at com.remco.software.ncrunch.editor.EditorIntegrationService$detachFromProcess$1$1.invoke(EditorIntegrationService.kt:106)
	at com.remco.software.ncrunch.editor.EditorIntegrationService$detachFromProcess$1$1.invoke(EditorIntegrationService.kt:104)
	at com.remco.software.ncrunch.ErrorService$Companion.doWithErrorHandling(ErrorService.kt:44)
	at com.remco.software.ncrunch.editor.EditorIntegrationService$detachFromProcess$1.invokeSuspend(EditorIntegrationService.kt:104)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

michaelkroes
#2 Posted : Wednesday, March 20, 2024 6:47:46 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 281
Location: Netherlands

Thanks: 125 times
Was thanked: 66 time(s) in 63 post(s)
Hi, thanks for taking the time to give such a detailed error report. I had already fixed the problem and it will be in our next build. But the extra information you gave about undocking the windows made clear to me why it was happening!

Thanks!
1 user thanked michaelkroes for this useful post.
cheil on 3/20/2024(UTC)
cheil
#3 Posted : Wednesday, March 20, 2024 1:40:11 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/5/2019(UTC)
Posts: 7
Location: United States of America

Thanks: 4 times
Was thanked: 2 time(s) in 2 post(s)
No problem, thank you!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download