Log in or register to post comments

Attempted to dereference garbage pointer

May 6, 2014 - 6:16am #1

I'm getting a crash using Vuforia when I rapidly create a view using Vuforia and then tear it down.

I have a tab bar view controller and Vuforia is in one of those tab bars. Each time it becomes visible I create Vuforia and each time is disappears I tear it down to reduce my memory footprint. Occasionally I get a crash on an iPhone 4S that causes my app to crash. Its a 'EXC_BAD_ACCESS' crash which normally would not give me much but using KSCrash I have a backtrace. Apparently a notification from AVFoundation causes the crash, the exact diagnosis is 'Attempted to dereference garbage pointer'

Has anyone seen this kind of bug before? 

I've attached the crash report.

AttachmentSize
Plain text icon crash-report-Walkin-1.txt134.56 KB

Attempted to dereference garbage pointer

May 7, 2014 - 1:29am #2

It is hard to diagnose from the crash report.

 

Each time it becomes visible I create Vuforia and each time is disappears I tear it down to reduce my memory footprint.

In general the best advice is to create Vuforia only once and simply pause and resume it when it goes out of view or comes back in view.  This will avoid lengthy start-up times, possibly reduce fragmentation and it just might solve this issue.

 

HTH

N

Log in or register to post comments