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 > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 01-19-2012, 01:21 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 1
SagarTilekar is on a distinguished road
Default ARC use – App ‘pausing’ and crashing without crash log

Hi,
We are using ARC in a project for the iPhone and iPad and have observed a strange behavior:

Every once in a while the application goes into a ‘Paused’ state. This state actually quits the app but does not give any debugging information or a crash log. We have seen this happen when we try to access large images and display them in the app.

Although the app does fire Memory warnings once in a while, the crash is not related to the memory warning. Even running the app in Instruments shows no leaks and a total memory map of just 3.8mb.

Any help with this is appreciated.
SagarTilekar is offline   Reply With Quote
Old 01-22-2012, 09:51 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2009
Location: michigan
Posts: 197
michelle is on a distinguished road
Default

Quote:
Originally Posted by SagarTilekar View Post
Hi,
We are using ARC in a project for the iPhone and iPad and have observed a strange behavior:

Every once in a while the application goes into a ‘Paused’ state. This state actually quits the app but does not give any debugging information or a crash log. We have seen this happen when we try to access large images and display them in the app.

Although the app does fire Memory warnings once in a while, the crash is not related to the memory warning. Even running the app in Instruments shows no leaks and a total memory map of just 3.8mb.

Any help with this is appreciated.
Sadly we found out the hard way that ARC isn't a substitute for good memory leak testing. ARC is a good idea, Apple should of implemented much sooner, but it is new and actually quite buggy.

The ARC wizard is actually a pain to use at time , and only seems to work if the application is configured for the simulator.

Its runtime can be buggy and also introduce memory leaks.

As for no crash log, we've seen this countless times regardless of using ARC or not using ARC.
__________________
Help us build great applications or let us make your applications exceptional. find us on Facebook
michelle is offline   Reply With Quote
Old 01-28-2012, 04:18 PM   #3 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,002
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by michelle View Post
Sadly we found out the hard way that ARC isn't a substitute for good memory leak testing. ARC is a good idea, Apple should of implemented much sooner, but it is new and actually quite buggy.

The ARC wizard is actually a pain to use at time , and only seems to work if the application is configured for the simulator.

Its runtime can be buggy and also introduce memory leaks.

As for no crash log, we've seen this countless times regardless of using ARC or not using ARC.
As far as I can tell, the lack of crash logs seems to be a "feature" of Xcode 4.0 or 4.2, regardless of memory management settings. I get a lot of crashes that are shown as in main.m with no stack trace, where in Xcode 3.x, it would show me the specific line of code that caused the problem.

(I can't remember now if this started with 4.0 or 4.2. I don't have 4.0 around any more, but I do have 3.2.5. I have specific fail cases where 3.2.5 shows the exact line of an error, and 4.2 just says "splat."
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is online now   Reply With Quote
Reply

Bookmarks

Tags
ipad & iphone

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: 404
15 members and 389 guests
AReality, bignoggins, BSH, djqbert, Duncan C, epaga, flamingliquid, jbro, jcdevelopments, leighec68, markolo, nobstudio, revg, Rudy, taylor202
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,645
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, leighec68
Powered by vBadvanced CMPS v3.1.0

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