question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] EXC_BAD_ACCESS

See original GitHub issue

My app crash every time I try to do this and only this query to the realm database. It happens only in iOS and in Debug Mode. Release mode works as expected.

PS: To clarify when I say debug Mode, I don’t mean the Debug Mode “Debug JS Remotely”, what I mean is Application Scheme Build Configuration in Debug.

Query: realm.objects('playersInfo').filtered(queryString + " OR " + queryString2, [200, 500], this.props.onLoan, userInfo.SystemVisible).sorted('updated', true);

App Crash error:

Error: com.facebook.react.JavaScript (10): EXC_BAD_ACCESS (code=2, address=0x7000080b1f88)

(lldb) register read General Purpose Registers: rbx = 0x0000000128600000 rbp = 0x00007000014edf10 rsp = 0x00007000014ed620 r12 = 0x0000000000000004 r13 = 0x00007000014ee210 r14 = 0x00007000014ee068 r15 = 0x0000000000000004 rip = 0x000000010c0d23c9 MyApplicationName`OpaqueJSValue* realm::js::ResultsClassrealm::jsc::Types::create_filtered<realm::js::Resultsrealm::jsc::Types >(OpaqueJSContext const*, realm::js::Resultsrealm::jsc::Types const&, realm::js::Argumentsrealm::jsc::Types) + 505 at js_results.hpp:190 13 registers were unavailable.

Goals

To retrieve the results.

Expected Results

To retrieve the results.

Actual Results

App crash.

Error: com.facebook.react.JavaScript (10): EXC_BAD_ACCESS (code=2, address=0x7000080b1f88)

screen shot 2018-06-01 at 18 49 39 screen shot 2018-06-01 at 18 49 12

Steps to Reproduce

Maybe have a query string really really big. Still trying to reproduce.

Version of Realm and Tooling

“realm”: “^2.7.2” “react-native”: “0.52.1”, Client OS & Version: High Sierra

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
jedelbocommented, Dec 1, 2020

We have just re-implemented the query parser and the new parser should not suffer from this problem.

2reactions
FlaviooLimacommented, Jun 7, 2018

@ironage Thanks for the response =D But unfortunately, I’m already doing that xD. And the part that breaks the code is really “queryString2” here there are only “OR”. I already found a way to work around this but it’s such a nasty way that I’m trying to see if any other idea comes to mind xD @kneth @ironage thank you very much, hope to see this fix in the future and keep up the awesome work =D 🚀 🌕 🌕

Read more comments on GitHub >

github_iconTop Results From Across the Web

EXC_BAD_ACCESS crash error: Understanding and solving it
EXC_BAD_ACCESS is an exception raised as a result of accessing bad memory. We're constantly working with pointers to memory in Swift that link ......
Read more >
What Is EXC_BAD_ACCESS and How to Debug It - Code
In Xcode, you can enable zombie objects, which means deallocated objects are kept around as zombies. Put differently, deallocated objects are ...
Read more >
EXC_BAD_ACCESS signal received - Stack Overflow
An EXC_BAD_ACCESS signal is the result of passing an invalid pointer to a system call. I got one just earlier today ...
Read more >
How Can I Solve An EXC_BAD_ACCESS - Apple Developer
One way to look for a solution is to turn "zombies" on, in the scheme you use to run the app from Xcode....
Read more >
io.flutter.1.ui - EXC_BAD_ACCESS (code=1, address ... - GitHub
Steps to Reproduce Update your iOS-device to iOS 16.0. Use latest Flutter stable version (actually: 3.3.2). Start your app and watch a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found