"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Crash after init/destroy many time QCAR

I'm using Frame Marker. My device IPhone 4, iOS5. I need to create/destroy UIViewController which bound EAGLView many time. But after many time create/destroy (must perform create/destroy [B][COLOR=Red]quickly[/COLOR][/B].), app is crashed. Please see log bellow: [I]GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys002 sharedlibrary apply-load-rules all target remote-mobile /tmp/.XcodeGDBRemote-207-64 Switching to remote-macosx protocol mem 0x1000 0x3fffffff cache mem 0x40000000 0xffffffff none mem 0x00000000 0x0fff none [Switching to process 7171 thread 0x1c03] [Switching to process 7171 thread 0x1c03] 2011-11-11 15:24:27.353 Demo[874:707] EAGLView onCreate() 2011-11-11 15:24:27.402 Demo[874:4003] INFO: QCAR SDK version 1.0.0 2011-11-11 15:24:27.463 Demo[874:4003] WARNING: -[ setMinFrameDuration:] is deprecated. Please use AVCaptureConnection's -setVideoMinFrameDuration: 2011-11-11 15:24:27.402 Demo[874:707] EAGLView onResume() 2011-11-11 15:24:29.978 Demo[874:4003] INFO: http response: 204 2011-11-11 15:24:31.961 Demo[874:4003] QCAR::init percent: 100 2011-11-11 15:24:31.989 Demo[874:6123] INFO: Tracker starts loading 2011-11-11 15:24:32.020 Demo[874:6123] INFO: Found config.xml 2011-11-11 15:24:32.027 Demo[874:6123] INFO: Found config.xml 2011-11-11 15:24:32.036 Demo[874:6123] INFO: Tracker finished loading (no errors) 2011-11-11 15:24:32.038 Demo[874:707] INFO: UIView has CAEAGLLayer class 2011-11-11 15:24:32.042 Demo[874:707] INFO: UIView conforms to UIGLViewProtocol 2011-11-11 15:24:32.048 Demo[874:707] WARNING: -[ setMinFrameDuration:] is deprecated. Please use AVCaptureConnection's -setVideoMinFrameDuration: 2011-11-11 15:24:34.511 Demo[874:1b07] EAGLView onPause() 2011-11-11 15:24:34.813 Demo[874:1b07] EAGLView onDestroy() 2011-11-11 15:24:38.665 Demo[874:707] EAGLView onCreate() 2011-11-11 15:24:38.677 Demo[874:707] EAGLView onResume() 2011-11-11 15:24:41.037 Demo[874:3917] INFO: http response: 204 2011-11-11 15:24:43.413 Demo[874:3917] QCAR::init percent: 100 2011-11-11 15:24:43.422 Demo[874:707] INFO: UIView has CAEAGLLayer class 2011-11-11 15:24:43.427 Demo[874:707] INFO: UIView conforms to UIGLViewProtocol 2011-11-11 15:24:43.431 Demo[874:707] WARNING: -[ setMinFrameDuration:] is deprecated. Please use AVCaptureConnection's -setVideoMinFrameDuration: 2011-11-11 15:24:45.138 Demo[874:8e0b] EAGLView onPause() 2011-11-11 15:24:45.414 Demo[874:8e0b] EAGLView onDestroy() 2011-11-11 15:24:47.840 Demo[874:707] EAGLView onCreate() 2011-11-11 15:24:47.853 Demo[874:707] EAGLView onResume() 2011-11-11 15:24:48.942 Demo[874:707] EAGLView onPause() 2011-11-11 15:24:48.947 Demo[874:707] EAGLView onDestroy() 2011-11-11 15:24:49.812 Demo[874:707] EAGLView onCreate() 2011-11-11 15:24:49.826 Demo[874:707] EAGLView onResume() 2011-11-11 15:24:49.856 Demo[874:3923] INFO: http response: 204 2011-11-11 15:24:50.698 Demo[874:3923] QCAR::init percent: 100 (gdb)[/I]

Hi chungsavi, Before we investigate further, it looks like you are onPause'ing and onDestroy'ing before the onCreate/onResume is complete. If you are going to allow your user to do this in the UI you'll need to create some gates to allow the initialisation to complete before tearing it down again.

chungsavi

Tue, 11/15/2011 - 04:26

Thanks MoSR. Correct. I work now. But why QCAR connect to internet when creating. Before It just connected internet at first time. And never connect again. But now it always connect to internet.