-
Notifications
You must be signed in to change notification settings - Fork 136
Description
Is there an existing issue?
- I have searched existing issues
Build info
- objectbox version: 4.3.0
- Flutter/Dart version: 3.29.3
- Build OS: macOS 15.4.1 (24E263)
- Deployment OS or device: Android 14,Android 15, iOS 18.4
I'm migrating from Isar to ObjectBox and facing a major issue in debug mode. I’ve done some investigation but haven’t identified the root cause yet.
I’m already using ObjectBox in another app (Flutter version 3.24.5) without any performance issues during debugging. However, in this other (much larger) app, I’m unable to run it smoothly in debug mode. After some research, I found two possible reasons:
-
Merged platform and UI threads – Flutter issue #150525. This specific comment caught my attention.
-
Hot reload performance degradation when using multiple isolates – Flutter issue #169437
I’ve tried using the following flag:
<meta-data
android:name="io.flutter.embedding.android.DisableMergedPlatformUIThread"
android:value="true" />
But the result was the same.
My question is: is this a Dart/Flutter limitation, or is it truly related to the merged thread behavior and FFI communication?
It's also worth noting that I don’t experience this problem with Isar, even though it also relies on FFI.