mapj8420 / iphonefrotz

Automatically exported from code.google.com/p/iphonefrotz
Other
0 stars 0 forks source link

Deleting a Story file crashes the app #180

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I grabbed the crash log and the console output.  I just loaded a bunch of files 
over FTP.

100% repro. 

What steps will reproduce the problem?
1. Tap "Select Story"
2. Tap "Edit"
3. Tap the (-) button and then "Delete" on any Story file
4. App crashes to the springboard.

What is the expected output or behavior?  What do you see instead?
Expected: story file should be deleted.  Instead: Application crashes

What version of Frotz are you using?
1.5.3

What device model are you using (iPhone 3GS, iPad, iPod Touch 3rd gen,
etc.)
iPad 3

What version of iOS?  3.2, 4.0, 4.3, etc.)
5.1

Please provide any additional information below.

Original issue reported on code.google.com by jfaul...@gmail.com on 28 Mar 2012 at 7:33

Attachments:

GoogleCodeExporter commented 8 years ago
I cannot reproduce this on my iPad 3 running 5.1, but thanks for attaching the 
crash dump.
Hopefully that'll allow me to figure it out without being able to reproduce it 
directly.

Original comment by spath...@gmail.com on 28 Mar 2012 at 7:57

GoogleCodeExporter commented 8 years ago
Ok, got it up in the debugger:

2012-03-28 14:41:39.718 Frotz[2163:707] *** Assertion failure in -[UITableView 
_endCellAnimationsWithContext:], 
/SourceCache/UIKit/UIKit-1914.84/UITableView.m:1021
2012-03-28 14:41:39.722 Frotz[2163:707] *** Terminating app due to uncaught 
exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid 
number of sections.  The number of sections contained in the table view after 
the update (2) must be equal to the number of sections contained in the table 
view before the update (1), plus or minus the number of sections inserted or 
deleted (0 inserted, 0 deleted).'
*** First throw call stack:
(0x3202f88f 0x37434259 0x3202f789 0x305b43a3 0x379a5ced 0x379a3a9b 0x37a1c3ef 
0x1e245 0x37a36211 0x31f893fd 0x37909faf 0x37909f6b 0x37909f49 0x37909cb9 
0x3790a5f1 0x37908ad3 0x379084c1 0x2455 0x378ee83d 0x378ee0e3 0x3136222b 
0x32003523 0x320034c5 0x32002313 0x31f854a5 0x31f8536d 0x31361439 0x3791ce7d 
0x14da5 0x1241f 0x97c87 0x220c)
terminate called throwing an exception(lldb) 

Original comment by jfaul...@gmail.com on 28 Mar 2012 at 8:38

GoogleCodeExporter commented 8 years ago
And that was from a completely vanilla install (no added games via FTP), 
compiled at r253.

Original comment by jfaul...@gmail.com on 28 Mar 2012 at 8:39

GoogleCodeExporter commented 8 years ago
Interesting.   Not sure why I can't reproduce it, but the "0 inserted, 0 
deleted" might provide a clue.
What story did you try deleting on the vanilla install?

Original comment by spath...@gmail.com on 28 Mar 2012 at 10:06

GoogleCodeExporter commented 8 years ago
So it looks like this only happens when you have no stories in your "Recently 
played" list, so, a completely fresh install and the first thing you do is 
delete stories without playing any.

Original comment by spath...@gmail.com on 30 Apr 2012 at 8:18

GoogleCodeExporter commented 8 years ago
svn rev 260

Original comment by spath...@gmail.com on 3 May 2012 at 6:24

GoogleCodeExporter commented 8 years ago
Fixed in 1.6 on App Store.

Original comment by spath...@gmail.com on 23 Oct 2012 at 1:46