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
Crash on property/distinct query #36
Comments
A "general protection fault" should never happen, looking into it... |
Reproduced! Thank you for the example code! 👍 If you follow the example of the property query Swift docs and assign the query to a variable, it should work. If you put everything in one line, the main query gets discarded and thus crashes. Will check now if we can prevent this. |
Improved internally, will be part of next release (1.3). |
Thank for you looking into the issue and working on a fix! I have confirmed that creating the query as a variable before executing the property/distinct lookup works as expected:
I could not find an example of a property/distinct query in your documentation that was structured in this way, however. The one example I could find was expressed as a single line as I did above. I mention this only because you may want to update your documentation until a fix can be released. From the ObjectBox Swift documentation: |
Thanks for pointing to those docs... 🤔 If you know how, you could try this out now using https://github.com/objectbox/objectbox-swift-spec-staging/releases/tag/v1.3.x. If not, the official release comes soon. |
Looks good! No more crash using the single line form in my trivial example project. Thanks again for the quick fix. |
1.3.0 has been released with a fix. |
Xcode 11.4.1, Swift 5.x, iOS 13.4.1
I'm seeing a general protection fault when attempting a property/distinct query. This is occurring both on hardware and in the simulator.
I've replicated this crash in the following trivial example.
Am I doing something incorrectly? Is this a known issue?
The text was updated successfully, but these errors were encountered: