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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 05-07-2011, 02:28 AM   #1 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 54
amatoria is on a distinguished road
Default Release build crash on attached device on first launch

I have my iphone project with Login/Password as the first page after default splash screen. When I build & run the project's release configuration on attached iPhone it crashes immediately after (1 sec) the login view show up. No user interaction (user taps) with the app before the crash.

Points to note:
1. The same app doesn't crash every time after the first launch. That is, it work fine when i run it by tapping app icon on device.
2. Debug configuration runs fine all time even at first launch on device.
3. No issues while running the app on simulator in both configuration.

Any pointers about what could be the reason? Please help.

Thank you

PS: XCode v4.0, iOS sdk 4.3, iPhone 4 (iOS 4.2.1) and iPhone 3GS (iOS 4.0)
amatoria is offline   Reply With Quote
Old 05-07-2011, 07:20 AM   #2 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 54
amatoria is on a distinguished road
Default

Please help !! I count on this forum for iOS issues.
amatoria is offline   Reply With Quote
Old 05-07-2011, 08:18 AM   #3 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

What's the output in the console when it crashes? Post the crash log.
baja_yu is offline   Reply With Quote
Old 05-07-2011, 09:22 AM   #4 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 54
amatoria is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
What's the output in the console when it crashes? Post the crash log.
This is the crash log, as requested...

Code:
Sat May  7 19:46:28 unknown installd[4310] <Error>: 2ff66000 verify_signer_identity: APPSYNC bypass enabled
Sat May  7 19:46:28 unknown SpringBoard[30] <Warning>: Killing <SBApplication: 0x1a82c830> com.Safaltek.DanceVideoGenie  activate:  deactivate:  for app installation
Sat May  7 19:46:28 unknown installd[4310] <Error>: 2ff66000 verify_signer_identity: APPSYNC bypass enabled
Sat May  7 19:46:29 unknown SpringBoard[30] <Warning>: Reloading application state for 'com.Safaltek.DanceVideoGenie' as its modification date has changed
Sat May  7 19:46:29 unknown SpringBoard[30] <Warning>: LI:Home: createIconLists: (
	    "<SBIconListModel: 0x2e9f20>",
	    "<SBIconListModel: 0x1a810110>"
	)
Sat May  7 19:46:29 unknown SpringBoard[30] <Warning>: Reloading and rendering all application icons.
Sat May  7 19:46:30 unknown SpringBoard[30] <Warning>: LI:Home: createIconLists: (
	    "<SBIconListModel: 0x2e9f20>",
	    "<SBIconListModel: 0x1a8476a0>"
	)
Sat May  7 19:46:31 unknown kernel[0] <Debug>: lockbot[4307] Builtin profile: debugserver (sandbox)
Sat May  7 19:46:31 unknown com.apple.debugserver-48[4339] <Warning>: debugserver-48 for armv6 Copyright (c) 2007-2009 Apple, Inc.  All Rights Reserved.
Sat May  7 19:46:31 unknown com.apple.debugserver-48[4339] <Warning>: Connecting to com.apple.debugserver service...
Sat May  7 19:46:31 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.Safaltek.DanceVideoGenie[0x8cc8]) Spawned and waiting for the debugger to attach before continuing...
Sat May  7 19:46:32 unknown kernel[0] <Debug>: punchd[4340] Builtin profile: container (sandbox)
Sat May  7 19:46:32 unknown kernel[0] <Debug>: punchd[4340] Container: /private/var/mobile/Applications/A56F0C55-14F9-43FF-AB78-EAB4CFC20058 [69] (sandbox)
Sat May  7 19:46:32 unknown com.apple.debugserver-48[4339] <Warning>: 1 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:32 unknown com.apple.debugserver-48[4339] <Warning>: 2 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:33 unknown com.apple.debugserver-48[4339] <Warning>: 3 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:34 unknown com.apple.debugserver-48[4339] <Warning>: 4 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:34 unknown com.apple.debugserver-48[4339] <Warning>: 5 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:35 unknown com.apple.debugserver-48[4339] <Warning>: 6 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:35 unknown com.apple.debugserver-48[4339] <Warning>: 7 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:36 unknown com.apple.debugserver-48[4339] <Warning>: 8 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:36 unknown com.apple.debugserver-48[4339] <Warning>: 9 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:37 unknown com.apple.debugserver-48[4339] <Warning>: 10 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:37 unknown com.apple.debugserver-48[4339] <Error>: error: MachTask::StartExceptionThread (): task invalid, exception thread start failed.
Sat May  7 19:46:37 unknown DanceVideoGenie[4340] <Notice>: MS:Notice: Installing: com.Safaltek.DanceVideoGenie [DanceVideoGenie] (550.52)
Sat May  7 19:46:37 unknown DanceVideoGenie[4340] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Sat May  7 19:46:38 unknown DanceVideoGenie[4340] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/libstatusbar.dylib
Sat May  7 19:46:38 unknown DanceVideoGenie[4340] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/sandcastleclient.dylib
Sat May  7 19:46:38 unknown com.apple.debugserver-48[4339] <Warning>: 11 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:39 unknown com.apple.debugserver-48[4339] <Warning>: 12 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:39 unknown com.apple.debugserver-48[4339] <Warning>: 13 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:40 unknown com.apple.debugserver-48[4339] <Warning>: 14 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:40 unknown com.apple.debugserver-48[4339] <Warning>: 15 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:41 unknown com.apple.debugserver-48[4339] <Warning>: 16 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:41 unknown com.apple.debugserver-48[4339] <Warning>: 17 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:42 unknown com.apple.debugserver-48[4339] <Warning>: 18 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:42 unknown com.apple.debugserver-48[4339] <Warning>: 19 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:43 unknown com.apple.debugserver-48[4339] <Warning>: 20 [10f3/0803]: error: ::task_for_pid ( target_tport = 0x0103, pid = 4340, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Sat May  7 19:46:43 unknown com.apple.debugserver-48[4339] <Warning>: 21 [10f3/0803]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'DRHT'
Sat May  7 19:46:43 unknown com.apple.debugserver-48[4339] <Warning>: error: failed to launch process (null): failed to get the task for process 4340
Sat May  7 19:46:43 unknown com.apple.debugserver-48[4339] <Warning>: 22 [10f3/1403]: error: ::read ( 4, 0x2fee39f0, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Sat May  7 19:46:43 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.Safaltek.DanceVideoGenie[0x8cc8]) Bug: launchd_core_logic.c:3252 (24226):3
Sat May  7 19:46:43 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.Safaltek.DanceVideoGenie[0x8cc8]) Bug: launchd_core_logic.c:2681 (24226):10
Sat May  7 19:46:43 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.Safaltek.DanceVideoGenie[0x8cc8]) Working around 5020256. Assuming the job crashed.
Sat May  7 19:46:43 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.Safaltek.DanceVideoGenie[0x8cc8]) Job appears to have crashed: Segmentation fault
Sat May  7 19:46:43 unknown SpringBoard[30] <Warning>: Application 'DanceVideoGenie ' exited abnormally with signal 11: Segmentation fault
Sat May  7 19:47:06 unknown MobileMail[228] <Warning>: LI:Mail: Fetch completed
Sat May  7 19:48:20 unknown SpringBoard[30] <Warning>: LI:Calendar: Loading Calendar data...
Sat May  7 19:48:20 unknown SpringBoard[30] <Warning>: LI:Calendar: Next update: 2011-05-07 14:23:20 +0000
Sat May  7 19:49:06 unknown SCHelper[244] <Notice>: active (but IDLE) sessions
Sat May  7 19:49:06 unknown SCHelper[244] <Notice>:   0x11c590 {port = 0x201f, caller = SpringBoard(30):com.apple.preferences, path = /Library/Preferences/SystemConfiguration/preferences.plist}
amatoria is offline   Reply With Quote
Old 05-07-2011, 09:29 AM   #5 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 54
amatoria is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
What's the output in the console when it crashes? Post the crash log.
Below is log with Debug mode (App not crashing):

Code:
Sat May  7 19:53:16 unknown installd[4347] <Error>: 2ff66000 verify_signer_identity: APPSYNC bypass enabled
Sat May  7 19:53:16 unknown SpringBoard[30] <Warning>: Killing <SBApplication: 0x1113cf90> com.Safaltek.DanceVideoGenie  activate:  deactivate:  for app installation
Sat May  7 19:53:16 unknown installd[4347] <Error>: 2ff66000 verify_signer_identity: APPSYNC bypass enabled
Sat May  7 19:53:16 unknown SpringBoard[30] <Warning>: Reloading application state for 'com.Safaltek.DanceVideoGenie' as its modification date has changed
Sat May  7 19:53:16 unknown SpringBoard[30] <Warning>: LI:Home: createIconLists: (
	    "<SBIconListModel: 0x2e9f20>",
	    "<SBIconListModel: 0x1a847690>"
	)
Sat May  7 19:53:17 unknown SpringBoard[30] <Warning>: Reloading and rendering all application icons.
Sat May  7 19:53:17 unknown SpringBoard[30] <Warning>: LI:Home: createIconLists: (
	    "<SBIconListModel: 0x2e9f20>",
	    "<SBIconListModel: 0x1a849fc0>"
	)
