Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.3.0p2

Issue ID

988690

Regression

No

[iOS] Crash in "application:didRegisterForRemoteNotificationsWithDeviceToken" on run using PushNotifications and BackgroundModes

Mobile

-

Reproduction steps:
1. Open the attached project.
2. Build it to Xcode.
3. Go to "Build Phases > Link Binary With Libraries".
4. Click "+".
5. Add "UserNotidications.framework".
6. Go to "Capabilities".
7. Turn on "Push Notifications".
8. Turn on "Background Modes".
9. Check "Background fetch" checkbox.
10. Check "Remote notifications" checkbox.

Actual result:
- Crash.

...
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x0000000187d41014 libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x0000000187e0b264 libsystem_pthread.dylib`pthread_kill + 112
frame #2: 0x0000000187cb59c4 libsystem_c.dylib`abort + 140
frame #3: 0x00000001877811b0 libc++abi.dylib`abort_message + 132
frame #4: 0x000000018779ac04 libc++abi.dylib`default_terminate_handler() + 304
frame #5: 0x00000001877a8820 libobjc.A.dylib`_objc_terminate() + 124
frame #6: 0x00000001877975d4 libc++abi.dylib`std::__terminate(void (*)()) + 16
frame #7: 0x0000000187796ef8 libc++abi.dylib`__cxa_throw + 136
frame #8: 0x00000001877a866c libobjc.A.dylib`objc_exception_throw + 364
frame #9: 0x0000000188d4def4 CoreFoundation`-[NSObject(NSObject) doesNotRecognizeSelector:] + 140
frame #10: 0x0000000188d4ad54 CoreFoundation`___forwarding___ + 404
frame #11: 0x0000000188c46d4c CoreFoundation`_CF_forwarding_prep_0 + 92
* frame #12: 0x00000001003ab7b8 […]`::-[CrashDemo application:didRegisterForRemoteNotificationsWithDeviceToken:](self=0x000000017411a310, _cmd=<unavailable>, application=<unavailable>, deviceToken=<unavailable>) at CrashDemo.mm:53 [opt]
frame #13: 0x0000000187bfe9e0 libdispatch.dylib`_dispatch_call_block_and_release + 24
frame #14: 0x0000000187bfe9a0 libdispatch.dylib`_dispatch_client_callout + 16
frame #15: 0x0000000187c035e8 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 996
frame #16: 0x0000000188cf50c8 CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
frame #17: 0x0000000188cf2ce4 CoreFoundation`__CFRunLoopRun + 1572
frame #18: 0x0000000188c22da4 CoreFoundation`CFRunLoopRunSpecific + 424
frame #19: 0x000000018a68c074 GraphicsServices`GSEventRunModal + 100
frame #20: 0x000000018eedd058 UIKit`UIApplicationMain + 208
frame #21: 0x0000000100046020 […]`main(argc=1, argv=0x000000016fdbf9b0) at main.mm:33 [opt]
frame #22: 0x0000000187c3159c libdyld.dylib`start + 4
...

Reproduced with:
2017.2.1p2, 2017.3.0p2, 2018.1.0b2
iPhone 6+ 8.0, iPhone 7+ 10.3.2, iPad Mini 3 iOS 10.3.2

Not reproducible with:
iPad Air 2 iOS 8.1

Note:
- Screenshots attached with Xcode setting locations.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.