Crashes in iOS Mopub SDK starting 8th of February [MPNSArrayMapper mappedObjectFromSourceObject:]



starting from the 8th of February, we are seeing a new crash inside the Mopub iOS SDK v4.19.0. It’s happening countless times and is going to be our #1 crash.
We receive the following stack trace of the crash:

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x1b64d0650'

Last Exception Backtrace:
0   CoreFoundation                       0x00000001852d7164 __exceptionPreprocess + 124
1   libobjc.A.dylib                      0x0000000184520528 objc_exception_throw + 52
2   CoreFoundation                       0x00000001852e4628 -[NSObject(NSObject) doesNotRecognizeSelector:] + 136
3   CoreFoundation                       0x00000001852dcb10 ___forwarding___ + 1376
4   CoreFoundation                       0x00000001851c1ccc _CF_forwarding_prep_0 + 88
5   MoPub                                0x0000000102217ed4 -[MPNSStringToNSURLMapper mappedObjectFromSourceObject:] (MPVASTModel.m:44)
6   MoPub                                0x000000010221850c -[MPNSArrayMapper mappedObjectFromSourceObject:] (MPVASTModel.m:182)
7   MoPub                                0x000000010221895c -[MPVASTModel initWithDictionary:] (MPVASTModel.m:235)
8   MoPub                                0x0000000102215428 -[MPVASTInline initWithDictionary:] (MPVASTInline.m:15)
9   MoPub                                0x000000010221829c -[MPClassMapper mappedObjectFromSourceObject:] (MPVASTModel.m:141)
10  MoPub                                0x000000010221895c -[MPVASTModel initWithDictionary:] (MPVASTModel.m:235)
11  MoPub                                0x0000000102213abc -[MPVASTAd initWithDictionary:] (MPVASTAd.m:17)
12  MoPub                                0x000000010221829c -[MPClassMapper mappedObjectFromSourceObject:] (MPVASTModel.m:141)
13  MoPub                                0x00000001022185ec -[MPNSArrayMapper mappedObjectFromSourceObject:] (MPVASTModel.m:188)
14  MoPub                                0x000000010221895c -[MPVASTModel initWithDictionary:] (MPVASTModel.m:235)
15  MoPub                                0x0000000102216d90 +[MPVASTManager parseVASTResponseFromData:depth:completion:] (MPVASTManager.m:65)
16  MoPub                                0x0000000102216a2c __46+[MPVASTManager fetchVASTWithData:completion:]_block_invoke (MPVASTManager.m:38)
17  libdispatch.dylib                    0x0000000184c56a54 _dispatch_call_block_and_release + 20
18  libdispatch.dylib                    0x0000000184c56a14 _dispatch_client_callout + 12
19  libdispatch.dylib                    0x0000000184c5dbc8 _dispatch_queue_override_invoke$VARIANT$mp + 712
20  libdispatch.dylib                    0x0000000184c63cf4 _dispatch_root_queue_drain + 596
21  libdispatch.dylib                    0x0000000184c63a38 _dispatch_worker_thread3 + 116
22  libsystem_pthread.dylib              0x0000000184eff06c _pthread_wqthread + 1264
23  libsystem_pthread.dylib              0x0000000184efeb6c start_wqthread + 0

We are seeing this crash exclusively happening for programmatic native video advertisement in the UK.
We are not able to reproduce this crash even once in our setup. We did not release an App update that caused the appearance of this crash. How can we proceed to resolve this issue?

Thank you for your help!


Hi @hartlco,
Thanks for reporting this.
Can you please reach out to So then we will escalate this issue and look further into it.
Many thanks,