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
There is a crash that is occurring in DB::close_internal() when a Dart app is being torn down because the Logger instance has already been destroyed when the PersistedSyncMetadataManager is destroyed. It only happens if the debug level is set to something higher than info.
import 'package:realm_dart/realm.dart';
void main(List<String> arguments) async {
Realm.logger.setLogLevel(LogLevel.trace);
final app = App(AppConfiguration('dummy'));
// following throws since app doesn't exist,
// but notice the crash on exit
final user = await app.logIn(Credentials.anonymous());
}
The text was updated successfully, but these errors were encountered:
I have been trying to reproduce the crash using a Flutter app, but I haven't been able to reproduce it.
I have a fix ready for review that addresses this problem, but I cannot verify it in dart/flutter. I believe this issue was also seen in JS, so I will see if someone from that SDK team would be able to try to reproduce the issue.
I also created a test program (crash_test.cpp) in Core that reproduces this problem - the issue is present regardless of whether or the RealmFFI library is loaded dynamically or statically linked.
Also verified that the changes from PR #7985 fixes this crash as well.
There is a crash that is occurring in
DB::close_internal()
when a Dart app is being torn down because the Logger instance has already been destroyed when thePersistedSyncMetadataManager
is destroyed. It only happens if the debug level is set to something higher thaninfo
.The issue is here: https://github.com/realm/realm-core/blob/master/src/realm/db.cpp#L2045-L2046
From slack conversation: https://mongodb.slack.com/archives/C010R3CMP3N/p1723112587976859
Does this ring a bell? Happens consistently on process exit when setting trace level to something finer than INFO in a test using realm-core 14.11.0.
This is a minimal reproduction:
The text was updated successfully, but these errors were encountered: