I'm currently developing an Android app using OpenCV 2.4.5 for motion detection. Everything worked fine on different devices, but recently I discovered a problem with the Samsung Galaxy Tab 10.1 (tested on model numbers GT-P7510 and GT-P7500, both Android 4.0.4): There's probably something like a file descriptor leak, the camera dies and the app crashes with a SIGSEGV. Sometimes this problem occurs after the app has been running for up to 15 hours, sometimes only after a few minutes.
I downloaded the OpenCV Face Detection demo (the version from Google Play) and could reproduce this error. After about 4 minutes the demo app crashed. Logcat showed the following:
07-17 11:31:59.750 E/MemoryHeapBase(20238): error creating ashmem region: Too many open files
07-17 11:31:59.850 E/MemoryHeapBase(20238): error creating ashmem region: Too many open files
07-17 11:31:59.950 E/MemoryHeapBase(20238): error creating ashmem region: Too many open files
07-17 11:31:59.990 V/AlarmManager( 191): waitForAlarm result :8
07-17 11:32:00.000 V/AlarmManager( 191): ClockReceiver onReceive() ACTION_TIME_TICK
07-17 11:32:00.010 D/KeyguardUpdateMonitor( 191): received broadcast android.intent.action.TIME_TICK
07-17 11:32:00.010 D/KeyguardUpdateMonitor( 191): handleTimeUpdate
07-17 11:32:00.010 D/STATUSBAR-Clock( 278): onReceive() - ACTION_TIME_TICK
07-17 11:32:00.010 D/STATUSBAR-Clock( 278): updateClock :11:32
07-17 11:32:00.030 E/MemoryHeapBase(20238): error creating ashmem region: Too many open files
07-17 11:32:00.040 D/STATUSBAR-Clock( 278): onReceive() - ACTION_TIME_TICK
07-17 11:32:00.040 D/STATUSBAR-Clock( 278): updateClock :11:32
07-17 11:32:00.050 W/AudioSystem(15425): AudioPolicyService server died!
07-17 11:32:00.050 W/Camera (11420): Camera server died!
07-17 11:32:00.050 W/Camera (11420): ICamera died
07-17 11:32:00.050 W/AudioSystem( 191): AudioPolicyService server died!
07-17 11:32:00.050 W/AudioSystem( 191): AudioFlinger server died!
07-17 11:32:00.050 I/ServiceManager( 98): service 'media.audio_policy' died
07-17 11:32:00.050 I/ServiceManager( 98): service 'media.audio_flinger' died
07-17 11:32:00.050 I/ServiceManager( 98): service 'media.player' died
07-17 11:32:00.050 I/ServiceManager( 98): service 'media.camera' died
07-17 11:32:00.050 F/libc (11420): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
07-17 11:32:00.050 I/JavaCameraView(11420): Preview Frame received. Need to create MAT and deliver it to clients
07-17 11:32:00.050 I/JavaCameraView(11420): Frame size is 460800
07-17 11:32:00.070 D/FaceDetection/DetectionBasedTracker(11420): Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect enter
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::process: time from the previous call is 85990.244000 ms
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::communicateWithDetectingThread: shouldCommunicateWithDetectingThread=1
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::communicateWithDetectingThread: lastBigDetectionDuration=85989.488000 ms
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::communicateWithDetectingThread: shouldSendNewDataToWorkThread was 1, now it is 1, since time_from_previous_launch_in_ms=85989.50, minDetectionPeriod=0
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::communicateWithDetectingThread: result: shouldHandleResult=1
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::process: get _rectsWhereRegions were got from resultDetect
07-17 11:32:00.070 I/OBJECT_DETECTOR(11420): DetectionBasedTracker::process: tracked objects num==0
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::process: rectsWhereRegions.size()=0
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::process: detectedObjectsInRegions.size()=0
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::workcycleObjectDetector() --- after waiting
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::updateTrackedObjects: N1=0, N2=0
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::updateTrackedObjects: start second cycle
07-17 11:32:00.070 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::workcycleObjectDetector() --- start handling imageSeparateDetecting, img.size=640x480, img.data=0x0x5d02f010
07-17 11:32:00.070 D/FaceDetection/DetectionBasedTracker(11420): Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect exit
07-17 11:32:00.110 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::workcycleObjectDetector() --- end handling imageSeparateDetecting
07-17 11:32:00.110 I/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::workcycleObjectDetector() --- objects num==0, t_ms=38.0050
07-17 11:32:00.110 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::workcycleObjectDetector() --- next step
07-17 11:32:00.110 D/OBJECT_DETECTOR(11420): DetectionBasedTracker::SeparateDetectionWork::workcycleObjectDetector() --- before waiting
07-17 11:32:00.350 D/STATUSBAR-NetworkController( 278): onReceive() - RSSI_CHANGED_ACTION, WIFI_STATE, NETWORK_STATE
07-17 11:32:00.450 I/DEBUG ( 104): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-17 11:32:00.450 I/DEBUG ( 104): Build fingerprint: 'samsung/GT-P7510/GT-P7510:4.0.4/IMM76D/XWLP4:user/release-keys'
07-17 11:32:00.450 I/DEBUG ( 104): pid: 11420, tid: 11432 >>> org.opencv.samples.facedetect <<<
07-17 11:32:00.450 I/DEBUG ( 104): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
07-17 11:32:00.450 I/DEBUG ( 104): r0 00000000 r1 02271cc4 r2 00000000 r3 00000000
07-17 11:32:00.450 I/DEBUG ( 104): r4 021a5a28 r5 020df758 r6 021a5a28 r7 40183641
07-17 11:32:00.450 I/DEBUG ( 104): r8 00000010 r9 5bafaca4 10 0000277e fp 00000000
07-17 11:32:00.450 I/DEBUG ( 104): ip 00000000 sp 5bafac90 lr 401836f9 pc 4020cc0a cpsr 20000030
07-17 11:32:00.450 I/DEBUG ( 104): d0 4040000040000000 d1 3ff00000006a5fc0
07-17 11:32:00.450 I/DEBUG ( 104): d2 437e8000000000fe d3 000000003f000000
07-17 11:32:00.450 I/DEBUG ( 104): d4 000001fd00000000 d5 3fe999999999999a
07-17 11:32:00.460 I/DEBUG ( 104): d6 4010000000000000 d7 4000000000000000
07-17 11:32:00.460 I/DEBUG ( 104): d8 0000000000000000 d9 0000000000000000
07-17 11:32:00.460 I/DEBUG ( 104): d10 0000000000000000 d11 0000000000000000
07-17 11:32:00.460 I/DEBUG ( 104): d12 0000000000000000 d13 0000000000000000
07-17 11:32:00.460 I/DEBUG ( 104): d14 0000000000000000 d15 0000000000000000
07-17 11:32:00.460 I/DEBUG ( 104): scr 80000010
07-17 11:32:00.460 I/DEBUG ( 104):
07-17 11:32:00.630 I/DEBUG ( 104): #00 pc 0007ac0a /system/lib/libandroid_runtime.so (_ZN16JNICameraContext11copyAndPostEP7_JNIEnvRKN7android2spINS2_7IMemoryEEEi)
07-17 11:32:00.630 I/DEBUG ( 104): #01 pc 0007adb6 /system/lib/libandroid_runtime.so (_ZN16JNICameraContext8postDataEiRKN7android2spINS0_7IMemoryEEEP21camera_frame_metadata)
07-17 11:32:00.630 I/DEBUG ( 104): #02 pc 00012b00 /system/lib/libcamera_client.so (_ZN7android6Camera12dataCallbackEiRKNS_2spINS_7IMemoryEEEP21camera_frame_metadata)
07-17 11:32:00.630 I/DEBUG ( 104): #03 pc 00014c6c /system/lib/libcamera_client.so (_ZN7android14BnCameraClient10onTransactEjRKNS_6ParcelEPS1_j)
07-17 11:32:00.630 I/DEBUG ( 104): #04 pc 00017ec0 /system/lib/libbinder.so (_ZN7android7BBinder8transactEjRKNS_6ParcelEPS1_j)
07-17 11:32:00.630 I/DEBUG ( 104): #05 pc 0001b1ea /system/lib/libbinder.so (_ZN7android14IPCThreadState14executeCommandEi)
07-17 11:32:00.630 I/DEBUG ( 104): #06 pc 0001b3c6 /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb)
07-17 11:32:00.630 I/DEBUG ( 104): #07 pc 00020668 /system/lib/libbinder.so
07-17 11:32:00.630 I/DEBUG ( 104): #08 pc 000212ba /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv)
07-17 11:32:00.630 I/DEBUG ( 104): #09 pc 00048f0c /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv)
07-17 11:32:00.630 I/DEBUG ( 104): #10 pc 00021900 /system/lib/libutils.so
07-17 11:32:00.630 I/DEBUG ( 104): #11 pc 00012f3c /system/lib/libc.so (__thread_entry)
07-17 11:32:00.630 I/DEBUG ( 104): #12 pc 00012a90 /system/lib/libc.so (pthread_create)
07-17 11:32:00.630 I/DEBUG ( 104):
07-17 11:32:00.630 I/DEBUG ( 104): code around pc:
07-17 11:32:00.630 I/DEBUG ( 104): 4020cbe8 6811460d 4606b089 29004698 8086f000 .F.h...F.F.)....
07-17 11:32:00.630 I/DEBUG ( 104): 4020cbf8 f10d6808 aa070914 6907ab06 47b84648 .h.........iHF.G
07-17 11:32:00.630 I/DEBUG ( 104): 4020cc08 68019805 4798694b 28004607 f1b8d05a ...hKi.G.F.(Z...
07-17 11:32:00.630 I/DEBUG ( 104): 4020cc18 f8dd0f80 d109a01c 021cf106 46294630 ............0F)F
07-17 11:32:00.630 I/DEBUG ( 104): 4020cc28 24019b06 f7ff9400 e020ff69 0f10f1b8 ...$....i. .....
07-17 11:32:00.630 I/DEBUG ( 104):
07-17 11:32:00.630 I/DEBUG ( 104): code around lr:
07-17 11:32:00.630 I/DEBUG ( 104): 401836d8 fbe4f004 69a2b10e f1b86032 d0020f00 .......i2`......
07-17 11:32:00.630 I/DEBUG ( 104): 401836e8 f8c869e3 f1043000 46480114 fd78f7fe .i...0....HF..x.
07-17 11:32:00.630 I/DEBUG ( 104): 401836f8 b01d4648 8ff0e8bd 6801b510 3c0cf851 HF.........hQ..<
07-17 11:32:00.640 I/DEBUG ( 104): 40183708 f7ff18c0 bd10fca3 6801b510 3c0cf851 ...........hQ..<
07-17 11:32:00.640 I/DEBUG ( 104): 40183718 f7ff18c0 bd10fc49 6801b510 3c0cf851 ....I......hQ..<
07-17 11:32:00.640 I/DEBUG ( 104):
07-17 11:32:00.640 I/DEBUG ( 104): stack:
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac50 00000000
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac54 40010001 /system/lib/libz.so
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac58 00000000
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac5c 0218b898 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac60 0216e724 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac64 4008c4fc
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac68 0000277e
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac6c 021a5a28 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac70 020df758 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac74 021a5a28 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac78 40183641 /system/lib/libbinder.so
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac7c 00000010
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac80 5bafaca4
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac84 0000277e
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac88 df0027ad
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac8c 00000000
07-17 11:32:00.640 I/DEBUG ( 104): #00 5bafac90 022559a8 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac94 4008c514
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac98 022679e0 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafac9c 022679f0 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafaca0 5bafadc8
07-17 11:32:00.640 I/DEBUG ( 104): 5bafaca4 00000000
07-17 11:32:00.640 I/DEBUG ( 104): 5bafaca8 00000000
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacac 00000000
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacb0 00000003
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacb4 021a5a28 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacb8 020df758 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacbc 021a5a40 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacc0 00000010
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacc4 00000000
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacc8 5bafad40
07-17 11:32:00.640 I/DEBUG ( 104): 5bafaccc 0000277e
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacd0 00000000
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacd4 4020cdbb /system/lib/libandroid_runtime.so
07-17 11:32:00.640 I/DEBUG ( 104): #01 5bafacd8 021795f0 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacdc 021a5a28 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5baface0 021795f0 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5baface4 021a5a28 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5baface8 021a19d8 [heap]
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacec 4020cd4d /system/lib/libandroid_runtime.so
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacf0 00000010
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacf4 00000000
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacf8 5bafad40
07-17 11:32:00.640 I/DEBUG ( 104): 5bafacfc 408c1688 /system/lib/libcamera_client.so
07-17 11:32:00.640 I/DEBUG ( 104): 5bafad00 5bafad0c
07-17 11:32:00.640 I/DEBUG ( 104): 5bafad04 408b7b03 /system/lib/libcamera_client.so
07-17 11:32:00.770 I/ (22523): ServiceManager: 0x1e51000
07-17 11:32:00.770 V/AudioHardware(22523): libsecril-client.so is loaded
07-17 11:32:00.780 I/AudioFlinger(22523): Loaded primary audio interface from LEGACY Audio HW HAL (audio)
07-17 11:32:00.780 I/AudioFlinger(22523): Using 'LEGACY Audio HW HAL' (audio.primary) as the primary audio interface
07-17 11:32:00.780 I/AudioFlinger(22523): Loaded a2dp audio interface from A2DP Audio HW HAL (audio)
07-17 11:32:00.780 D/AudioHardware(22523): [VOIP] setMode 0
07-17 11:32:00.780 D/AudioHardwareInterface(22523): setMode(NORMAL)
07-17 11:32:00.780 V/AudioHardware(22523): setMode() : new 0, old 0
07-17 11:32:00.780 V/AudioHardware(22523): Set master volume to 1.000000.
07-17 11:32:00.780 V/MediaPlayerService(22523): MediaPlayerService created
07-17 11:32:00.780 I/CameraService(22523): CameraService started (pid=22523)
07-17 11:32:00.790 W/ (22523): No camera descriptions found in /etc/nvcamera.conf
07-17 11:32:00.790 W/ (22523): Parse of /etc/nvcamera.conf failed: Using default camera configuration.
07-17 11:32:00.790 I/AudioPolicyManager(22523): android::AudioPolicyInterface* android::createAudioPolicyManager(android::AudioPolicyClientInterface*)
07-17 11:32:00.790 I/AudioPolicyManagerBase(22523): AudioPolicyManagerBase::AudioPolicyManagerBase() +
07-17 11:32:00.790 I/AudioPolicyManagerBase(22523): AudioPolicyManagerBase::AudioPolicyManagerBase() try to open hardware output
07-17 11:32:00.790 V/AudioHardware(22523): AudioHardware::openOutputStream
07-17 11:32:00.790 I/SoundBooster(22523): Construct SoundBooster for Nvidia Tablet
07-17 11:32:00.790 I/AcousticEQ(22523): Construct AcousticEQ for Nvidia Tablet
07-17 11:32:00.790 I/AcousticEQ(22523): [AEQ] readAcousticEQTable
07-17 11:32:00.790 V/AudioHardware(22523): AudioStreamOutALSA::set(3, 44100)
07-17 11:32:00.790 I/AudioPolicyManagerBase(22523): AudioPolicyManagerBase::AudioPolicyManagerBase() open hardware output
07-17 11:32:00.800 I/AudioFlinger(22523): AudioFlinger's thread 0x1ea0390 ready to run
07-17 11:32:00.800 E/AudioHardware(22523): AudioStreamOutALSA::standby spdifenable =0
07-17 11:32:00.800 D/AudioHardware(22523): AudioStreamOutALSA::setParameters() routing=2
07-17 11:32:00.800 D/AudioHardware(22523): AudioStreamOutALSA::setParameters() mHardware->isVoIPMode() - 0 mHardware->mInputs.size()- 0
07-17 11:32:00.800 I/AudioHardware(22523): ### setVoiceVolume
07-17 11:32:00.800 E/AudioPolicyManagerBase(22523): AudioPolicyManager::isnonEURCSC(): = ATO
07-17 11:32:00.800 D/AudioHardware(22523): AudioHardware::setParameters() csc_EUR=on
07-17 11:32:00.800 V/AudioHardware(22523): setSeperation_CodecGain(EUR)
07-17 11:32:00.800 V/AudioHardware(22523): openMixer_l() mMixerOpenCnt: 0
07-17 11:32:00.800 V/AudioHardware(22523): openMixer_l end
07-17 11:32:00.800 V/AudioHardware(22523): mixer_ctl_select , Locale Code, (EUR)
07-17 11:32:00.800 V/AudioHardware(22523): closeMixer_l() mMixerOpenCnt: 1
07-17 11:32:00.800 V/AudioHardware(22523): closeMixer_l mMixerOpenCnt = 0 end
07-17 11:32:00.800 I/AudioPolicyManagerBase(22523): AudioPolicyManagerBase::AudioPolicyManagerBase() -
07-17 11:32:00.800 D/AudioHardware(22523): AudioHardware::setParameters() routing=1048576
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_mCount = 143, mValue = ATO
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()gEPSalesCodes = AFG
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()gEPSalesCodes = AFR
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()gEPSalesCodes = AMN
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()gEPSalesCodes = ATL
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()gEPSalesCodes = ATO
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_mbIsEURModel = 1
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_mbIsEURModel = 1
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_mCount = 25, mValue_salescode = ATO
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TEL
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TLP
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = OPP
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = OPS
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = XSA
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = VAU
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = HUT
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = CRO
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = DTM
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = MAX
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TMU
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TMZ
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TNL
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = COS
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TMT
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TMS
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = MBM
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TRG
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = KOR
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = CHN
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = BRI
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TGY
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = TWM
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = CWT
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty()_gCSSalesCodes = FET
07-17 11:32:00.800 D/Audio_Control_CSC(22523): checkCSCAndSetSysProperty() mark property to audio.country as EUR
07-17 11:32:00.800 D/AudioPolicyService(22523): bIsEURModel = 1
07-17 11:32:00.800 I/AudioPolicyService(22523): Loaded audio policy from Samsung SMDKC210 audio policy HAL (audio_policy)
07-17 11:32:01.550 E/AudioService( 191): Media server died.
07-17 11:32:01.550 E/AudioSystem( 191): isMediaServerStarted
07-17 11:32:01.550 E/AudioService( 191): Media server started.
07-17 11:32:01.550 D/AudioHardware(22523): AudioHardware::setParameters() restarting=true
07-17 11:32:01.550 D/AudioHardware(22523): [VOIP] setMode 0
07-17 11:32:01.550 D/AudioHardwareInterface(22523): setMode(NORMAL)
07-17 11:32:01.550 V/AudioHardware(22523): setMode() : new 0, old 0
07-17 11:32:01.550 I/AudioPolicyManager(22523): AudioPolicyManager::setPhoneState() state:0
07-17 11:32:01.550 W/AudioPolicyManager(22523): setPhoneState() setting same state 0
07-17 11:32:01.550 I/AudioPolicyManager(22523): setForceUse() usage 0, config 0, mPhoneState 0
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 4, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 1, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 2, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 0, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 0, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 3, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 0, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 1, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 2, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 0, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 3, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 4, device 2
07-17 11:32:01.550 I/AudioHardware(22523): ### setVoiceVolume
07-17 11:32:01.550 I/AudioPolicyManager(22523): setForceUse() usage 2, config 0, mPhoneState 0
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 4, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 1, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 2, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 0, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 0, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 3, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 0, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 1, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 2, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 0, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 3, device 2
07-17 11:32:01.550 I/AudioPolicyManager(22523): getDeviceForStrategy() strategy 4, device 2
07-17 11:32:01.560 I/AudioHardware(22523): ### setVoiceVolume
07-17 11:32:01.560 D/AudioHardware(22523): AudioHardware::setParameters() toMono=0
07-17 11:32:01.560 D/AudioHardware(22523): AudioHardware::setParameters() restarting=false
07-17 11:32:03.100 I/DEBUG ( 104): !@dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_native -m 11420
07-17 11:32:03.100 I/BootReceiver( 191): Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
07-17 11:32:03.110 I/dumpstate(22529): begin
07-17 11:32:03.110 V/WindowOrientationListener( 191): nearestRotation : 2 Angle: 181 tilt: 32
07-17 11:32:04.990 W/PowerManagerService( 191): Timer 0x3->0x0|0x3
07-17 11:32:04.990 E/PowerManagerService( 191): CurLock p:3 mPS:3
07-17 11:32:04.990 W/PowerManagerService( 191): type=SCREEN_BRIGHT_WAKE_LOCK 'KEEP_SCREEN_ON_FLAG' active (minState=3) activeT=227461
07-17 11:32:05.030 W/ProcessStats( 191): Skipping unknown process pid 22532
07-17 11:32:06.620 V/WindowOrientationListener( 191): nearestRotation : 2 Angle: 181 tilt: 32
07-17 11:32:07.140 V/AlarmManager( 191): waitForAlarm result :8
07-17 11:32:08.900 D/VoldCmdListener( 99): asec list
07-17 11:32:08.900 D/VoldCmdListener( 99): CommandListener::AsecCmd::runCommand -> --
07-17 11:32:09.400 D/STATUSBAR-NetworkController( 278): onReceive() - RSSI_CHANGED_ACTION, WIFI_STATE, NETWORK_STATE
07-17 11:32:10.120 V/WindowOrientationListener( 191): nearestRotation : 2 Angle: 181 tilt: 32
07-17 11:32:10.620 I/dumpstate(22529): done
07-17 11:32:10.660 D/BatteryService( 191): update start
07-17 11:32:10.670 D/KeyguardUpdateMonitor( 191): received broadcast android.intent.action.BATTERY_CHANGED
07-17 11:32:10.670 D/KeyguardUpdateMonitor( 191): handleBatteryUpdate
07-17 11:32:10.670 D/BatteryService( 191): level:30 scale:100 status:3 health:2 present:true voltage: 3765 temperature: 330 technology: Li-ion AC powered:false USB powered:true icon:17302819 invalid charger:0
07-17 11:32:10.670 D/WifiService( 191): ACTION_BATTERY_CHANGED pluggedType: 2
07-17 11:32:10.670 D/UiModeManager( 191): mLastBroadcastState = 0mCarModeEnabled = falseisDeskDockState(mDockState) = false
07-17 11:32:10.670 V/UiModeManager( 191): updateLocked: null action, mDockState=0, firing homeIntent: null
07-17 11:32:10.670 D/UiModeManager( 191): updateConfigurationLocked: mDockState=0; mCarMode=false; mNightMode=0; uiMode=17
07-17 11:32:10.670 D/STATUSBAR-BatteryController( 278): onReceive() - ACTION_BATTERY_CHANGED
07-17 11:32:10.670 D/STATUSBAR-BatteryController( 278): onReceive() - level:30
07-17 11:32:10.680 I/RilActionService(19609): BroadcastReceiverandroid.intent.action.BATTERY_CHANGED
07-17 11:32:10.680 D/STATUSBAR-BatteryController( 278): onReceive() - plugged:2
07-17 11:32:10.680 D/STATUSBAR-BatteryController( 278): onReceive() - BATTERY_STATUS_DISCHARGING: tw_stat_sys_battery_usb_not_charge
07-17 11:32:10.680 D/TabletStatusBar( 278): ACTION_BATTERY_CHANGED
07-17 11:32:10.680 D/TabletStatusBar( 278): NORMAL_BATTERY
07-17 11:32:10.740 I/DEBUG ( 104): gotoUploadUserFault called
07-17 11:32:10.790 W/InputDispatcher( 191): channel ~ Consumer closed input channel or an error occurred. events=0x8
07-17 11:32:10.790 E/InputDispatcher( 191): channel ~ Channel is unrecoverably broken and will be disposed!
07-17 11:32:10.790 W/InputDispatcher( 191): Attempted to unregister already unregistered input channel
07-17 11:32:10.790 D/Zygote ( 108): Process 11420 terminated by signal (11)
Any ideas why this happens or what I could do to prevent the app from crashing?
Thanks, K.