question

Abhimanyu avatar image
Abhimanyu asked

iOS fling SDK ver:1.3.0 crashes

Hi Team, We have integrated the fling sdk to 1.3.0 and observed some crashes and following logs:

0x1002aa2e4 std::__1::__tree_iterator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, void*>*, long> std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >::__lower_bound<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, void*>*, std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, void*>*) + 4297319140 0x1002aa208 std::__1::__tree_iterator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, void*>*, long> std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 4297318920 0x1002b8724 MdnsRecordStore::hasRecordWithSameUuid(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) + 4297377572 0x1002b8588 RemoveBonjourService(__CFNetService*, unsigned long, void (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)) + 4297377160 0x1002b8b68 BrowseBonjourCallBack(__CFNetServiceBrowser*, unsigned long, void const*, CFStreamError*, void*) + 4297378664 0x18c40d090 _BrowseReply(_DNSServiceRef_t*, unsigned int, unsigned int, int, char const*, char const*, char const*, void*) + 780 0x18ad278b8 handle_browse_response + 156 0x18ad25928 DNSServiceProcessResult + 624 0x18c40c938 _SocketCallBack(__CFSocket*, unsigned long, __CFData const*, void const*, void*) + 32 0x18bd5118c __CFSocketPerformV0 + 1060 0x18bd4c278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 0x18bd4bbc0 __CFRunLoopDoSources0 + 524 0x18bd497c0 __CFRunLoopRun + 804 0x18bc78048 CFRunLoopRunSpecific + 444 0x1002b6e20 BonjourHelper::runBonjourRunLoop(bool) + 4297371168 0x1002b6c28 BonjourHelper::run() + 4297370664 0x10042dc3c apache::thrift::concurrency::PthreadThread::threadMain(void*) + 836744 0x18ae34850 _pthread_body + 240 0x18ae34760 _pthread_body + 282 0x18ae31dac thread_start + 4

Please let us know if any update requires at application level to get rid of this issue.

sdkamazon fling
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image Levon@Amazon ♦ commented ·

Thanks Abhimanyu, I have forwarded your message to the Fling team, and will update this thread whenever there are any news. Thanks!

0 Likes 0 ·
Levon@Amazon avatar image
Levon@Amazon answered

Hi Abhimanyu,

Thanks for posting on the forums! The logs show that this crash happens when the application is shutting down, e.g. when the user of the app kills the app from the multitasking screen. And is not a user facing crash.

We are aware of this crash. From our investigation, we know that it is related to the app not waiting long enough for the Amazon Fling SDK to release all the resources before terminating. Unfortunately, releasing the resources can sometimes be dependent on network conditions and hence a fixed duration may not work.

We will update this thread once we have a fix and guidance on how to change the app. Thanks!

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi Levon,

Any updates on amazon fixing the crash when swiping to kill app on Apple os. I understand that this happens only in the rare case where app is running in forground or in a background timer condition. But i would still like it seem fixed as when debugging my apps I always swipe to kill.

Thanks in advanced

Nick

0 Likes 0 ·
Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

We are in the process of releasing a new Fling SDK that will help with some crashes. Please integrate once it (ver 1.3.1) is available. I don't have an ETA, but keep your eye on the SDKs page:

https://developer.amazon.com/sdk-download

Related: https://forums.developer.amazon.com/questions/16100/crash-in-ios-sdk.html

2 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi levon

Just downloaded 1.3.1 for iOS and I no longer get crashes when swiping to kill the app :) thank you for fixing !

Just wondering if there was any change to life cycle that I should be aware of. I did look at the examples but the look the same as 1.3.0

Thanks

Nick

0 Likes 0 ·
Levon@Amazon avatar image Levon@Amazon ♦ commented ·

Excellent, good to hear that. I believe life cycle stayed the same, but some things were optimized to avoid those crashes. Thanks!

0 Likes 0 ·