flurry / flurry-ios-sdk

Flurry iOS SDK CocoaPods
Apache License 2.0
154 stars 62 forks source link

Crash in [FlurryAppOrientationSource onqueue_dataProviderDidUpdate:] #215

Open celiasty917 opened 4 years ago

celiasty917 commented 4 years ago

Describe the bug Crashes in [FlurryAppOrientationSource onqueue_dataProviderDidUpdate:] happened on iOS 13.6, 13.7 and 14.0

Sample crash log:

Date/Time: 2020-10-03 00:01:32.2888 +0900 Launch Time: 2020-10-03 00:01:17.1387 +0900 OS Version: iPhone OS 13.7 (17H35) Release Type: User Baseband Version: n/a Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x00003e33c093ac8c VM Region Info: 0x3e33c093ac8c is not in any region. Bytes after previous region: 68380720868493
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END

Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [1079] Triggered by Thread: 1

Thread 1 name: Thread 1 Crashed: 0 libobjc.A.dylib 0x000000019af809bc objc_retain + 76 (objc-runtime-new.h:340) 1 Flurry_iOS_SDK 0x0000000107254584 -[FlurryAppOrientationSource onqueue_dataProviderDidUpdate:] (in Flurry_iOS_SDK) + 104 2 Flurry_iOS_SDK 0x000000010723b47c __30-[FlurryActor wrapAsyncBlock:]_block_invoke (in Flurry_iOS_SDK) + 236 3 libdispatch.dylib 0x000000019af089a8 _dispatch_call_block_and_release + 24 (init.c:1408) 4 libdispatch.dylib 0x000000019af09524 _dispatch_client_callout + 16 (object.m:495) 5 libdispatch.dylib 0x000000019aeb58a4 _dispatch_lane_serial_drain$VARIANT$mp + 608 (inline_internal.h:2484) 6 libdispatch.dylib 0x000000019aeb6294 _dispatch_lane_invoke$VARIANT$mp + 416 (queue.c:3863) 7 libdispatch.dylib 0x000000019aebf78c _dispatch_workloop_worker_thread + 588 (queue.c:6445) 8 libsystem_pthread.dylib 0x000000019af5ab74 _pthread_wqthread + 272 (pthread.c:2351) 9 libsystem_pthread.dylib 0x000000019af5d740 start_wqthread + 8

This Bug is About Please choose the closest item by replacing [ ] with [x].

Platform Please choose the platform(s) that you are having the issue by replacing [ ] with [x].

Environment Please tell us the versions of Flurry SDK, XCode, and iOS you are using.

To Reproduce Steps to reproduce the behavior: Happened to user, cannot reproduce from my side

Screenshots If applicable, add screenshots to help explain your problem. N.A.

Additional context Are you using Flurry Push/Messaging? No (iOS) Are you using CocoaPods or manual binary integration? manual cocoapods

Add any other context about the problem here.

rajkaur01 commented 4 years ago

@celiasty917 Thank you for using Flurry Analytics. This issue was fixed in v11.1.1 so please upgrade to v11.1.1.

gregggreg commented 4 years ago

@celiasty917 Thank you for using Flurry Analytics. This issue was fixed in v11.1.1 so please upgrade to v11.1.1.

Still only seeing v11.1.0 here on github. No v11.1.1 yet.

andreipetrea commented 4 years ago

We also have this issue in Production, so good the hear that you have a fix for it.

@gregggreg I was able to update the SDK to v11.1.1 using Cocoapods.

@rajkaur01 Could you please update the release notes as well?

rajkaur01 commented 4 years ago

@andreipetrea The release notes are available at https://cocoapods.org/pods/Flurry-iOS-SDK#changelog @greggreg v11.1.1 has been merged into the master branch.

andreipetrea commented 4 years ago

@rajkaur01 thanks!

I usually check the release notes here: https://developer.yahoo.com/flurry/docs/releasenotes/ios/ That's why I assumed are not up to date.

rajkaur01 commented 4 years ago

@andreipetrea Apologies will update the developer site as well.

roychou71 commented 4 years ago

