Log in or register to post comments

um... Why does my program shutdown?

September 22, 2011 - 5:24am #1

09-22 21:19:42.752: INFO/DEBUG(1220): 45670b40 45670b68
09-22 21:19:42.752: INFO/DEBUG(1220): 45670b44 80017e38 /system/lib/libdvm.so
09-22 21:19:44.256: INFO/BootReceiver(117): Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
09-22 21:19:44.279: INFO/DEBUG(1220): debuggerd committing suicide to free the zombie!
09-22 21:19:44.295: INFO/DEBUG(1242): debuggerd: Apr 22 2011 14:04:33
09-22 21:19:44.318: ERROR/InputDispatcher(117): channel '408991f0 com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.ImageTargets (server)' ~ Consumer closed input channel or an error occurred. events=0x8
09-22 21:19:44.318: ERROR/InputDispatcher(117): channel '408991f0 com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.ImageTargets (server)' ~ Channel is unrecoverably broken and will be disposed!
09-22 21:19:44.322: DEBUG/Zygote(75): Process 1221 terminated by signal (11)
09-22 21:19:44.326: INFO/CameraHardwareSec(76): int android::CameraHardwareSec::previewThreadWrapper(): calling mSecCamera->stopPreview() and waiting
09-22 21:19:44.346: DEBUG/dalvikvm(117): GC_FOR_MALLOC freed 407K, 38% free 6611K/10631K, external 4436K/5483K, paused 83ms
09-22 21:19:44.346: INFO/ActivityManager(117): Process com.qualcomm.QCARSamples.ImageTargets (pid 1221) has died.
09-22 21:19:44.346: INFO/WindowManager(117): WIN DEATH: Window{408991f0 com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.ImageTargets paused=false}
09-22 21:19:44.353: INFO/WindowManager(117): WIN DEATH: Window{407b50a8 SurfaceView paused=false}
09-22 21:19:44.353: INFO/WindowManager(117): WIN DEATH: Window{4090b3b0 Toast paused=false}
09-22 21:19:44.361: INFO/WindowManager(117): Setting rotation to 0, animFlags=1
09-22 21:19:44.361: INFO/ActivityManager(117): Config changed: { scale=1.0 imsi=450/5 loc=ko_KR touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=11}
09-22 21:19:44.388: INFO/CameraHardwareSec(76): int android::CameraHardwareSec::previewThreadWrapper(): return from wait
09-22 21:19:44.388: INFO/CameraHardwareSec(76): int android::CameraHardwareSec::previewThreadWrapper(): exiting
09-22 21:19:44.388: WARN/SecCamera(76): int android::SecCamera::stopPreview(): doing nothing because m_flag_camera_start is zero
09-22 21:19:44.388: INFO/CameraHardwareSec(76): virtual void android::CameraHardwareSec::release(): calling mPreviewHeap.dispose()
09-22 21:19:44.388: WARN/SecCamera(76): int android::SecCamera::stopRecord(): doing nothing because m_flag_record_start is zero
09-22 21:19:44.388: INFO/SecCamera(76): DeinitCamera: m_cam_fd(14)
09-22 21:19:44.392: INFO/SecCamera(76): DeinitCamera: m_cam_fd2(15)
09-22 21:19:44.420: VERBOSE/RenderScript_jni(197): surfaceCreated
09-22 21:19:44.420: VERBOSE/RenderScript_jni(197): surfaceChanged
09-22 21:19:44.451: VERBOSE/RenderScript_jni(197): surfaceChanged
09-22 21:19:44.517: WARN/InputManagerService(117): Got RemoteException sending setActive(false) notification to pid 1221 uid 10066
09-22 21:19:44.603: VERBOSE/RenderScript_jni(197): surfaceChanged
09-22 21:19:44.670: VERBOSE/RenderScript_jni(197): surfaceChanged
09-22 21:19:44.732: DEBUG/ConnectivityService(117): ConnectivityService FeatureUser expire(0, enableHIPRI, android.os.BinderProxy@408afbe0), created 60004 mSec ago
09-22 21:19:44.924: WARN/NotificationService(117): Object died trying to hide notification android.app.ITransientNotification$Stub$Proxy@408431e0 in package com.qualcomm.QCARSamples.ImageTargets
09-22 21:19:44.924: WARN/ActivityManager(117): setProcessForeground called on unknown pid: 1221

This is log.
When I run my program, it can show me first image.
But it can't show me Camera view. Just shutdown.
Please help me.

Re: um... Why does my program shutdown?

September 22, 2011 - 7:09am #2

That log is from the clean-up after a process crash (e.g. Process 1221 terminated by signal (11) ).

Signal 11 is the POSIX SIGSEGV signal which relates to memory access violations and invalid references. So take a look at your use of pointers and references, and any allocated memory, in your C++ code. A common cause is invalid pointers, references to null pointers, and index out of bounds errors.

Log in or register to post comments