Pushwoosh/pushwoosh-ios-sdk

App has started crashing on parsing PW config response

Closed this issue · 7 comments

Hi,

few hours ago a working app on the store started crashing at init time; the crash stack is this

Thread 1 Queue : com.apple.main-thread (serial)
#0	0x000000018134808c in objc_exception_throw ()
#1	0x000000018152bfc0 in -[NSObject(NSObject) doesNotRecognizeSelector:] ()
#2	0x00000001816323d4 in ___forwarding___ ()
#3	0x0000000181634570 in _CF_forwarding_prep_0 ()
#4	0x00000001030f95dc in -[PWGetConfigRequest parseResponse:] ()
#5	0x000000010310532c in -[PWRequestManager processResponse:responseData:request:url:requestData:error:] ()
#6	0x0000000103104cd0 in __51-[PWRequestManager sendRequestInternal:completion:]_block_invoke.99 ()
#7	0x000000018488affc in ___lldb_unnamed_symbol849$$CFNetwork ()
#8	0x000000018489b8dc in ___lldb_unnamed_symbol1219$$CFNetwork ()
#9	0x00000001819fdc60 in __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ ()
#10	0x00000001818ff7e8 in -[NSBlockOperation main] ()
#11	0x00000001819fffbc in __NSOPERATION_IS_INVOKING_MAIN__ ()
#12	0x00000001818ff464 in -[NSOperation start] ()
#13	0x0000000181a009e8 in __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ ()
#14	0x0000000181a004a8 in __NSOQSchedule_f ()
#15	0x0000000104609a48 in _dispatch_block_async_invoke2 ()
#16	0x00000001045fb2a8 in _dispatch_client_callout ()
#17	0x000000010460935c in _dispatch_main_queue_callback_4CF ()
#18	0x00000001815a8e20 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#19	0x00000001815a3b7c in __CFRunLoopRun ()
#20	0x00000001815a3098 in CFRunLoopRunSpecific ()
#21	0x000000018b70d534 in GSEventRunModal ()
#22	0x00000001856c37ac in UIApplicationMain ()
[...]

the log before the crash

    Pushwoosh request:
| Url:      https://XXXXX-XXXXX.api.pushwoosh.com/json/1.3/getConfig
| Payload:  {"request":{"device_type":1,"features":["channels"],"application":"XXXXX-XXXXX","userId":"335B4F24-3DE3-4086-AB29-F9DB640D2A00","v":"5.19.2","hwid":"335B4F24-3DE3-4086-AB29-F9DB640D2A00"}}
| Status:   "200 no error"
| Response: {"status_code":200,"status_message":"OK","response":{"features":[]}}
x
2019-10-24 11:09:55.378668+0200 greenApes[2463:751414] -[__NSArray0 pw_arrayForKey:]: unrecognized selector sent to instance 0x1bea23888

BTW I've removed the app ID from the log

I'm using the iOS sdk 5.19.1 and just updated to latest pod 5.19.2 but I can still see the crash on my side.

Also: XCode 11.1 - iOS sdk 13

Any help is really appreciated.

We are having the exact same issue

We are having the exact same issue

wfhm commented

Hey @nferruzzi, @ReOuJneD, @manu89ft

Thanks for pointing this out! Working on fixing this right at the moment. Please stay tuned for further updates.

works for me now, thank you!

I can confirm, thanks

wfhm commented

@ReOuJneD, @nferruzzi

Thank you for your feedback!

We are finishing work on fixing this issue. I will additionally notify you as soon as the fix is stabilized!

Thank you for your patience!

wfhm commented

@ReOuJneD, @nferruzzi, @manu89ft

The issue is completely fixed. Service is back to stable performance.

Please accept our apologies for the inconvenience!