@rajkaur01 After updated to v11.1.1 we still encounter this crash issue on iOS 13 & 14 with Xcode 12.0

Crashed: FlurryAppOrientationSource 0 libobjc.A.dylib 0x186e19cdc objc_retain + 76 1 Flurry_iOS_SDK 0x1014727e8 -[FlurryAppOrientationSource onqueue_dataProviderDidUpdate:] + 104 2 Flurry_iOS_SDK 0x1014598a0 __30-[FlurryActor wrapAsyncBlock:]_block_invoke + 236 3 libdispatch.dylib 0x186d8a134 _dispatch_call_block_and_release + 32 4 libdispatch.dylib 0x186d8b5ac _dispatch_client_callout + 20 5 libdispatch.dylib 0x186d91a64 _dispatch_lane_serial_drain + 568 6 libdispatch.dylib 0x186d92498 _dispatch_lane_invoke + 400 7 libdispatch.dylib 0x186d9ba5c _dispatch_workloop_worker_thread + 584 8 libsystem_pthread.dylib 0x186df1718 _pthread_wqthread + 276 9 libsystem_pthread.dylib 0x186df79c8 start_wqthread + 8

Please help to check, thanks

hantao-flurrydev commented 4 years ago

Hi @roychou71, is this bug only on xcode 12.0?

roychou71 commented 4 years ago

@hantao-flurrydev thanks for replying.

We are not sure if this bug only on Xcode 12 since apps for iOS 14 can be only submitted by Xcode 12

We have checked Crashlytics and found this crash start to happen when updated Flurry pod to v10.3.1 from v10.2.0, and at that time we use Xcode 11 to submit app for iOS 13. Also, new version app with Flurry pod updated to v10.3.4, v11.0.0, v11.1.0 didn't solve the issue in past months. (Our another app started to crash with this issue from v10.3.0)

After we update Flurry pod to v11.1.1 and release app with new version few days ago, we still encounter this crash, and the crash log is like the above replying.

Please help to check, thanks

yatinglin commented 4 years ago

@rajkaur01 We still encounter this crash issue on iOS 13 and 14 with v11.1.1.

Crashed: FlurryAppOrientationSource 0 libobjc.A.dylib 0x1993d005c objc_retain + 76 1 Flurry_iOS_SDK 0x101ca67e8 -[FlurryAppOrientationSource onqueue_dataProviderDidUpdate:] + 104 2 Flurry_iOS_SDK 0x101c8d8a0 __30-[FlurryActor wrapAsyncBlock:]_block_invoke + 236 3 libdispatch.dylib 0x19935a610 _dispatch_call_block_and_release + 24 4 libdispatch.dylib 0x19935b184 _dispatch_client_callout + 16 5 libdispatch.dylib 0x199338710 _dispatch_lane_serial_drain$VARIANT$armv81 + 564 6 libdispatch.dylib 0x199339128 _dispatch_lane_invoke$VARIANT$armv81 + 400 7 libdispatch.dylib 0x19934243c _dispatch_workloop_worker_thread + 576 8 libsystem_pthread.dylib 0x1993aab88 _pthread_wqthread + 276 9 libsystem_pthread.dylib 0x1993ad760 start_wqthread + 8

Could you please help to check?

rajkaur01 commented 4 years ago

@roychou71 @yatinglin We are working on fixing this issue and it will be included in our next release. Stay tuned.

kumareshbabuas commented 3 years ago

Still facing the crash issue in Production in iOS 14+. using Version 11.1.1

Crashed: FlurryAppOrientationSource EXC_BAD_ACCESS KERN_PROTECTION_FAILURE 0x0000005387064e80 keyboard_arrow_up 0 libobjc.A.dylib objc_msgSend + 24 arrow_right 1 Flurry_iOS_SDK FlurryAppOrientationSource.m - Line 52 -[FlurryAppOrientationSource onqueue_dataProviderDidUpdate:] + 52 2 Flurry_iOS_SDK FlurryActor.m - Line 321 __30-[FlurryActor wrapAsyncBlock:]_block_invoke + 321

rajkaur01 commented 3 years ago

@kumareshbabuas Please upgrade to v11.2.0