ios_sdk: Crash: 4.35.3 [ADJActivityPackage encodeWithCoder:] ADJActivityPackage.m:92

Hi

Crashlytics is reporting a crash coming from the Adjust sdk.

Environment

  • SDK Version: [Adjust SDK 4.35.3 ]
  • iOS Version: [All]
  • Installation Method: [SPM]

Crash logs

Crashed: io.adjust.PackageQueue
0  libobjc.A.dylib                0x346c objc_retain_x0 + 16
1  libobjc.A.dylib                0x346c objc_retain + 16
2  Foundation                     0x159cc -[NSDictionary(NSDictionary) encodeWithCoder:] + 480
3  Foundation                     0x125d0 _encodeObject + 1096
4  Vestiaire Collective           0xe502a0 -[ADJActivityPackage encodeWithCoder:] + 92 (ADJActivityPackage.m:92)
5  Foundation                     0x125d0 _encodeObject + 1096
6  Foundation                     0x547a4 -[NSKeyedArchiver _encodeArrayOfObjects:forKey:] + 344
7  Foundation                     0x125d0 _encodeObject + 1096
8  Foundation                     0x2a97c +[NSKeyedArchiver archivedDataWithRootObject:requiringSecureCoding:error:] + 88
9  Vestiaire Collective           0xe70e7c +[ADJUtil writeObject:fileName:objectName:syncObject:] + 334 (ADJUtil.m:334)
10 Vestiaire Collective           0xe64d78 -[ADJPackageHandler writePackageQueueS:] + 349 (ADJPackageHandler.m:349)
11 Vestiaire Collective           0xe642b0 -[ADJPackageHandler addI:package:] + 219 (ADJPackageHandler.m:219)
12 Vestiaire Collective           0xe73038 __42+[ADJUtil launchInQueue:selfInject:block:]_block_invoke + 804 (ADJUtil.m:804)
13 libdispatch.dylib              0x637a8 _dispatch_call_block_and_release + 24
14 libdispatch.dylib              0x64780 _dispatch_client_callout + 16
15 libdispatch.dylib              0x3f6fc _dispatch_lane_serial_drain$VARIANT$armv81 + 600
16 libdispatch.dylib              0x401b0 _dispatch_lane_invoke$VARIANT$armv81 + 380
17 libdispatch.dylib              0x49f14 _dispatch_workloop_worker_thread + 608
18 libsystem_pthread.dylib        0x1bd0 _pthread_wqthread + 284
19 libsystem_pthread.dylib        0x1720 start_wqthread + 8

Steps to Reproduce

  • No luck to reproduce but it happens for 10 users minmum a day

Any Idea how to fix?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 21 (10 by maintainers)

Most upvoted comments

Hey @genadyb @uerceg,

Do we have any news about this? We’re unfortunately stuck at 4.33.3 for now due to this crash

Hey @genadyb , Happy to report that we have been on the proposed version for a bit and the crash has not resurfaced.

Thanks a bunch for the fix 🙏🏽

Hi, @efguydan. Thank you very much for your help. I’m analysing the data you’ve provided and let you know about the results very soon. 🙏🏻

Hello @AttiaMo, @victor-yn, @jc-paris, @baldursson. We’ve checked this crash root cause and it looks like we fixed it in our latest 4.38.0 release. Could you please check this out and let us know whether the problem was fixed or not. Many thanks for your priceless help and cooperation.

Hey @genadyb, in our version5.164.0 (836), we had Adjust SDK version 4.37.2.

Hello @genadyb @uerceg,

Any news on the matter ? This crash is still our top 3 and so impacting many users in our app.

Thank you for your inputs.

We are trying to reproduce this crash, but with no success for now. We will continue to look into that issue, but it might take some time, though, due to a holiday period.

In case it is possible, please use 4.33.3, until we figure out the root cause of this crash and fix it in the upcoming release.