Sunset Lake Software - Comments for "EXC_BAD_ACCESS error" http://www.sunsetlakesoftware.com/forum/excbadaccess-error Comments for "EXC_BAD_ACCESS error" en Of course, I keep forgetting http://www.sunsetlakesoftware.com/forum/excbadaccess-error#comment-1508 <p>Of course, I keep forgetting about ARC. Thanks.</p> pubDate Tue, 17 Jul 2012 08:32:41 +0000 dc:creator mrEmpty guid false comment 1508 at http://www.sunsetlakesoftware.com Is this an ARC-enabled http://www.sunsetlakesoftware.com/forum/excbadaccess-error#comment-1503 <p>Is this an ARC-enabled application? Do you keep a reference to your GPUImageVideoCamera and GPUImageView as instance variables? If not, your video camera and your entire video pipeline will be deallocated as soon as your set method has finished. You need to retain at least the video camera object for as long as you want to run your video capture.</p> pubDate Mon, 16 Jul 2012 17:26:51 +0000 dc:creator Brad Larson guid false comment 1503 at http://www.sunsetlakesoftware.com Additional http://www.sunsetlakesoftware.com/forum/excbadaccess-error#comment-1502 <p>Additional information:</p> <p>Incident Identifier: 3EE0C984-D329-4658-ABA9-0CEC06072693<br /> CrashReporter Key: cee19d44daf51c2fc09c25165e0b8766756eadb9<br /> Hardware Model: iPhone3,1<br /> Process: PukkaPlayground [3391]<br /> Path: /var/mobile/Applications/37639B26-8A38-4898-8AA7-FD42C82D818D/PukkaPlayground.app/PukkaPlayground<br /> Identifier: PukkaPlayground<br /> Version: ??? (???)<br /> Code Type: ARM (Native)<br /> Parent Process: launchd [1]</p> <p>Date/Time: 2012-07-16 12:04:47.912 +0100<br /> OS Version: iPhone OS 5.1.1 (9B206)<br /> Report Version: 104</p> <p>Exception Type: EXC_BAD_ACCESS (SIGSEGV)<br /> Exception Codes: KERN_INVALID_ADDRESS at 0x00000009<br /> Crashed Thread: 0</p> <p>Thread 0 name: Dispatch queue: com.apple.main-thread<br /> Thread 0 Crashed:<br /> 0 libobjc.A.dylib 0x34ed9f78 objc_msgSend + 16<br /> 1 PukkaPlayground 0x0009b236 __74-[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:]_block_invoke_0121 (GPUImageVideoCamera.m:396)<br /> 2 libdispatch.dylib 0x30306b24 _dispatch_barrier_sync_f_slow_invoke + 72<br /> 3 libdispatch.dylib 0x30305e8a _dispatch_main_queue_callback_4CF$VARIANT$up + 190<br /> 4 CoreFoundation 0x371ad2a6 __CFRunLoopRun + 1262<br /> 5 CoreFoundation 0x3713049e CFRunLoopRunSpecific + 294<br /> 6 CoreFoundation 0x37130366 CFRunLoopRunInMode + 98<br /> 7 GraphicsServices 0x338ef432 GSEventRunModal + 130<br /> 8 UIKit 0x30edccce UIApplicationMain + 1074<br /> 9 PukkaPlayground 0x00077fc0 main (main.m:16)<br /> 10 PukkaPlayground 0x00077f64 start + 32</p> <p>Thread 0 crashed with ARM Thread State:<br /> r0: 0x00375a20 r1: 0x000a176c r2: 0x00398e40 r3: 0x000a176c<br /> r4: 0x00000001 r5: 0x00000000 r6: 0x00000000 r7: 0x2fe73e14<br /> r8: 0x2fe73e2c r9: 0x000285db r10: 0x2fe73e2c r11: 0x3ec49de0<br /> ip: 0x3e1442c8 sp: 0x2fe73e04 lr: 0x0009b23d pc: 0x34ed9f78<br /> cpsr: 0x20000030</p> <p>Also this line:</p> <p>0x34ed9f78: ldr r3, [r4, #8]</p> <p>from this:</p> <p>libobjc.A.dylib`objc_msgSend:</p> <p>is highlighted when the error is thrown.</p> pubDate Mon, 16 Jul 2012 11:21:37 +0000 dc:creator mrEmpty guid false comment 1502 at http://www.sunsetlakesoftware.com