-
Notifications
You must be signed in to change notification settings - Fork 126
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
Mac app was crashed by objectbox #626
Comments
"obx_model_property": so there seems something wrong with one of the properties. If you can reproduce the issue, could you try to isolate the "offending" property? |
@greenrobot Thanks for your reply. Unfortunately I cannot reproduce the issue, I got this report by a user. According to him, historical versions of the app are working(objectbox v1.7.2), but the latest app will crash (objectbox v2.5.1). I don't know if it is caused by upgrading the objectbox version. |
@MegatronKing Not sure if possible, but can you ask the user to provide the full crash report from macOS (https://support.apple.com/guide/console/reports-cnsl664be99a/mac)? The snippet above is lacking an error code and additional details, similar to the report attached to this comment. |
Attached crash.log |
@MegatronKing Thanks! Managed to symbolicate it: Notable parts:
Two issues:
It should not be possible to ship an incompatible C library when building with Flutter, which would explain the likely incorrect function names. Even if, the Dart code enforces a minimum version throwing before a Store could even be initialized. So not sure what is happening here. |
Update: after some internal discussion it might currently not be possible to correctly symbolize crash reports because the needed info is stripped from our release library included in the ObjectBox Pod. Hence the nonsensical method names. This leaves This might be another weird Dart SDK bug, so I suggest building with the latest version of the Flutter/Dart SDK if possible. |
Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue. |
I have tested the latest version 4.0.3, still has this issue. And I add some logs in
Generated dart code obx_int.ModelEntity(
id: const obx_int.IdUid(11, 513),
name: 'CaptureRecordHistory',
lastPropertyId: const obx_int.IdUid(5, 7822886344423758990),
flags: 0,
properties: <obx_int.ModelProperty>[
obx_int.ModelProperty(
id: const obx_int.IdUid(1, 6040167676980227669),
name: 'id',
type: 6,
flags: 1),
obx_int.ModelProperty(
id: const obx_int.IdUid(2, 3451062823193510338),
name: 'uid',
type: 9,
flags: 34848,
indexId: const obx_int.IdUid(7, 9031217690624826865)),
obx_int.ModelProperty(
id: const obx_int.IdUid(3, 6042425634497518656),
name: 'timestamp',
type: 10,
flags: 0),
obx_int.ModelProperty(
id: const obx_int.IdUid(4, 5370782675607767186),
name: 'dbData',
type: 9,
flags: 0),
obx_int.ModelProperty(
id: const obx_int.IdUid(5, 7822886344423758990),
name: 'dbUniqueId',
type: 9,
flags: 0)
],
relations: <obx_int.ModelRelation>[],
backlinks: <obx_int.ModelBacklink>[]), Crash report file: Reqable_2025-01-02-164929_zhangyqMacBookPro.txt |
It is reproducible on some devices, but not on others. A small number of my users have experienced this kind of crash, and I hope to be able to resolve it or provide further troubleshooting solutions. |
@MegatronKing Thanks for the details! Is this running on the same macOS version and architecture, and using the same Flutter version as noted in the original comment? Have you tried using a recent Flutter version? Also if you can, please share the code of the entity class. It would make it much faster for me to reproduce this! Anyhow, we'll have a look once there is time. |
Is there an existing issue?
Build info
Logs
The text was updated successfully, but these errors were encountered: