Skip to content

RCTTurboModule.mm problematic crash handling #276

Answered by RSNara
SemihGk asked this question in Q&A

You must be logged in to vote

@SemihGk, thank you for filing the report!

I think there's a mistake in this pr: facebook/react-native#36925

This code...

    @try {
      [inv invokeWithTarget:strongModule];
    } @catch (NSException *exception) {
      throw convertNSExceptionToJSError(runtime, exception);
    } @finally {
      [retainedObjectsForInvocation removeAllObjects];
    }

Should look maybe look like this...

  if (isSync) {
    @try {
      [inv invokeWithTarget:strongModule];
    } @catch (NSException *exception) {
      throw convertNSExceptionToJSError(runtime, exception);
    } @finally {
      [retainedObjectsForInvocation removeAllObjects];
    }
  } else {
    @try {
      [inv invokeWithTarget:strongM…

Replies: 3 comments 15 replies

You must be logged in to vote
0 replies

You must be logged in to vote
6 replies
@SemihGk

@cipolleschi

@SemihGk

@cipolleschi

@SemihGk

You must be logged in to vote
9 replies
@cipolleschi

@SemihGk

@SemihGk

@cipolleschi

@SemihGk

Answer selected by SemihGk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants