-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when adding multiple documents to Realm via loop #6399
Comments
Thanks for reporting this. A few initial questions:
|
@nicola-cab #6536 and #6531 might be relevant? |
I am not sure @kiburtse, this seems a bad accessor being returned to the user in the notification (however I cannot exclude that this is somehow being generated by the same bug, but in core 13.4 there was no support for multiprocess encryption... which again could be just exposing the underlying bug more easily, which is what I suspect) |
The issue here is that a block is being freed twice. The issues that @kiburtse refers to has the same symptom, so there is definitely something fishy here. @markstratman it sounds like you are able to reproduce this issue. Would it be possible to share a minimal application that can sometimes reproduce this? (I am not a .Net developer, so I am not able to figure out if the code above is sufficient) |
Another duplicate of this could be #6340 |
@markstratman I would still like to pursue this issue. So it you still have a more complete program, that triggers this problem and if you are willing to share that, it would be most helpful. |
SDK and version
SDK : .Net Realm 10.20.0
Observations
Not always producible, about half the time a failure occures.
Crash log / stacktrace
D:\a\realm-dotnet\realm-dotnet\wrappers\realm-core\src\realm\alloc_slab.cpp:531: [realm-core-13.4.0] Assertion failed: ref + size <= next->first with (ref, size, next->first, next->second, get_file_path_for_assertions()) = [489768, 56, 489768, 56, "C:\Users\stratman\Documents\mongodb-realm\fleetproxy-szmau\64124734058eecc495c4658a\default.realm"]
!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose
C:\repo-git\wss\fleet-proxy\poc\dotnet\RealmClientConsole\RealmClientConsole\bin\Debug\net7\RealmClientConsole.exe (process 38392) exited with code -1073740791.
Steps & Code to Reproduce
The text was updated successfully, but these errors were encountered: