Welcome, Guest
Username Password: Remember me

STV 2.0b5 - Crash when returning from background
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: STV 2.0b5 - Crash when returning from background

STV 2.0b5 - Crash when returning from background 1 year, 3 months ago #1

Hi All,

I am unsure whether this is a bug, or just something I am doing wrong (although it does occur in the Core Data sample app). If you click the (+) button to add a new object to the STV, background the app (by pressing the Home button), and then return to the app the new object detail view is still on screen, as you would expect. However, if you then click the Done button (to save the detail view) the app crashes with the following error:

2011-01-22 14:07:18.112 Core Data App[2731:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSMutableArray insertObject:atIndex:]: attempt to insert nil object at 1'

I assume that this is because when the app is backgrounded the temporary managed object (created when the Add detail view is displayed) is deleted. However, it is not properly re-created when the app comes back into the foreground. I am using STV 2.0 Beta 5.

Thanks,
Matthew
  • skoota
  • OFFLINE
  • Expert Boarder
  • Posts: 89
  • Karma: 2

Re: STV 2.0b5 - Crash when returning from background 1 year, 3 months ago #2

Thanks a lot Matthew for reporting this, yes it is a bug. We have fixed this bug in our RC version, I'll send you that right away. Please confirm that everything is working well for you now.

Thanks again!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: STV 2.0b5 - Crash when returning from background 1 year, 3 months ago #3

Thanks for fixing this issue so quickly Tarek I'll integrate the new version of STV into my project today and let you know how it goes (however, it already looks good from my quick experiment in the Core Data sample app!).

Thanks,
Matthew
  • skoota
  • OFFLINE
  • Expert Boarder
  • Posts: 89
  • Karma: 2
  • Page:
  • 1
Time to create page: 1.28 seconds