You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call Realm.GetInstance from my .NET client code normally, it works fine. But if I then run another instance of my application, and call GetInstance, it exits unexpectedly, saying: The program has exited with code -1073740791 (0xc0000409). The Visual Studio debugger does not catch any exceptions or anything, the program just stops, reporting that message to the output.
Best I can find on this exit code is this SO answer which suggests it might be a stack overrun..?
There does seem to be a timing issue involved (maybe with async background threads??) because when I have tried stepping into each instruction, starting from the .GetInstance call, while normally it just exits, on one occasion I actually succeeded in getting a few instructions further - but then it still stopped with the same message a bit later.
(Is this behaviour expected? Is my desired use supported? Should I be doing this another way?)
I agree - that's a native crash that should include an error message but it's not something all platforms surface meaningfully. I'll keep this ticket open and reach out to the core team that is responsible for the sync component to see if we can make this error more actionable.
What happened?
When I call Realm.GetInstance from my .NET client code normally, it works fine. But if I then run another instance of my application, and call GetInstance, it exits unexpectedly, saying: The program has exited with code -1073740791 (0xc0000409). The Visual Studio debugger does not catch any exceptions or anything, the program just stops, reporting that message to the output.
Best I can find on this exit code is this SO answer which suggests it might be a stack overrun..?
There does seem to be a timing issue involved (maybe with async background threads??) because when I have tried stepping into each instruction, starting from the .GetInstance call, while normally it just exits, on one occasion I actually succeeded in getting a few instructions further - but then it still stopped with the same message a bit later.
(Is this behaviour expected? Is my desired use supported? Should I be doing this another way?)
Repro steps
Version
Realm 10.5.1 / .NET 5.0
What SDK flavour are you using?
MongoDB Realm (i.e. Sync, auth, functions)
What type of application is this?
WPF
Client OS and version
Windows 10 Pro 21H1 19043.1237 64-bit operating system, x64-based processor Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz 16.0 GB RAM
Code snippets
Stacktrace of the exception/crash you're getting
Relevant log output
app=Realms.Sync.App user=61345920826942f6487d4d57 The program '[6332] RealmTestApp.exe' has exited with code -1073740791 (0xc0000409).
The text was updated successfully, but these errors were encountered: