0

Alljoyn sometimes crash on iOS app

asked 2014-04-03 09:24:43 -0700

paopascua gravatar image

Hi, we integrated AllJoyn on our iOS app and had it approved on the iOS app store. After a few days, we received crash reports made by Alljoyn, Any fix for this?

Thread : Crashed: com.apple.main-thread 0 libsystemkernel.dylib 0x394721f0 _pthread_kill + 8

1 libsystempthread.dylib 0x394dc797 pthreadkill + 58

2 libsystem_c.dylib 0x39422fdd abort + 76

3 libsystemc.dylib 0x39402caf _assert_rtn + 182

4 GuestBookSchool 0x00102701 ajn::TCPTransport::NewAdvertiseOp(ajn::TCPTransport::AdvertiseOp, qcc::String, bool&) + 18376

5 GuestBookSchool 0x00101529 ajn::TCPTransport::DisableAdvertisementInstance(ajn::TCPTransport::ListenRequest&) + 13808

6 GuestBookSchool 0x00105903 ajn::TCPTransport::QueueDisableAdvertisement(qcc::String const&) + 31178

7 GuestBookSchool 0x000e87f1 ajn::AllJoynObj::ProcCancelAdvertise(qcc::String const&, qcc::String const&, unsigned short) + 49468

8 GuestBookSchool 0x000eb0e7 ajn::AllJoynObj::NameOwnerChanged(qcc::String const&, qcc::String const, qcc::String const) + 59954

9 GuestBookSchool 0x000f3c37 ajn::NameTable::CallListeners(qcc::String const&, qcc::String const, qcc::String const) + 1098

10 GuestBookSchool 0x000f406b ajn::NameTable::RemoveUniqueName(qcc::String const&) + 2174

11 GuestBookSchool 0x000f276d ajn::DaemonRouter::UnregisterEndpoint(qcc::String const&, ajn::EndpointType) + 6132

12 GuestBookSchool 0x0020c0ad ajn::NullTransport::Disconnect(char const*) + 16352

13 GuestBookSchool 0x001599fb BundledDaemon::~BundledDaemon() + 7386

14 libsystemc.dylib 0x39423839 _cxa_finalize + 160

15 libsystem_c.dylib 0x393e3a69 exit + 12

16 UIKit 0x30a7aed1 -[UIApplication _terminateWithStatus:] + 344

17 UIKit 0x30a783e9 -[UIApplication _handleApplicationSuspend:eventInfo:] + 2472

18 UIKit 0x309f9ca5 -[UIApplication handleEvent:withNewEvent:] + 880

19 UIKit 0x309f9871 -[UIApplication sendEvent:] + 72

20 UIKit 0x30a5dcc9 _UIApplicationHandleEvent + 616

21 GraphicsServices 0x33040aed PurpleEventCallback + 608 22 GraphicsServices 0x330406d7 PurpleEventCallback + 34 23 CoreFoundation 0x2e1a3ab7 CFRUNLOOPISCALLINGOUTTOASOURCE1PERFORM_FUNCTION + 34

24 CoreFoundation 0x2e1a3a53 __CFRunLoopDoSource1 + 346

25 CoreFoundation 0x2e1a2227 __CFRunLoopRun + 1398

26 CoreFoundation 0x2e10cf4f CFRunLoopRunSpecific + 522

27 CoreFoundation 0x2e10cd33 CFRunLoopRunInMode + 106

28 GraphicsServices 0x3303f663 GSEventRunModal + 138

29 UIKit 0x30a5816d UIApplicationMain + 1136

30 GuestBookSchool 0x0003dcfb main (main.m:14)

edit retag flag offensive close merge delete

Comments

BUMP!! need this resolved

paopascua ( 2014-04-09 08:52:51 -0700 )edit

what is the app name in the store? link?

ry.jones ( 2014-04-11 13:07:51 -0700 )edit

Hi paopasoua, Do you have additional stack trace from other threads for the above error? It seems that the system might have killed the app since it was waiting in a deadlock. Can you reproduce the error at your end in any way? That will be useful in trying to trace the issue. Please let me know.

Nikhil Dabhade ( 2014-04-21 07:09:19 -0700 )edit

@paopascua Can you post additional stack traces? Have you been able to reproduce this?

bspencer ( 2014-06-06 13:42:56 -0700 )edit

Was this issue resolved? If yes it could be great if the user can post the solution else I will go ahead and close this thread

Nikhil Dabhade ( 2014-07-18 15:05:08 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-03 15:16:16 -0700

The crash is due to the order that the static destructors are run. See frame 14: _cxa_finalize, followed by frame 13: ~BundledRouter. Frame 4: ajn::TCPTransport::NewAdvertiseOp is attempting to use a statically destructed object and asserting.

Use UIApplicationWillTerminateNotification to be notified when your application will be terminated and delete your BusAttachment there.

edit flag offensive delete publish link more

Comments

What is the procedure to delete a BusAttachment ?

Dipayan ( 2015-08-25 11:34:01 -0700 )edit
Login/Signup to Answer

Stats

Asked: 2014-04-03 09:24:43 -0700

Seen: 391 times

Last updated: Oct 03 '14