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

Notification

Icon
Error

Rider, NCrunch 5.21.0.2, Exception
Rasmus
#1 Posted : Friday, January 9, 2026 1:15:40 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/17/2017(UTC)
Posts: 16
Location: Denmark

Was thanked: 3 time(s) in 3 post(s)
Hello,

I am running Rider 2025.3.1 with NCrunch 5.21.0.2 (updated since I had the UI freeze issue).

I just got the exception below reported when trying to debug a test.

Cheers



com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action only (see Application.runReadAction()); If you access or modify model on EDT consider wrapping your code in WriteIntentReadAction ; see https://jb.gg/ij-platform-threading for details
Current thread: Thread[#42,AWT-EventQueue-0,10,main] 484811515 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same)
at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:257)
at com.intellij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:173)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1190)
at com.intellij.openapi.command.impl.DocumentReferenceManagerImpl.assertIsWriteThread(DocumentReferenceManagerImpl.java:136)
at com.intellij.openapi.command.impl.DocumentReferenceManagerImpl.create(DocumentReferenceManagerImpl.java:115)
at com.intellij.openapi.command.impl.UndoRedoStacksHolder.collectLocalAffectedDocuments(UndoRedoStacksHolder.java:269)
at com.intellij.openapi.command.impl.UndoRedoStacksHolder.collectAllAffectedDocuments(UndoRedoStacksHolder.java:151)
at com.intellij.openapi.command.impl.UndoClientState.collectReferencesWithoutMergers(UndoClientState.java:548)
at com.intellij.openapi.command.impl.UndoClientState.compactIfNeeded(UndoClientState.java:433)
at com.intellij.openapi.command.impl.UndoClientState.commandFinished(UndoClientState.java:219)
at com.intellij.openapi.command.impl.UndoManagerImpl.onCommandFinished(UndoManagerImpl.java:367)
at com.intellij.openapi.command.impl.UndoCommandListener.undoTransparentActionFinished(UndoCommandListener.java:63)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:817)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:764)
at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:585)
at com.intellij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:193)
at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:533)
at jdk.proxy2/jdk.proxy2.$Proxy131.undoTransparentActionFinished(Unknown Source)
at com.intellij.openapi.command.impl.CommandPublisher.undoTransparentActionFinished(CommandPublisher.java:55)
at com.intellij.openapi.command.impl.CoreCommandProcessor.finishUndoTransparentAction(CoreCommandProcessor.java:355)
at com.intellij.openapi.command.impl.CoreCommandProcessor.runUndoTransparentAction(CoreCommandProcessor.java:279)
at com.intellij.util.DocumentUtil.writeInRunUndoTransparentAction(DocumentUtil.java:47)
at com.intellij.execution.console.ConsoleExecutionEditor.setInputText(ConsoleExecutionEditor.java:224)
at com.intellij.execution.console.LanguageConsoleImpl.setInputText(LanguageConsoleImpl.kt:365)
at com.jetbrains.rider.debugger.immediateWindow.consoleImpl.ImmediateWindowConsoleImpl.deactivate(ImmediateWindowConsoleImpl.kt:174)
at com.jetbrains.rider.debugger.immediateWindow.ImmediateWindow.a(ImmediateWindow.kt:83)
at com.jetbrains.rd.util.lifetime.LifetimeDefinition.destruct(RLifetime.kt:501)
at com.jetbrains.rd.util.lifetime.LifetimeDefinition.terminate(RLifetime.kt:480)
at com.jetbrains.rd.util.lifetime.LifetimeDefinition.terminate$default(RLifetime.kt:447)
at com.jetbrains.rider.debugger.util.XDebugSessionUtilKt.f(XDebugSessionUtil.kt:31)
at com.intellij.xdebugger.impl.util.XDebugSessionUtilsKt$notifyOnSessionStopped$1.sessionStopped(XDebugSessionUtils.kt:39)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:120)
at com.intellij.util.EventDispatcher.lambda$doCreateMulticaster$1(EventDispatcher.java:85)
at jdk.proxy2/jdk.proxy2.$Proxy314.sessionStopped(Unknown Source)
at com.intellij.xdebugger.impl.XDebugSessionImpl.processStopped(XDebugSessionImpl.kt:1088)
at com.intellij.xdebugger.impl.XDebugSessionImpl.stopImpl$lambda$0(XDebugSessionImpl.kt:1065)
at org.jetbrains.concurrency.DonePromise.onSuccess(promise.kt:480)
at org.jetbrains.concurrency.DonePromise.onSuccess(promise.kt:449)
at com.intellij.xdebugger.impl.XDebugSessionImpl.stopImpl(XDebugSessionImpl.kt:1065)
at com.intellij.xdebugger.impl.XDebugSessionImpl.access$stopImpl(XDebugSessionImpl.kt:90)
at com.intellij.xdebugger.impl.XDebugSessionImpl$init$2.processTerminated(XDebugSessionImpl.kt:374)
at com.intellij.execution.process.ProcessHandler$2.processTerminated(ProcessHandler.java:274)
at com.intellij.execution.process.ProcessHandler.lambda$notifyTerminated$2(ProcessHandler.java:219)
at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:337)
at com.intellij.execution.process.ProcessHandler.notifyTerminated(ProcessHandler.java:202)
at com.intellij.execution.process.ProcessHandler.notifyProcessDetached(ProcessHandler.java:194)
at com.jetbrains.rider.debugger.DebuggerWorkerProcessHandlerBase.detachProcessImpl(DebuggerWorkerProcessHandlerBase.kt:60)
at com.jetbrains.rider.debugger.DebuggerWorkerProcessHandler.detachProcessImpl(DebuggerWorkerProcessHandler.kt:159)
at com.intellij.execution.process.ProcessHandler.lambda$detachProcess$1(ProcessHandler.java:155)
at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:337)
at com.intellij.execution.process.ProcessHandler.detachProcess(ProcessHandler.java:152)
at com.remco.software.ncrunch.editor.EditorIntegrationService.detachFromProcess$lambda$13$lambda$12(EditorIntegrationService.kt:127)
at com.remco.software.ncrunch.ErrorService$Companion.doWithErrorHandling(ErrorService.kt:47)
at com.remco.software.ncrunch.editor.EditorIntegrationService.detachFromProcess$lambda$13(EditorIntegrationService.kt:125)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:167)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:167)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:173)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:167)
at com.intellij.util.concurrency.ContextRunnable.lambda$run$0(ContextRunnable.java:26)
at com.intellij.concurrency.ThreadContext.resetThreadContext(threadContext.kt:294)
at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:25)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:750)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:664)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:517)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0$0(IdeEventQueue.kt:337)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:901)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0(IdeEventQueue.kt:336)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1065)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:109)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1065)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0(IdeEventQueue.kt:331)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:371)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Remco
#2 Posted : Friday, January 9, 2026 10:11:23 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,454

