App crashes immediately after splash screen for OS 3.1.3
I just got an email from Apple that my app crashes immediately (hangs in the black screen) after the splash screen is shown when tested on iPhone 3G running iPhone OS 3.1.3 and Mac OS X 10.6.2. As I was using an older SDK whick allows me to test only till OS 3.1.2, I did not realize such a problem. I just downloaded SDK 3.2 and it does indeed crash on OS 3.1.3. Funny thing is that now it even crashes on 3.0 to 3.1.2 which was previously fine. I quite clueless on how to debug as there is no crash logs.
Would appreciate any assistance on this issue. Thanks.
Location: Somewhere the streets are on fire, the sewers are flooded, and the cats are high on catnip
Posts: 529
Quote:
Originally Posted by Falcon80
I just got an email from Apple that my app crashes immediately after the splash screen is shown when tested on iPhone 3G running iPhone OS 3.1.3 and Mac OS X 10.6.2. As I was using an older SDK whick allows me to test only till OS 3.1.2, I did not realize such a problem. I just downloaded SDK 3.2 and it does indeed crash on OS 3.1.3. Funny thing is that now it even crashes on 3.0 to 3.1.2 which was previously fine. I quite clueless on how to debug as there is no crash logs.
Would appreciate any assistance on this issue. Thanks.
Anything being loaded while splash screen comes up?
Anything being loaded while splash screen comes up?
Yes, I am trying to load a tableview. I tried to do a print statement right at the beginning of the applicationDidFinishLaunching function but it wasn't displayed. Does that mean it crashes even before my tableviewcontroller gets initialized?
Location: Somewhere the streets are on fire, the sewers are flooded, and the cats are high on catnip
Posts: 529
Quote:
Originally Posted by Falcon80
Yes, I am trying to load a tableview. I tried to do a print statement right at the beginning of the applicationDidFinishLaunching function but it wasn't displayed. Does that mean it crashes even before my tableviewcontroller gets initialized?
Try something for me...try to load the tableview without the splash view...tell me if it crashed or not. this will either tell me A)the problem is in the actually way the splash view is loaded or B)the problem is something within the delegate.
Try something for me...try to load the tableview without the splash view...tell me if it crashed or not. this will either tell me A)the problem is in the actually way the splash view is loaded or B)the problem is something within the delegate.
Just tried running the app without the splash view. Same issue. By the way, the splash view is provided by the SDK. I just need to supply the "Default.png" image. It is not created by me.
Location: Somewhere the streets are on fire, the sewers are flooded, and the cats are high on catnip
Posts: 529
Quote:
Originally Posted by Falcon80
Just tried running the app without the splash view. Same issue. By the way, the splash view is provided by the SDK. I just need to supply the "Default.png" image. It is not created by me.
I had several problems with the debugger in the past not activating break points.
I solved the problem by setting a break point on the first instruction of main() and skipped the first breakpoint. All other breakpoints worked from now on...
I had several problems with the debugger in the past not activating break points.
I solved the problem by setting a break point on the first instruction of main() and skipped the first breakpoint. All other breakpoints worked from now on...
I placed a breakpoint here in the main function.
int retVal = UIApplicationMain(argc, argv, nil, nil);
Apparently, after I tried to step into it, the app hangs.
When I mentioned the app "crash" in the first post, I am actually referring to it showing a black screen straight after the splash screen is shown and hangs there. (App did not exit).
What happens if you press "pause execution"?
Where is the app standing?
I think UIApplicationMain.. Where should I check for its current line of execution.
For your info, I was working fine with I am building this iPhone SDK 3.1.2. Only after the upgrading so as to test OS 3.1.3, all these happen. Is there anything I need to configure for the upgrade. What I did was just simply install the SDK 3.2.
As I am not using any NIB (used to have it but I deleted it away because in the end I setup all the views configuration programmatically), I need to explicitly state where is my Application Delegate in the main.m file.
So instead of
int retVal = UIApplicationMain(argc, argv, nil, nil);
I need to replace with
int retVal = UIApplicationMain( argc, argv,
@"UIApplication",
@"MyAppDelegate");
Also in your applicationdelegate, you need to initialize your window with the following statement.