Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

React Native IOS fabric crashlytics how to read and solve bags

$
0
0

I have React-native app with crashlytics from Fabric and i get the error on IOS stage: Fatal Exception: RCTFatalException: Unhandled JS Exception: JSON.stringify cannot serialize cyclic structures. This is the Fabric trace:

Crashed: com.twitter.crashlytics.ios.exception
0  vtb.invest                     0x1049f2730 CLSProcessRecordAllThreads + 376 (CLSProcess.c:376)
1  vtb.invest                     0x1049f2b18 CLSProcessRecordAllThreads + 407 (CLSProcess.c:407)
2  vtb.invest                     0x1049e2838 CLSHandler + 26 (CLSHandler.m:26)
3  vtb.invest                     0x1049f0d50 __CLSExceptionRecord_block_invoke + 199 (CLSException.mm:199)
4  libdispatch.dylib              0x197a96184 _dispatch_client_callout + 16
5  libdispatch.dylib              0x197a79dd8 _dispatch_lane_barrier_sync_invoke_and_complete + 56
6  vtb.invest                     0x1049f07f8 CLSExceptionRecord + 206 (CLSException.mm:206)
7  vtb.invest                     0x1049f062c CLSExceptionRecordNSException + 102 (CLSException.mm:102)
8  vtb.invest                     0x1049f0250 CLSTerminateHandler() + 259 (CLSException.mm:259)
9  vtb.invest                     0x104764bc0 CPPExceptionTerminate() + 392
10 libc++abi.dylib                0x197b96304 std::__terminate(void (*)()) + 16
11 libc++abi.dylib                0x197b9629c std::terminate() + 44
12 libobjc.A.dylib                0x197af12dc _objc_terminate() + 10
13 libdispatch.dylib              0x197a96198 _dispatch_client_callout + 36
14 libdispatch.dylib              0x197a7373c _dispatch_lane_serial_drain$VARIANT$armv81 + 564
15 libdispatch.dylib              0x197a74154 _dispatch_lane_invoke$VARIANT$armv81 + 400
16 libdispatch.dylib              0x197a7d43c _dispatch_workloop_worker_thread + 576
17 libsystem_pthread.dylib        0x197ae5fa4 _pthread_wqthread + 276
18 libsystem_pthread.dylib        0x197ae8ae0 start_wqthread + 8

And the issue details comes from this file RCTAssert.m line 163 with RCTFormatError, from this method:

NSString *RCTFormatError(NSString *message, NSArray<NSDictionary<NSString *, id> *> *stackTrace, NSUInteger maxMessageLength)
{
  if (maxMessageLength > 0 && message.length > maxMessageLength) {
    message = [[message substringToIndex:maxMessageLength] stringByAppendingString:@"..."];
  }

  NSMutableString *prettyStack = [NSMutableString string];
  if (stackTrace) {
    [prettyStack appendString:@", stack:\n"];

    NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"\\b((?:seg-\\d+(?:_\\d+)?|\\d+)\\.js)"
                                                                           options:NSRegularExpressionCaseInsensitive
                                                                             error:NULL];
    for (NSDictionary<NSString *, id> *frame in stackTrace) {
      NSString *fileName = [frame[@"file"] lastPathComponent];
      NSTextCheckingResult *match = fileName != nil ? [regex firstMatchInString:fileName options:0 range:NSMakeRange(0, fileName.length)] : nil;
      if (match) {
        fileName = [NSString stringWithFormat:@"%@:", [fileName substringWithRange:match.range]];
      } else {
        fileName = @"";
      }

      [prettyStack appendFormat:@"%@@%@%@:%@\n", frame[@"methodName"], fileName, frame[@"lineNumber"], frame[@"column"]];
    }
  }

  return [NSString stringWithFormat:@"%@%@", message, prettyStack];
}

Please can somebody explain me how can i read this stacktrace and solve my error.


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>