Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fivecar opened this issue Sep 25, 2024 · 3 comments
Labels

Comments

@fivecar
Copy link

fivecar commented Sep 25, 2024

Your Environment

  • Plugin version: 4.1.10
  • Platform: iOS
  • OS version: 17.6.1
  • Device manufacturer / model: iPhone 14 Pro
  • React Native version (react-native -v): 0.75.2

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
Copy link
Member

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

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Oct 26, 2024
@fivecar
Copy link
Author

fivecar commented Oct 27, 2024

So far, @christocracy, it's a one-off. But I wouldn't weight that overly much because my app has perhaps only six daily active users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants