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

EXC_BAD_ACCESS in BfTask.m #322

Open
greensmartdev opened this issue Aug 4, 2018 · 0 comments
Open

EXC_BAD_ACCESS in BfTask.m #322

greensmartdev opened this issue Aug 4, 2018 · 0 comments

Comments

@greensmartdev
Copy link

This error occurs while running a project incorporating the Bolts framework compiled with bitcode on Xcode 9.4.1. The project is being run on device and the launch screen of the app even comes up, and then it crashes with the error in the title.

This is the relevant code snippet

BOOL completed; @synchronized(self.lock) { completed = self.completed; if (!completed) { [self.callbacks addObject:[^{ [executor execute:executionBlock]; } copy]]; } } if (completed) { [executor execute:executionBlock]; }

the exception is being thrown by the line:

[executor execute:executionBlock];

The stack trace is:

MyProject was compiled with optimization - stepping may behave oddly; variables may not be available.

  • thread Podspec updated #5, queue = 'com.parse.asynctaskqueue.sync', stop reason = EXC_BAD_ACCESS (code=2, address=0x117ea8640)
    frame #0: 0x0000000117ea8640
    • frame getStringAsync should return BFTask #1: 0x0000000100c012c8 MyProject-[BFTask continueWithExecutor:block:cancellationToken:](self=0x0000000117ea9690, _cmd=<unavailable>, executor=0x0000000117ea8df0, block=0x0000000100bd9a74, cancellationToken=<unavailable>) at BFTask.m:368 [opt] frame #2: 0x0000000100b8d1b8 MyProject__28-[PFAsyncTaskQueue enqueue:]_block_invoke(.block_descriptor=0x000000011990b920) at PFAsyncTaskQueue.m:50 [opt]
      frame Removing a piece of Android related code in the iOS documentation #3: 0x0000000101ff11dc libdispatch.dylib_dispatch_call_block_and_release + 24 frame #4: 0x0000000101ff119c libdispatch.dylib_dispatch_client_callout + 16
      frame Podspec updated #5: 0x0000000101fffdfc libdispatch.dylib_dispatch_queue_serial_drain + 768 frame #6: 0x0000000101ff46ac libdispatch.dylib_dispatch_queue_invoke + 328
      frame Added a few pragma marks. #7: 0x0000000102000d54 libdispatch.dylib_dispatch_root_queue_drain_deferred_wlh + 352 frame #8: 0x0000000102007e38 libdispatch.dylib_dispatch_workloop_worker_thread + 676
      frame Minor typo fix #9: 0x0000000182ef7e70 libsystem_pthread.dylib_pthread_wqthread + 860 frame #10: 0x0000000182ef7b08 libsystem_pthread.dylibstart_wqthread + 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant