Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App crashes on some device with Application exited abnormally with signal 11: Segmentation fault: 11

Tags:

ios

iphone

I'm working on an iOS app and it load images from an URL like this image it is working perfectly on all the test devices in my office(and on simulator as well). but client said that the app is crashing whenever any image comes, everything else working as expected. Now the question is if there is any problem than how it is working on my side? Is there any way(any app or anything) by using them client can send crash report to me so i can check?

Note:- we are testing on the same iOS version(7.x)

EDIT:- Some how they get the log and send to me from that i got

May 20 22:48:47 iPhone-5S com.apple.launchd[1] (UIKitApplication:com.Ba-cha[0xfbd1][287]) <Warning>: (UIKitApplication:com.Ba-cha[0xfbd1]) Job appears to have crashed: Segmentation fault: 11
May 20 22:48:47 iPhone-5S backboardd[31] <Warning>: Application 'UIKitApplication:com.Ba-cha[0xfbd1]' exited abnormally with signal 11: Segmentation fault: 11

I searched for the same and tried NSZombieEnabled but in my device (iPhone 4 and iPhone5) it is working perfectly no log? And now the question is How can i reproduce the issue on my device?

like image 781
Bharat Avatar asked May 21 '14 05:05

Bharat


4 Answers

This is hit and try solution(at least worked for me):- My app Was worked fine on iPhone4 and 5(32 bit) but crash on iPhone 5s i.e. 64 bit processor. From some research on stackoverflow and Apple official i come to know perhaps there may be some problem in conversion between NSInteger to int. so i use NSInteger every where instead int. Also i'v to remove armv64 from my project and set NO for "Build Active Architecture Only" (debug and release)

That did the trick for me, I didn't really need any 64bit specific functionality on my app so I took it out. I know this is a hack and not a good solution but at least it works.

like image 76
Bharat Avatar answered Nov 14 '22 11:11

Bharat


As Adam suggested, iTunes would work but it may be better to save your client the chore...

You could alternatively send them a new version of the app using something like HockeyApp or TestFlight (free) integrated, allowing you to automatically receive the crash logs as well as the wide range of other useful tools they provide such as easier installation by the client.

like image 2
Luke Rhodes Avatar answered Nov 14 '22 11:11

Luke Rhodes


They can load Xcode, and connect the device. Device logs can be viewed in the Organizer window. Crashes are marked as such. The log text can be cut and pasted or the export button can just save the whole thing as text.

like image 1
Adam Eberbach Avatar answered Nov 14 '22 11:11

Adam Eberbach


Crashlytics offers software and service to upload crash logs.

It is possible to build up the information that appears in a crash log, but you will need unix signal handlers, various exceptions handlers, and a server to upload to.

like image 1
Walt Sellers Avatar answered Nov 14 '22 10:11

Walt Sellers