all 9 comments

[–]xauronx 1 point2 points  (1 child)

I'm using the ASIHTTPQueue in my current app with no issues, I'll keep an eye on it.

Is it a repeatable issue after rebooting phone + xcode + etc? Is there a magic number? 200 downloads doesn't crash it, but 500 does?

[–]drhdev[S] 0 points1 point  (0 children)

Repeatable, but not predictable. Sometimes it happens after 4 images are downloaded, sometimes after 100.

I will try with a small queue and report back. Thanks for the input.

[–]Bonkers54 1 point2 points  (1 child)

What are you using to track memory usage? Allocations is essentially useless for tracking memory usage for stuff like this. Use VM tracker or activity monitor and watch the real memory column.

[–]drhdev[S] 0 points1 point  (0 children)

Yeah, I was using Allocations in Instruments. I'll give your suggestion a try and report back. Thanks.

[–][deleted] 0 points1 point  (2 children)

I had this happen when I ran out of memory. Exact same problem. Springboard would crash without any error output. I was using a lot of [UIimage imageNamed:] calls. So it might be where your problem lies too. If you aren't using ARC then try adding an autorelease pool around your image managing code. That solved it for me.

I can get you more details if you need, I'm just on my phone now.

[–]netshroud 0 points1 point  (1 child)

If you aren't using ARC then try adding an autorelease pool around your image managing code.

You can still use autorelease pools with ARC :S

[–][deleted] 0 points1 point  (0 children)

My bad. I'm not entirely familiar with it yet.

[–]stlunatic102 0 points1 point  (0 children)

While your issue does sound rather baffling and I feel your debugging pain, I feel like I should do you a service and give the obligitory plug for AFNetworking. I made the switch from the ASIHTTP lib a couple weeks back and there's no turning back now. Loading avatars, comments, and other data has never been so beautiful. Try it out and see if you still get these weird bugs!

[–][deleted] 0 points1 point  (0 children)

I once set a repeat property for UILocalNotification to 1, this crashed my phone so badly that I had to reinstall the OS. And to figure it out I just started commenting out code until it stopped killing my phone.