Thanks: 1012 times
Was thanked: 1357 time(s) in 1260 post(s)
Thanks for sharing this issue. Is this something you can reproduce consistently? Or was it just a once-off?
Rasmus
#3 Posted : Saturday, January 10, 2026 8:18:55 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/17/2017(UTC)
Posts: 16
Location: Denmark

Was thanked: 3 time(s) in 3 post(s)
Just a once-off. I tried to reproduce a couple of time immediately after but had no luck. I'll post here if I see it again.
Remco
#4 Posted : Saturday, January 10, 2026 6:35:09 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,454

Thanks: 1012 times
Was thanked: 1357 time(s) in 1260 post(s)
Rasmus;18559 wrote:
Just a once-off. I tried to reproduce a couple of time immediately after but had no luck. I'll post here if I see it again.


Thanks. The exception here is pretty good - I think it's just a threading issue with the potential to show up rarely. I'll see what I can do about implementing a speculative fix.
Rasmus
#5 Posted : Tuesday, January 13, 2026 8:39:47 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/17/2017(UTC)
Posts: 16
Location: Denmark

Was thanked: 3 time(s) in 3 post(s)
Saw this again, identical stack trace. FYI.
1 user thanked Rasmus for this useful post.
Remco on 1/13/2026(UTC)
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.071 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download