Skip to content

DXFeedSubscription critical failure when calling GetSymbols() in .NET 9 #87

@aaronwJordan

Description

@aaronwJordan

Hello,

After a painful amount of time and troubleshooting, I have narrowed down an issue I ran into two weeks ago:

CLR: Assert failure(PID 40324 [0x00009d84], Thread: 38864 [0x97d0]): !"Attempt to execute managed code after the .NET runtime thread state has been destroyed."
    File: D:\a\_work\1\s\src\coreclr\vm\ceemain.cpp:1799 Image:
C:\dev\foo\api\bin\Debug\net9.0\api.exe

Besides just the error above spitting out into the debug console, you will also get a fail fast exception dialog that is hard to miss. I thought it may have been timing issues with various background threads accessing my DXFeedSubscription but sure enough after downgrading back to .NET 8 the issue goes away.

The issue occurs after several minutes (typically 2-5min) of repeatedly calling (my timer is on a one second interval) .GetSymbols().

Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions