Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-28-2009, 11:54 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 17
Unhappy difficult problem:app crashes when installed from xcode but still installs on device

Hi Everyone,

I have a really weird problem with lots of error messages that I can't decipher.

Quick backstory. I have installed this app on my device and distributed it in the app store. I am now trying to do an update and was attempting to install the new update on device. The only thing I changed regarding config was the version number, which I have switched back as I thought it was an error.

When I attempt to run the device 3.0 - release configuration I get the following errors in the device console.



Fri Aug 28 23:29:08 unknown kernel[0] <Debug>: (appname) 295 FS_READ_MDATA SBF /private/var/tmp 13 (seatbelt)
...
...
... (a bunch of these)
Fri Aug 28 23:35:26 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mydomain.myappname[0xe19a]) Bug: launchd_core_logic.c:2649 (23909):10
Fri Aug 28 23:35:26 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mydomain.myappname[0xe19a]) Working around 5020256. Assuming the job crashed.
Fri Aug 28 23:35:26 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.mydomain.myappname[0xe19a]) Job appears to have crashed: Segmentation fault
Fri Aug 28 23:35:26 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.mydomain.myappname[0xe19a]) Throttling respawn: Will start in 2147483250 seconds
Fri Aug 28 23:35:26 unknown SpringBoard[23] <Warning>: Application 'App name' exited abnormally with signal 11: Segmentation fault
Fri Aug 28 23:36:14 unknown mobile_installationd[296] <Error>: 00808c00 install_embedded_profile: Skipping the installation of the embedded profile
Fri Aug 28 23:36:15 unknown mobile_installationd[296] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Fri Aug 28 23:36:16 unknown mobile_installationd[296] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Fri Aug 28 23:36:19 unknown SpringBoard[23] <Warning>: Reloading and rendering all application icons.
Fri Aug 28 23:36:27 unknown com.apple.debugserver-42[311] <Warning>: debugserver-42 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Fri Aug 28 23:36:27 unknown com.apple.debugserver-42[311] <Warning>: Connecting to com.apple.debugserver service...
Fri Aug 28 23:36:31 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.mydomain.myappname[0x1b08]) Spawned and waiting for the debugger to attach before continuing...
Fri Aug 28 23:36:31 unknown kernel[0] <Debug>: launchd[312] Builtin profile: container (seatbelt)
Fri Aug 28 23:36:31 unknown com.apple.debugserver-42[311] <Warning>: Got a connection, waiting for debugger instructions for task "(null)".
Fri Aug 28 23:36:31 unknown kernel[0] <Debug>: launchd[312] Container: /private/var/mobile/Applications/9E72B778-AB3B-4B6F-AAE5-E2DAA52E3CE1 (seatbelt)
Fri Aug 28 23:36:49 unknown kernel[0] <Debug>: Appname 312 FS_READ_DATA SBF /private/var/tmp 13 (seatbelt)
...
... (a bunch more)


Finally I get a EXC_BAD_ACCESS.

The funny thing is that when I stop the debugger, the app is installed on my device and appears to run successfully! I should also mention that I put a breakpoint in main and it is never hit. I am not sure if the application is running or if this is during install.

I am worried about what will happen when people on itunes download this update.

I have no idea if this is an error with my application, my provisioning profile stuff or something else given the variety of error messages.

Does anyone have any ideas?

Last edited by slobbymon; 08-28-2009 at 11:58 PM.
slobbymon is offline   Reply With Quote
Old 08-29-2009, 01:19 AM   #2 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 17
Default

Quote:
Originally Posted by slobbymon View Post
Hi Everyone,

I have a really weird problem with lots of error messages that I can't decipher.

Quick backstory. I have installed this app on my device and distributed it in the app store. I am now trying to do an update and was attempting to install the new update on device. The only thing I changed regarding config was the version number, which I have switched back as I thought it was an error.

When I attempt to run the device 3.0 - release configuration I get the following errors in the device console.



