transistorsoft / react-native-background-fetch

Periodic callbacks in the background for both IOS and Android
MIT License
1.48k stars 193 forks source link

SIGTRAP: BUG IN CLIENT OF LIBPLATFORM: Trying to recursively lock an os_unfair_lock Queue 305: com.facebook.react.RNBackgroundFetchQueue #527

Open fivecar opened 2 weeks ago

fivecar commented 2 weeks ago

Your Environment

Expected Behavior

No crashes

Actual Behavior

A crash in the library

Steps to Reproduce

Unfortunately unsure, as this was captured in the wild via Instabug. Stack trace below.

Context

Every ~2 hours or so, I fetch some podcast RSS feeds

Debug logs

Thread 27 Queue 305: com.facebook.react.RNBackgroundFetchQueue (serial) [Crashed]:

0    libsystem_platform.dylib                 0x1f97e01c4     _os_unfair_lock_recursive_abort + 36
1    libsystem_platform.dylib                 0x1f97dd55c     _os_unfair_lock_lock_slow + 319
2    BackgroundTasks                          0x219172034     -[BGTask dealloc] + 39
3    libsystem_blocks.dylib                   0x1f988cfc4     _Block_object_dispose + 255
4    libsystem_blocks.dylib                   0x1f988d1b0     _call_dispose_helpers_excp + 47
5    libsystem_blocks.dylib                   0x1f988d164     _Block_release + 251
6    BackgroundTasks                          0x219171d4c     -[BGTask _unsafe_setTaskCompletedWithSuccess:afterDelay:] + 55
7    BackgroundTasks                          0x219171fbc     -[BGTask _setTaskCompletedWithSuccess:actionsIfNotAlreadyCompleted:] + 111
8    Superphonic                              0x102e04294     -[TSBackgroundFetch finish:] + 555
9    Superphonic                              0x102c98a44     -[RNBackgroundFetch finish:] (RNBackgroundFetch.m:119)
10   CoreFoundation                           0x19cde1814     __invoking___ + 147
11   CoreFoundation                           0x19cde0860     -[NSInvocation invoke] + 427
12   CoreFoundation                           0x19ce571dc     -[NSInvocation invokeWithTarget:] + 63
13   Superphonic                              0x102d625cc     -[RCTModuleMethod invokeWithBridge:module:arguments:] (RCTModuleMethod.mm:584)
14   Superphonic                              0x102d64620     facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) (RCTNativeModule.mm:196)
15   Superphonic                              0x102d64270     ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke (RCTNativeModule.mm:104)
16   libdispatch.dylib                        0x1a4ce913c     _dispatch_call_block_and_release + 31
17   libdispatch.dylib                        0x1a4ceadd4     _dispatch_client_callout + 19
18   libdispatch.dylib                        0x1a4cf2400     _dispatch_lane_serial_drain + 747
19   libdispatch.dylib                        0x1a4cf2f30     _dispatch_lane_invoke + 379
20   libdispatch.dylib                        0x1a4cfdcb4     _dispatch_root_queue_drain_deferred_wlh + 287
21   libdispatch.dylib                        0x1a4cfd528     _dispatch_workloop_worker_thread + 403
22   libsystem_pthread.dylib                  0x1f9894934     _pthread_wqthread + 287
23   libsystem_pthread.dylib                  0x1f98910cc     start_wqthread + 7
christocracy commented 2 weeks ago

Is it chronic or is this just a one-off?