Rider is crashing when trying to compile code, and sometimes seemingly at random: Trying to read or write to protected memory error

Windows 10 Pro, updated to the latest update as of 10/30/24

Processor: Intel(R) Core(TM) i9-1400K 3.20 GHz

Installed RAM: 32.0 GB (31.7 GB usable)

 

 

I've tried to problem solve in the following ways with no luck:

 Uninstalled and reinstalled Rider, 

Updated Rider to 2024.2.7, 

Downgraded Rider to a 2023 version, 

Currently using version: 2024.2.6

 All versions have crashed in the same way, with the same error.

 

I've ran a memory diagnostic, and CPU stress test and both came back without errors.

I'm not sure how to solve this, any suggestions? Others on my team have Rider, with the same versions and aren't having the same issue.

 

Error log is showing this at the begininng of the stack trace:

... maximal number of WARN messages reached: 500, no more WARN messages allowed to stderr ...
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Process '33744' exited with code -1073741819.
Roslyn Worker process exited unexpectedly; please submit this exception with logs
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Process '28444' exited with code -1073741819.
Roslyn Worker process exited unexpectedly; please submit this exception with logs
Fatal error. Internal CLR error. (0x80131506)
  at System.Reflection.RuntimeModule.GetTypes(System.Reflection.RuntimeModule)
  at System.Reflection.RuntimeModule.GetTypes()
  at JetBrains.Roslyn.Worker.ComponentContainer.MefHostServicesBuilder+<>c.<Build>b__12_0(System.Reflection.Assembly)
  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
  at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(System.Collections.Generic.IEnumerable`1<System.Type>, System.Composition.Convention.AttributedModelProvider)
  at System.Composition.Hosting.ContainerConfiguration.CreateContainer()
  at JetBrains.Roslyn.Worker.ComponentContainer.MefHostServicesBuilder.Build()
  at JetBrains.Roslyn.Worker.ComponentContainer.RoslynHostServices.CreateWorkspaceServices(Microsoft.CodeAnalysis.Workspace)
  at Microsoft.CodeAnalysis.Workspace..ctor(Microsoft.CodeAnalysis.Host.HostServices, System.String)
  at JetBrains.Roslyn.Worker.Workspaces.RoslynWorkspace..ctor(JetBrains.Lifetimes.Lifetime, JetBrains.Roslyn.Worker.ComponentContainer.RoslynHostServices, JetBrains.Roslyn.Worker.Models.RoslynProjectSession)
  at JetBrains.Roslyn.Worker.RoslynWorkerController.CreateWorkspace(JetBrains.Lifetimes.Lifetime, JetBrains.Roslyn.Worker.ComponentContainer.RoslynHostServices, JetBrains.Roslyn.Worker.Models.RoslynProjectSession)
  at JetBrains.Roslyn.Worker.RoslynWorkerController.ViewSessionAsync(JetBrains.Lifetimes.Lifetime, JetBrains.Roslyn.Worker.Models.RoslynProjectSession, JetBrains.Roslyn.Worker.RoslynTaskHost)
  at JetBrains.Roslyn.Worker.RoslynWorkerController.ViewSession(JetBrains.Lifetimes.Lifetime, JetBrains.Roslyn.Worker.Models.RoslynProjectSession, JetBrains.Roslyn.Worker.RoslynTaskHost)
  at JetBrains.Roslyn.Worker.RoslynWorkerController+<>c__DisplayClass3_1.<Start>b__2(JetBrains.Lifetimes.Lifetime, JetBrains.Roslyn.Worker.Models.RoslynProjectSession)
  at JetBrains.Collections.Viewable.ReactiveEx+<>c__DisplayClass8_0`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<ViewNotNull>b__0(JetBrains.Lifetimes.Lifetime, System.__Canon)
  at JetBrains.Collections.Viewable.ReactiveEx+<>c__DisplayClass7_0`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<View>b__0(System.__Canon)
  at JetBrains.Collections.Viewable.SignalBase`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Fire(System.__Canon)
  at JetBrains.Collections.Viewable.ViewableProperty`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].set_Value(System.__Canon)
  at JetBrains.Rd.Impl.RdProperty`1+<>c__DisplayClass24_0[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<OnWireReceived>b__0()
  at JetBrains.Rd.Impl.MessageBroker+RdWireableDispatchHelper+<>c__DisplayClass12_0.<DoDispatch>b__0()
  at JetBrains.Collections.Viewable.SingleThreadScheduler.ExecuteOneAction(Boolean)
  at JetBrains.Collections.Viewable.SingleThreadScheduler.Run()
  at JetBrains.Collections.Viewable.SingleThreadScheduler.RunInCurrentStackframe(JetBrains.Lifetimes.Lifetime, System.String, System.Action`1<JetBrains.Collections.Viewable.SingleThreadScheduler>)
  at JetBrains.Roslyn.Worker.RoslynWorkerController.Start(System.String, System.String, JetBrains.Roslyn.Worker.RoslynWorkerErrors.RoslynWorkerLogEventHandler)
  at JetBrains.Roslyn.Worker.RoslynWorkerProgram.Main(System.String, System.String, Boolean)
  at JetBrains.Roslyn.Worker.RoslynWorkerProgram.Main(System.String[])
Process '8916' exited with code -1073741819.
Roslyn Worker process exited unexpectedly; please submit this exception with logs
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

0
1 comment

Hello,

I assume you encounter a known which is caused by your i9 CPU.
Would you mind following the solutions described in this troubleshooting article? The solutions described there are proven to work by multiple users.

  • SUPPORT-A-239 Rider crashes while opening/loading/building a project i9 CPU;

If nothing of that helps, please let me know.
Have a nice day!

0

Please sign in to leave a comment.