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

XCode 10 GM - Crash on Tapping push notifications #237

Closed
Roshan-SignEasy opened this issue Sep 17, 2018 · 6 comments
Closed

XCode 10 GM - Crash on Tapping push notifications #237

Roshan-SignEasy opened this issue Sep 17, 2018 · 6 comments

Comments

@Roshan-SignEasy
Copy link

Hi ,

We are getting the following crash on tapping any push notification in our app. [Stack trace]

$SSo8NSObjectC8MixpanelE22userNotificationCenter_13newDidReceive21withCompletionHandlerySo06UNUserdE0C_So22UNNotificationResponseCyyctF (AutomaticEvents.swift:289)

When you receive a push notification, the app opens and crashes.

This issue was not present when we build using Xcode 9

Thanks

@Roshan-SignEasy
Copy link
Author

screen shot 2018-09-17 at 5 20 57 pm

More info here.

@zihejia
Copy link
Contributor

zihejia commented Sep 17, 2018

hi @Roshan-SignEasy , thanks for raising it. We have been working on the XCode 10 support now, so this issue will be taken care of.

It might also be related to:
#232

@Roshan-SignEasy
Copy link
Author

Thank you @zihejia

@oisinbyrne
Copy link

Hi @zihejia , Any update on this issue?

Thanks

@zihejia
Copy link
Contributor

zihejia commented Sep 20, 2018

We have released 2.5.0 which supports Xcode 10. The issue could not be reproduced, however if the problem still exists, please reopen it.

@zihejia zihejia closed this as completed Sep 20, 2018
@samwarfield
Copy link

I am experiencing this same issue

Thread 1: closure argument passed as @noescape to Objective-C has escaped: 
file /mixpanel-swift/Mixpanel/AutomaticEvents.swift, line 289, column 77

screen shot 2018-09-20 at 4 21 57 pm

0    Mixpanel                           0x0000000104ccfa30 NSObject.userNotificationCenter(_:newDidReceive:withCompletionHandler:) + 648
1    Mixpanel                           0x0000000104ccff6c @objc NSObject.userNotificationCenter(_:newDidReceive:withCompletionHandler:) + 124
2    UIKitCore                          0x00000001c3704f48 <redacted> + 3444
3    UIKitCore                          0x00000001c3f14fa0 <redacted> + 2432
4    UIKitCore                          0x00000001c3ed42f8 <redacted> + 772
5    UIKitCore                          0x00000001c3ed40f8 <redacted> + 432
6    UIKitCore                          0x00000001c3f17768 <redacted> + 220
7    UIKitCore                          0x00000001c3f182c4 _performActionsWithDelayForTransitionContext + 112
8    UIKitCore                          0x00000001c3f17604 <redacted> + 248
9    UIKitCore                          0x00000001c3f108a0 <redacted> + 368
10   UIKitCore                          0x00000001c371d76c <redacted> + 468
11   FrontBoardServices                 0x000000019986c4bc <redacted> + 228
12   libdispatch.dylib                  0x00000001080acdd4 _dispatch_client_callout + 16
13   libdispatch.dylib                  0x00000001080b0944 _dispatch_block_invoke_direct + 232
14   FrontBoardServices                 0x00000001998aa618 <redacted> + 40
15   FrontBoardServices                 0x00000001998aa12c <redacted> + 416
16   FrontBoardServices                 0x00000001998aa8b0 <redacted> + 56
17   CoreFoundation                     0x0000000196dca5a0 <redacted> + 24
18   CoreFoundation                     0x0000000196dca4e0 <redacted> + 88
19   CoreFoundation                     0x0000000196dc9d6c <redacted> + 176
20   CoreFoundation                     0x0000000196dc48d8 <redacted> + 1040
21   CoreFoundation                     0x0000000196dc4404 CFRunLoopRunSpecific + 436
22   GraphicsServices                   0x0000000199038520 GSEventRunModal + 100
23   UIKitCore                          0x00000001c36ef484 UIApplicationMain + 212

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

4 participants