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 03-29-2009, 12:09 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 53
dylane94 is on a distinguished road
Default Error from Debugger

My code compiles but bombs whenever I click on the button Start Game. Before I added all the code in my game file, when I clicked Start Game it transitioned fine.

After the code compiles I get an error at the bottom of the screen:
Error from Debugger: mi_cmd_stack_list_frames: Not enough frames in stack.

What does this mean and how do I fix it???

*The only thing I know is that the error is from the game file*
*Additionally I have four warnings*
dylane94 is offline   Reply With Quote
Old 03-29-2009, 12:26 PM   #2 (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

Quote:
Originally Posted by dylane94 View Post
My code compiles but bombs whenever I click on the button Start Game. Before I added all the code in my game file, when I clicked Start Game it transitioned fine.

After the code compiles I get an error at the bottom of the screen:
Error from Debugger: mi_cmd_stack_list_frames: Not enough frames in stack.

What does this mean and how do I fix it???

*The only thing I know is that the error is from the game file*
*Additionally I have four warnings*
Try doing a "clean all" from the "build" menu. Might be an xcode/gdb bug.

Also, try to fix the other warnings - it could be a side affect of those warnings.
__________________

Free Games!
smasher is offline   Reply With Quote
Old 03-29-2009, 12:43 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 53
dylane94 is on a distinguished road
Default

Quote:
Originally Posted by smasher View Post
Try doing a "clean all" from the "build" menu. Might be an xcode/gdb bug.

Also, try to fix the other warnings - it could be a side affect of those warnings.
The "clean all" did not work. I will try to fix the warnings.
Before the frame error comes up, it says GDB: Program received signal: "EXC_BAD ACCESS."

After this my frame stacks load and it says the error I said earlier.

Last edited by dylane94; 03-29-2009 at 01:45 PM.
dylane94 is offline   Reply With Quote
Old 03-29-2009, 01:46 PM   #4 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 53
dylane94 is on a distinguished road
Default

Anyone??? It's the only thing holding me back from my app working.
dylane94 is offline   Reply With Quote
Old 03-29-2009, 01:59 PM   #5 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 1,431
PhoneyDeveloper is on a distinguished road
Default

Dude. There's a bug in your code. You need to debug it.

Set a breakpoint in the action method that's executed when you tap the button. Step through the code from there and see what goes wrong.

Also, you should fix the warnings first.
PhoneyDeveloper is offline   Reply With Quote
Old 03-29-2009, 02:46 PM   #6 (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

Quote:
Originally Posted by dylane94 View Post
The "clean all" did not work. I will try to fix the warnings.
Before the frame error comes up, it says GDB: Program received signal: "EXC_BAD ACCESS."

After this my frame stacks load and it says the error I said earlier.
"EXC_BAD ACCESS" is the problem - that's what you usually get when you try to access an object and it isn't there - usually because you didn't initialize it, or because you released it and it was destroyed (dealloc'd). Follow PD's advice and step through the code.
__________________

Free Games!
smasher is offline   Reply With Quote
Old 03-29-2009, 03:37 PM   #7 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 53
dylane94 is on a distinguished road
Default

Quote:
Originally Posted by smasher View Post
"EXC_BAD ACCESS" is the problem - that's what you usually get when you try to access an object and it isn't there - usually because you didn't initialize it, or because you released it and it was destroyed (dealloc'd). Follow PD's advice and step through the code.
How do you "set a breakpoint in the action method that's executed when you tap the button."
dylane94 is offline   Reply With Quote
Old 03-29-2009, 05:52 PM   #8 (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

Quote:
Originally Posted by dylane94 View Post
How do you "set a breakpoint in the action method that's executed when you tap the button."
Click the blue/gray area to the left of the line you want to stop on. A dark blue arrow will appear.

The next time you build-and-go, the program will stop on that line (actually, just before running that line.) The red arrow shows you the next line that will be run. Then you can roll over variables to see what they contain while the program is running.

Use the "continue" button just above the editor to continue execution. Drag the breakpoint out of the breakpoint area to remove it.
__________________

Free Games!
smasher is offline   Reply With Quote
Old 03-29-2009, 06:10 PM   #9 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 53
dylane94 is on a distinguished road
Default

I took a piece out of my code and it is now giving me a new error from the debugger.

GDB: Error Sigabrt (for about a second)
After this the frame error pops up.

What is Sigabrt and how do you fix it?
dylane94 is offline   Reply With Quote
Old 04-05-2009, 05:23 PM   #10 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 13
vtor67 is on a distinguished road
Default my fix

i had a table view in IB and i connected the datasource and delegate to my object. I didnt have any data yet to fill it and that gave me the SIGABRT error for some reason. I unconnected the DataSource for my table view and that caused the error to leave.
vtor67 is offline   Reply With Quote
Old 09-21-2010, 01:54 AM   #11 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 4
henryaz is on a distinguished road
Default

Perhaps the frame problem is that he's running out of memory on his device. I get this error on my 8GB iPod when I accidentally leave all of the NSZombie* & MallocStack* argument flags enabled from a debug session in the simulator - the RAM on the iPod is not enough to handle all of that data.
henryaz is offline   Reply With Quote
Reply

Bookmarks

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: 339
5 members and 334 guests
blueorb, guusleijsten, Kryckter, LEARN2MAKE, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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