» Site Navigation |
|
|
» Advertisements |

Visit our friends over at The App Show! Steve and Dave produce a weekly show shining a light on the iPhone 2.0 software and the applications being developed by the amazing development community for the iPhone SDK!
|
» Online Users: 121 |
| 23 members and 98 guests |
| BenLevy3, detz, dshaffer, Ed99, erotsppa, FetaBoy, Flipmode, freshking, hyang, John, keyboardcowboy, kuba1234, MCCollet, Moose, MrsReznor, mwt, nicklocking, raysms, RickMaddy, roberthuttinger, twentythree, vanb777, Vertigo50 |
| Most users ever online was 207, 10-24-2008 at 09:29 AM. |
» Stats |
Members: 3,915
Threads: 5,616
Posts: 23,258
Top Poster: scottiphone (705)
|
| Welcome to our newest member, raysms |
|
 |
10-01-2008, 01:59 PM
|
#1 (permalink)
|
|
Member
Join Date: Aug 2008
Location: Berlin, Germany
Posts: 30
|
App crashing upon quit
I'm noticing that when my app quits, it shows a black screen instead of smoothly animating out. Then the app icons animate back in like they typically do after a crash. Also, whenever it goes to sleep, it wakes up still working, but no longer accepts user input. Any idea what could be the issue here? I'm wondering if it could be a memory leak or possibly something wrong with the NSTimer. If you have any ideas of how I can fix this, I would be really grateful, because it's my last issue before submitting it to Apple. Thanks!
|
|
|
10-01-2008, 03:21 PM
|
#2 (permalink)
|
|
Junior Member
Join Date: Oct 2008
Location: Berlin
Posts: 1
|
Hi Chuck,
if you are using threads: did you do any GUI centric tasks in a background thread? I had problems with that and called every change to the GUI using [NSObject performSelectorOnMainThread...].
You should really have a look into Instruments! It makes finding trivial memory leaks very easy. Unfortunately finding nontrivial memory leaks is still very difficult.
You might also have a look at this article at CocoaDev about finding autorelease problems.
Hope this helps a little bit.
Cheers,
Markus
|
|
|
10-03-2008, 02:57 PM
|
#3 (permalink)
|
|
Member
Join Date: Aug 2008
Location: Berlin, Germany
Posts: 30
|
I've been working on this all day and haven't had any luck so far. I don't have any background threads, however from the view itself I quite often call
Code:
[self setNeedsDisplay];
Perhaps there is a better way to refresh the display? However, I used this in my Random Chess app and had no issues with it. I'm really at a complete loss as to what this issue is. I started using Instruments today, but still don't understand how to use the raw data it throws at me.
I'm reading over the Memory Management documents to dig deeper into object allocation and deallocation to see if I can discover what could be the issue. I'm still open to any other suggestions anyone might have to get me on the right track here.
__________________
Chess Player: Watch a great Chess game anywhere!
|
|
|
10-03-2008, 03:39 PM
|
#4 (permalink)
|
|
Go Dealloc yourself!
Join Date: Oct 2008
Location: Central California
Posts: 122
|
anything in the console?
does the app "Program exited with status value:0." upon close/exit?
|
|
|
10-03-2008, 04:54 PM
|
#5 (permalink)
|
|
Member
Join Date: Aug 2008
Location: Berlin, Germany
Posts: 30
|
Here is the complete console output from a session. It does finish with status value: 0. I also notice that when it wakes up the status bar animates in from around 1/5 down the screen back up to the top. It's very strange.
Code:
[Session started at 2008-10-03 22:41:08 +0200.]
Loading program into debugger…
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Mon Aug 11 05:42:45 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-16790-25
Switching to remote protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
sharedlibrary apply-load-rules all
run
Running…
[Switching to thread 10755]
[Switching to thread 10755]
(gdb) continue
warning: UUID mismatch detected with the loaded library - on disk is:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblockdown.dylib
=uuid-mismatch-with-loaded-file,file="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblockdown.dylib"
Debugger stopped.
Program exited with status value:0.
The only thing I'm running thread-wise is NSTimer and I even took that out of the code to see if that could be the issue and it still accepts no input after waking up. I'm getting no hint at all from XCode about what's going on here.
__________________
Chess Player: Watch a great Chess game anywhere!
|
|
|
10-07-2008, 04:35 PM
|
#6 (permalink)
|
|
Member
Join Date: Aug 2008
Location: Berlin, Germany
Posts: 30
|
This was an incredibly difficult issue to solve. After a few days of fiddling with it, I finally used one of my two annual code-level incident requests to Apple. They got back to me and said it was a bug in the iPhone OS where a UISlider can't be on a UIToolbar. A workaround was to make the toolbar small at first, put the UISlider next to it and then expand the toolbar so that it covered the slider, thus making it appear like the UISlider belonged on the toolbar. That was that app's last bug, so I submitted it to Apple tonight. Yay!
__________________
Chess Player: Watch a great Chess game anywhere!
|
|
|
10-07-2008, 11:28 PM
|
#7 (permalink)
|
|
Senior Member
Join Date: Sep 2008
Posts: 682
|
Man, they shouldn't charge for an incident if it's the result of a bug in the OS. They should give us credits against incidents if we file bug reports. OTOH, glad they told you the workaround.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|