Fri Aug 28 23:29:08 unknown kernel[0] <Debug>: (appname) 295 FS_READ_MDATA SBF /private/var/tmp 13 (seatbelt)
...
...
... (a bunch of these)
Fri Aug 28 23:35:26 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mydomain.myappname[0xe19a]) Bug: launchd_core_logic.c:2649 (23909):10
Fri Aug 28 23:35:26 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mydomain.myappname[0xe19a]) Working around 5020256. Assuming the job crashed.
Fri Aug 28 23:35:26 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.mydomain.myappname[0xe19a]) Job appears to have crashed: Segmentation fault
Fri Aug 28 23:35:26 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.mydomain.myappname[0xe19a]) Throttling respawn: Will start in 2147483250 seconds
Fri Aug 28 23:35:26 unknown SpringBoard[23] <Warning>: Application 'App name' exited abnormally with signal 11: Segmentation fault
Fri Aug 28 23:36:14 unknown mobile_installationd[296] <Error>: 00808c00 install_embedded_profile: Skipping the installation of the embedded profile
Fri Aug 28 23:36:15 unknown mobile_installationd[296] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Fri Aug 28 23:36:16 unknown mobile_installationd[296] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Fri Aug 28 23:36:19 unknown SpringBoard[23] <Warning>: Reloading and rendering all application icons.
Fri Aug 28 23:36:27 unknown com.apple.debugserver-42[311] <Warning>: debugserver-42 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Fri Aug 28 23:36:27 unknown com.apple.debugserver-42[311] <Warning>: Connecting to com.apple.debugserver service...
Fri Aug 28 23:36:31 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.mydomain.myappname[0x1b08]) Spawned and waiting for the debugger to attach before continuing...
Fri Aug 28 23:36:31 unknown kernel[0] <Debug>: launchd[312] Builtin profile: container (seatbelt)
Fri Aug 28 23:36:31 unknown com.apple.debugserver-42[311] <Warning>: Got a connection, waiting for debugger instructions for task "(null)".
Fri Aug 28 23:36:31 unknown kernel[0] <Debug>: launchd[312] Container: /private/var/mobile/Applications/9E72B778-AB3B-4B6F-AAE5-E2DAA52E3CE1 (seatbelt)
Fri Aug 28 23:36:49 unknown kernel[0] <Debug>: Appname 312 FS_READ_DATA SBF /private/var/tmp 13 (seatbelt)
...
... (a bunch more)


Finally I get a EXC_BAD_ACCESS.

The funny thing is that when I stop the debugger, the app is installed on my device and appears to run successfully! I should also mention that I put a breakpoint in main and it is never hit. I am not sure if the application is running or if this is during install.

I am worried about what will happen when people on itunes download this update.

I have no idea if this is an error with my application, my provisioning profile stuff or something else given the variety of error messages.

Does anyone have any ideas?
I've made some progress.

I don't think it is a provisioning issue. I had multiple provisions on the device and deleted the one I wasn't using, now the console on the device shows this upon startup from xcode:

Sat Aug 29 01:11:47 unknown mobile_installationd[535] <Error>: 00808c00 install_embedded_profile: Skipping the installation of the embedded profile
Sat Aug 29 01:11:53 unknown SpringBoard[23] <Warning>: Reloading and rendering all application icons.
Sat Aug 29 01:12:00 unknown com.apple.debugserver-42[548] <Warning>: debugserver-42 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Sat Aug 29 01:12:00 unknown com.apple.debugserver-42[548] <Warning>: Connecting to com.apple.debugserver service...
Sat Aug 29 01:12:03 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.mydomain.myapp[0xc8f4]) Spawned and waiting for the debugger to attach before continuing...
Sat Aug 29 01:12:03 unknown kernel[0] <Debug>: launchd[549] Builtin profile: container (seatbelt)
Sat Aug 29 01:12:03 unknown com.apple.debugserver-42[548] <Warning>: Got a connection, waiting for debugger instructions for task "(null)".
Sat Aug 29 01:12:03 unknown kernel[0] <Debug>: launchd[549] Container: /private/var/mobile/Applications/2B18348F-E100-4DB4-AF36-41E0C29D2E92 (seatbelt)
Sat Aug 29 01:12:18 unknown kernel[0] <Debug>: MyApp 549 FS_READ_DATA SBF /private/var/tmp 13 (seatbelt)
Sat Aug 29 01:12:18 unknown kernel[0] <Debug>: MyApp 549 FS_READ_MDATA SBF /private/var/tmp 13 (seatbelt)
Sat Aug 29 01:12:18 unknown kernel[0] <Debug>: MyApp 549 FS_READ_MDATA SBF /private/var/tmp 13 (seatbelt)

This last line then repeats a ton of times until the EXC_BAD_ACCESS. But again, the app is installed and then after this works just fine.

Does anyone have any idea what the

