tristanhimmelman / ObjectMapper

Simple JSON Object mapping written in Swift
MIT License
9.16k stars 1.03k forks source link

Eventual crashing #1123

Open laizaraujo opened 3 years ago

laizaraujo commented 3 years ago

I have noticed several crash reports, and unfortunately, I can not reproduce it, but Crashlytics has been reporting it several times in the production app. It is a EXC_BAD_ACCESS KERN_INVALID_ADDRESS, that always points to an ObjectMapper model.

This crash report is 100% iOS 15 related. Both iPad and iOS.

Here is the crashed thread: Crashed: com.apple.root.default-qos 0 KCRA 0x259278 Mapper.map(JSON:) + 4333097592 1 KCRA 0x123814 specialized static ContentItem.parseContentItem(:) + 4331829268 (:4331829268) 2 KCRA 0xfbf00 AlertBarUnit.mapping(map:) + 4331667200 (:4331667200) 3 KCRA 0x89264 protocol witness for BaseMappable.mapping(map:) in conformance BaseModel + 4331197028 (:4331197028) 4 KCRA 0x259630 Mapper.map(JSON:) + 4333098544 5 KCRA 0x2581fc Mapper.map(JSONObject:) + 4333093372 6 KCRA 0x24cff4 static FromJSON.optionalObject(:map:) + 4333047796 7 KCRA 0x25d638 <- infix(::) + 4333114936 8 KCRA 0x11384c HeaderResponse.mapping(map:) + 26 (HeaderResponse.swift:26) 9 KCRA 0x7da64 protocol witness for BaseMappable.mapping(map:) in conformance BaseResponse + 4331149924 (:4331149924) 10 KCRA 0x259630 Mapper.map(JSON:) + 4333098544 11 KCRA 0x1c9d58 specialized closure #1 in closure #1 in HTTPClient.request(_:path:parameters:completion:) + 4332510552 (:4332510552) 12 KCRA 0x95e24 thunk for @escaping @callee_guaranteed () -> () + 4331249188 (:4331249188) 13 libdispatch.dylib 0x1c04 _dispatch_call_block_and_release + 32 14 libdispatch.dylib 0x3950 _dispatch_client_callout + 20 15 libdispatch.dylib 0x6a58 _dispatch_queue_override_invoke + 792 16 libdispatch.dylib 0x14f48 _dispatch_root_queue_drain + 388 17 libdispatch.dylib 0x15768 _dispatch_worker_thread2 + 164 18 libsystem_pthread.dylib 0x1174 _pthread_wqthread + 228 19 libsystem_pthread.dylib 0xf50 start_wqthread + 8

371612143 commented 1 year ago

did you fix this bug?how to

ghadeermohameedelmahdy commented 1 year ago

Any updates?