Sat May  7 19:53:19 unknown com.apple.debugserver-48[4352] <Warning>: debugserver-48 for armv6 Copyright (c) 2007-2009 Apple, Inc.  All Rights Reserved.
Sat May  7 19:53:19 unknown com.apple.debugserver-48[4352] <Warning>: Connecting to com.apple.debugserver service...
Sat May  7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Lock: disable LS bundle: NowPlayingArtLockScreen
Sat May  7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Lock: _showLockView: hidden: 0, animated: 0, bars: 1
Sat May  7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Scroll: Setting scrolling on reset to 0
Sat May  7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Lock: _showLockView: hidden: 1, animated: 1, bars: 0
Sat May  7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Scroll: Setting scrolling on reset to 0
Sat May  7 19:53:19 unknown SpringBoard[30] <Notice>: MultitouchHID(22c010) uilock state: 1 -> 0
Sat May  7 19:53:19 unknown MobileStorageMounter[4353] <Notice>: (0x3eaf3898) platform_supports_camera_import: Platform is NOT configured for camera import
Sat May  7 19:53:20 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.Safaltek.DanceVideoGenie[0xb54]) Spawned and waiting for the debugger to attach before continuing...
Sat May  7 19:53:20 unknown com.apple.debugserver-48[4352] <Warning>: Got a connection, waiting for debugger instructions for task "(null)".
Sat May  7 19:53:20 unknown kernel[0] <Debug>: lockbot[4344] Builtin profile: debugserver (sandbox)
Sat May  7 19:53:20 unknown kernel[0] <Debug>: set_crc_notification_state 0
Sat May  7 19:53:20 unknown kernel[0] <Debug>: + AppleCLCD[0xc8451000]::interruptOccurred(eventSource 0x817c4280, count 1)punchd[4354] Builtin profile: container (sandbox)
Sat May  7 19:53:20 unknown kernel[0] <Debug>: punchd[4354] Container: /private/var/mobile/Applications/A56F0C55-14F9-43FF-AB78-EAB4CFC20058 [69] (sandbox)
Sat May  7 19:53:23 unknown DanceVideoGenie[4354] <Notice>: MS:Notice: Installing: com.Safaltek.DanceVideoGenie [DanceVideoGenie] (550.52)
Sat May  7 19:53:23 unknown DanceVideoGenie[4354] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Sat May  7 19:53:23 unknown DanceVideoGenie[4354] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/libstatusbar.dylib
Sat May  7 19:53:23 unknown DanceVideoGenie[4354] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/sandcastleclient.dylib
Sat May  7 19:53:29 unknown MobileStorageMounter[4353] <Notice>: (0x3eaf3898) idle_timer_callback: Exiting after idle timeout
amatoria is offline   Reply With Quote
Old 05-08-2011, 12:08 AM   #6 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 54
amatoria is on a distinguished road
Default

Any idea after looking at both logs(console).

I tried creating fresh build config (Xcode 4), with only setting change, Build Configuration - Release from popup. [Run<app name>]

Otherwise can I send debug config'd app to Apple. Will they reject it?
amatoria is offline   Reply With Quote
Old 05-08-2011, 02:40 AM   #7 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

mmm......what are you trying to do in didload?
__________________
dany_dev is offline   Reply With Quote
Old 05-08-2011, 03:36 AM   #8 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 54
amatoria is on a distinguished road
Default Surprise: Even a new template project crashes

Quote:
Originally Posted by dany_dev View Post
mmm......what are you trying to do in didload?
For my surprise (or may be your surprise), I tried creating a brand new template project without doing anything in the default view controller, not a single line of code nor any change in nibs, still the release build configuration app crashes on first launch over device.
amatoria is offline   Reply With Quote
Old 05-08-2011, 04:12 AM   #9 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

so there is something on your device that is not ok....for example if it is jailbreaked, backgrounder can create some problems.....
__________________
dany_dev is offline   Reply With Quote
Old 05-08-2011, 10:45 AM   #10 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

It's not a crash - it's perfectly normal. You can't "build and run" on the device with a release build because the debugger can't attach.

The key line is this one:
Code:
Sat May  7 19:46:43 unknown com.apple.debugserver-48[4339] <Warning>: error: failed to launch process (null): failed to get the task for process 4340
It couldn't start the app because the debugger couldn't get the process id - which is normal for release builds.
__________________

Free Games!
smasher is offline   Reply With Quote
Old 05-08-2011, 11:16 AM   #11 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 54
amatoria is on a distinguished road
Thumbs up Thanks. That is the reason.

Quote:
Originally Posted by smasher View Post
It's not a crash - it's perfectly normal. You can't "build and run" on the device with a release build because the debugger can't attach.

The key line is this one:
Code:
Sat May  7 19:46:43 unknown com.apple.debugserver-48[4339] <Warning>: error: failed to launch process (null): failed to get the task for process 4340
It couldn't start the app because the debugger couldn't get the process id - which is normal for release builds.
Thanks Smasher,

yea, probably that's the issue because in the past i always sent release to QC with code and provision file.
Thanks again.
amatoria is offline   Reply With Quote
Reply

Bookmarks

Tags
crash, iphone device, release build

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: 353
10 members and 343 guests
dansparrow, iOS.Lover, lorrettaui53, MikaelBartlett, Nobbsy, oztemel, pbart, PlutoPrime, thephotographer, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

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