Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FATAL: attempting to release access but the mutator does not have access

I'm having trouble trying to figure out where to even look for this new issue that I'm seeing. I'm running react-native version 0.44.1 and I get a crash. The log in xcode shows:

FATAL: Attempting to release access but the mutator does not have access.

In the stack trace, I see it is UIApplicationMain:

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char * argv[]) {
  @autoreleasepool {
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
  }
}

In UIApplicationMain trace:

0x113f2091d <+159>: movq   0x1099bf4(%rip), %rbx     ; (void *)0x000000011042ad50: objc_release

What should I be attempting to find to root cause this issue?

like image 830
Digant C Kasundra Avatar asked Oct 29 '22 06:10

Digant C Kasundra


1 Answers

If you're using Realm, there is a chance you've hit the following issue:

https://github.com/realm/realm-js/issues/1095

Unfortunately, the easiest fix appears to be disabling remote JS debugging (which I can confirm worked for me).

like image 117
ahash Avatar answered Nov 03 '22 00:11

ahash