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

iOS 12 logEvent crash #3255

Closed
alfonsomestre opened this issue Jun 25, 2019 · 10 comments
Closed

iOS 12 logEvent crash #3255

alfonsomestre opened this issue Jun 25, 2019 · 10 comments
Milestone

Comments

@alfonsomestre
Copy link

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 10.2
  • Firebase SDK version: 6.2.0
  • Firebase Component:
    FirebaseAnalytics 6.0.1
    FirebaseCore 6.0.2
    FirebaseInAppMessaging 0.15.0
    FirebaseInstanceID 4.1.1
    FirebaseMessaging 4.0.2
    FirebaseRemoteConfig 4.0.0
  • Component version: (FirebaseAnalytics) 6.0.1

[REQUIRED] Step 3: Describe the problem

App crashes sometimes with users of iOS 12

image

The crash is the following:
image

Steps to reproduce:

What happened? How can we make the problem occur?
This does not always happen, and it does not have a patter. I leave the crash report:

Fatal Exception: NSGenericException
0  CoreFoundation                 0x1f6ec23a8 __exceptionPreprocess
1  libobjc.A.dylib                0x1f60c7d00 objc_exception_throw
2  CoreFoundation                 0x1f6ec1c10 -[__NSSingleObjectEnumerator initWithObject:]
3  libobjc.A.dylib                0x1f60da4a0 objc_enumerationMutation
4  _                  	 		  0x102cd7fa4 +[APMEvent normalizedParametersForParameters:isPublicEvent:]
5  _                              0x102cd8aac -[APMEvent initWithOrigin:isPublic:name:timestamp:previousTimestamp:parameters:]
6  _                              0x102bfd324 __62-[FIRAnalyticsConnector registerAnalyticsListener:withOrigin:]_block_invoke
7  _                              0x102c98c78 +[APMAnalytics notifyEventListenersOnSerialQueue:]
8  _                              0x102c95b00 +[APMAnalytics logEventsOnWorkerQueue:notifyEventListeners:]
9  _                              0x102c96780 +[APMAnalytics logEventOnSerialQueueWithOrigin:isPublicEvent:name:parameters:timestamp:ignoreEnabled:ignoreInterceptor:addedScreenParameters:]
10 _                   			  0x102c96068 __65+[APMAnalytics logEventWithOrigin:isPublicEvent:name:parameters:]_block_invoke_3
11 libdispatch.dylib              0x1f68d0304 _dispatch_call_block_and_release
12 libdispatch.dylib              0x1f68d1884 _dispatch_client_callout
13 libdispatch.dylib              0x1f68d8dd4 _dispatch_lane_serial_drain
14 libdispatch.dylib              0x1f68d9918 _dispatch_lane_invoke
15 libdispatch.dylib              0x1f68e1cc0 _dispatch_workloop_worker_thread
16 libsystem_pthread.dylib        0x1f6acca98 _pthread_wqthread
17 libsystem_pthread.dylib        0x1f6ad2dc4 start_wqthread

Relevant Code:

There is no relevant code, i just call : Analytics.logEvent(eventName, parameters: parameters)

Thanks!

@google-oss-bot

This comment has been minimized.

@paulb777
Copy link
Member

Thanks for the report. Opened internal issue at b/136009423

@paulb777 paulb777 added this to the M51 milestone Jun 27, 2019
@paulb777
Copy link
Member

Thanks again for the report @alfonsomestre. The fix is staged for the next Firebase release milestone - M51 (6.4.0)

@alfonsomestre
Copy link
Author

Thank you @paulb777! Really appreciate, we will look forward to the next release!

@ghost
Copy link

ghost commented Aug 13, 2019

@alfonsomestre Is this issue fixed after 6.4.0 release. It seem still happens on our app, which import 6.5.0

@alfonsomestre
Copy link
Author

Yes @at-binhdo, you are right. It still happens in version 6.5.0

@paulb777
Copy link
Member

We have a fix coming in next week's 6.7.0

@paulb777 paulb777 modified the milestones: 6.4.0, 6.7.0 Aug 14, 2019
@alfonsomestre
Copy link
Author

Thanks, @paulb777 !!

@bogdannedelcu
Copy link

bogdannedelcu commented Oct 12, 2019

Hello @paulb777, I am using Firebase with Flutter and I struggle with this error. I have latest version of Firebase and even disabled Analytics but still crashes randomly. The log and all configs are detailed here: flutter/flutter#42599

Thank you!

@paulb777
Copy link
Member

@bogdannedelcu We are unlikely to be able to help without a reproducible example or a backtrace of the crash - neither of which I see at the flutter issue. If you can get one of those, please open another issue in this repo and we'll investigate.

@firebase firebase locked and limited conversation to collaborators Oct 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
4 participants