FS_READ_MDATA SBF /private/var/tmp 13 (seatbelt)

means?

Could this be an error with the debugger and not my app?

Any suggestions?

Thanks
slobbymon is offline   Reply With Quote
Old 08-29-2009, 01:35 AM   #3 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 17
Default

Quote:
Originally Posted by slobbymon View Post
I've made some progress.

I don't think it is a provisioning issue. I had multiple provisions on the device and deleted the one I wasn't using, now the console on the device shows this upon startup from xcode:

Sat Aug 29 01:11:47 unknown mobile_installationd[535] <Error>: 00808c00 install_embedded_profile: Skipping the installation of the embedded profile
Sat Aug 29 01:11:53 unknown SpringBoard[23] <Warning>: Reloading and rendering all application icons.
Sat Aug 29 01:12:00 unknown com.apple.debugserver-42[548] <Warning>: debugserver-42 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Sat Aug 29 01:12:00 unknown com.apple.debugserver-42[548] <Warning>: Connecting to com.apple.debugserver service...
Sat Aug 29 01:12:03 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.mydomain.myapp[0xc8f4]) Spawned and waiting for the debugger to attach before continuing...
Sat Aug 29 01:12:03 unknown kernel[0] <Debug>: launchd[549] Builtin profile: container (seatbelt)
Sat Aug 29 01:12:03 unknown com.apple.debugserver-42[548] <Warning>: Got a connection, waiting for debugger instructions for task "(null)".
Sat Aug 29 01:12:03 unknown kernel[0] <Debug>: launchd[549] Container: /private/var/mobile/Applications/2B18348F-E100-4DB4-AF36-41E0C29D2E92 (seatbelt)
Sat Aug 29 01:12:18 unknown kernel[0] <Debug>: MyApp 549 FS_READ_DATA SBF /private/var/tmp 13 (seatbelt)
Sat Aug 29 01:12:18 unknown kernel[0] <Debug>: MyApp 549 FS_READ_MDATA SBF /private/var/tmp 13 (seatbelt)
Sat Aug 29 01:12:18 unknown kernel[0] <Debug>: MyApp 549 FS_READ_MDATA SBF /private/var/tmp 13 (seatbelt)

This last line then repeats a ton of times until the EXC_BAD_ACCESS. But again, the app is installed and then after this works just fine.

Does anyone have any idea what the

FS_READ_MDATA SBF /private/var/tmp 13 (seatbelt)

means?

Could this be an error with the debugger and not my app?

Any suggestions?

Thanks
I actually figured something out! To save everyone the pain I went through here is what happened.

To do debugging I added these environment variables

MallocStackLoggingNoCompact
MallocStackLogging

I forgot I had done so. They can be set under the arguments tab on the info on the executable.

When I unchecked them (so as to not include them) I stopped getting the errors and it worked!! I guess it was trying to write to a place it didn't have permissions to write to on the device.

Glad this one is fixed. Only took 2 hours.
slobbymon is offline   Reply With Quote
Old 09-30-2009, 04:57 PM   #4 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 78
Default

Quote:
Originally Posted by slobbymon View Post
I actually figured something out!
Who-hoo! (I'm seeing these messages as well, incidentally.)

Quote:
To do debugging I added these environment variables

Code:
MallocStackLoggingNoCompact
MallocStackLogging
I forgot I had done so. They can be set under the arguments tab on the info on the executable.
Not quite spotting where this arguments tab is (?). Looking at info of the exec, but I don't see it.

Perhaps it's still indicative of a problem? Hmm … perhaps we should re-read this bit:

Malloc Debug Environment Variables Release Notes
jdandrea is offline   Reply With Quote
Old 08-09-2011, 11:38 AM   #5 (permalink)
tod
Registered Member
 
Join Date: Apr 2010
Posts: 10
Default Good solution; problem still exists in 2011

This thread may be from 2009, but this problem is still happening in 2011. Apparently Apple's provisioning scheme hasn't gotten much better.

Yesterday, my app started quitting on launch whenever I installed it from Xcode. It was an expired provisioning profile. This thread saved me hours and hours. Thank you.
__________________
Developer of News Clocks - Awesome World Clock for iPad and iPhone
tod is offline   Reply With Quote
Reply

Bookmarks

Tags
crash install, install app iphone device, provisioning, xcode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 263
17 members and 246 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, jakerocheleau, JasonR, prchn4christ, Rudy, Speed, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:49 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0