Uncaught exception when repeatedly opening windows in 1.3.2
I have a TableView with some rows that open a new child window when clicked. If I open and close these child windows for about 30 seconds or so, I eventually get an uncaught exception that crashes the application:
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason '* -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[4]'"
Has anyone else run into anything like this? I wish I could go back to 1.2.0 to see if it also occurs there (I don't remember it ever happening), but ever since I installed iPhone SDK 4.0, I'm unable to test in 1.2.0.
14 Answers
-
Accepted Answer
I gave this another bash yesterday and successfully ran 20 cycles of open/close with the latest build, so I think it's sorted with a recent fix.
cheers,
Chris. -
I get the same problem and it's driving me crazy… I go back an forth about 4-5 times and the application crashes.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSArray initWithObjects:count:]: attempt to insert nil object at objects[16]'
[INFO] Titanium SDK version: 1.3.2
[INFO] iPhone Device family: iphone
[INFO] iPhone SDK version: 4.0 -
I haven't able to get back to 1.2.0. I will do some tests on the iphone itself to see if the problem persists there. Not sure if someone has a solution out there?
-
I'm not using RowAnimationstyle and have unique classnames for each row… so I guess that isn't the problem.
-
At least it's not just me, then. Are you able to test in 1.2.0 to see if the problem still occurs there? It'd be helpful to narrow down if the problem is specific to 1.3.2.
-
Nevermind, double post
-
tripled post : now i know how that happended. LOL
-
i have tableview open child crashing issues on 1.3.2 and the RowAnimationstyle turned out to be the curpit, not sure it's related ti your problem. I have yet tried it on 1.3.3
http://developer.appcelerator.com/question/42491/132-bug—tableview-crashed-on-rowanimationstyle
-
Argh, I'm still having this error spontaneously pop up. Unfortunately, I don't see an existing bug ticket for this crash. Has anyone had any luck finding out the specific cause or at least a workaround?
-
Has anyone else encountered this problem? Any thoughts on a possible work-around?
-
Still can't figure this out!
-
whoops, forgot the 404 posts anyway.
Keep moving folks, nothing to see here.
-
whoops, forgot the 404 posts anyway.
Keep moving folks, nothing to see here.
-
I think I solved the problem. Here is what I did
I followed the steps from this post:
http://stackoverflow.com/questions/2436238/xcode-internal-error-occurred-while-creating-dependency-graphThat helped instead of crashing at every 4-6 row clicks it crashed at 20-22 row clicks.
I then decided to run/build the project in Xcode. That seemed to do the trick, it hasn't crashed after about 60 row clicks… It still doesn't explain the cause or if this will actually solve the problem.
This seems to be the best solution for now.
Hope this helps you.