在开发一个Android上的视频监控软件,
参考http://blog.csdn.net/zblue78/article/details/6083374环境
手机HTC C510E
CPU高通MSM7227
操作系统 Android2.3在视频正常浏览,并发送数据到服务器一段时间后,就会报错,然后不能预览了。
原来正常模式,会不停打印这样的信息,
W/CameraService(  1472): lockIfMessageWanted(16): waited for 10 ms
W/CameraService(   1472: lockIfMessageWanted(16): enter sleep而错误后,cam_frame: MSM_CAM_IOCTL_GETFRAME error: Invalid argument
就会一直打印这样的信息
I/mm-camera( 1472): continue after select timeout
I/mm-camera( 1472): continue after select timeout此时再去开启系统的相机,也会不能开启。不知为何原因,请高手帮忙,谢谢拉。以下是整个的错误信息
......
D/ContactMessageStore(  220): MSG_CHECK_DELETION >>
D/ContactMessageStore(  220): mDeleteTask = null, bDeleting = false
D/ContactMessageStore(  220): start background delete task...
D/ContactMessageStore(  220): MSG_CHECK_DELETION <<
D/ContactMessageStore(  220): size: 0 , 0
D/ContactMessageStore(  220): Background delete complete
D/dalvikvm(  309): GC_CONCURRENT freed 409K, 52% free 2772K/5767K, external 0K/0K, paused 29ms+189ms
D/dalvikvm(  240): GC_CONCURRENT freed 434K, 48% free 3272K/6215K, external 4K/516K, paused 78ms+248ms
D/GpsLocationProvider(  130): [handleMessage] message :5
D/GpsLocationProvider(  130): [handleMessage] INJECT_NTP_TIME
D/SntpClient(  130): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
D/GpsLocationProvider(  130): requestTime failed
D/GpsLocationProvider(  130): requestTime next time: 300000
W/CameraService(  1472): lockIfMessageWanted(16): waited for 10 msW/CameraService(   1472: lockIfMessageWanted(16): enter sleep
W/CameraSource( 1472): Long delay detected in video recording
D/dalvikvm(  130): GC_CONCURRENT freed 1177K, 41% free 6905K/11527K, external 700K/1123K, paused 178ms+292ms
D/GpsLocationProvider(  130): [handleMessage] message :5
D/GpsLocationProvider(  130): [handleMessage] INJECT_NTP_TIME
D/SntpClient(  130): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
D/GpsLocationProvider(  130): requestTime failed
D/GpsLocationProvider(  130): requestTime next time: 300000
W/CameraSource( 1472): Long delay detected in video recording
W/AudioFlinger( 1472): RecordThread: buffer overflow
D/SntpClient(  130): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
D/SntpClient(  130): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
D/SntpClient(  130): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
W/CameraSource( 1472): Long delay detected in video recording
W/AudioFlinger( 1472): RecordThread: buffer overflow
I/ActivityManager(  130): No longer want android.dopod.FileManager (pid 909): hidden #16
I/ActivityManager(  130): No longer want com.htc.RosieUtility (pid 559): hidden #16
I/ActivityManager(  130): No longer want com.android.defcontainer (pid 868): hidden #16
I/ActivityManager(  130): No longer want com.android.packageinstaller (pid 1477): hidden #16
I/ActivityManager(  130): No longer want com.htc.widget.clockwidget (pid 785): hidden #16
I/ActivityManager(  130): No longer want com.htc.skinpicker (pid 755): hidden #16
I/ActivityManager(  130): No longer want com.android.settings:remote (pid 769): hidden #16
W/ActivityManager(  130): Scheduling restart of crashed service com.htc.skinpicker/.SkinPickerService in 26332420ms
W/CameraSource( 1472): Long delay detected in video recording
W/AudioFlinger( 1472): RecordThread: buffer overflow
D/UsbnetService(  130): BroadcastReceiver::onReceive+
D/UsbnetService(  130): onReceive BATTERY_CHANGED
D/UsbnetService(  130):  --> pluggedType = 2, mPluggedType = 0, mScreenOff = false
D/UsbnetService(  130): BroadcastReceiver::onReceive-
D/lights  (  130): [LedInfo] write attr ok name=/sys/class/leds/amber/brightness string=1,len=1
D/lights  (  130): [LedInfo] write attr ok name=/sys/class/leds/amber/blink string=1,len=1
D/lights  (  130): [LedInfo] write attr ok name=/sys/class/leds/amber/off_timer string=0 0,len=3
D/NotificationService(  130): mBatteryHealth=3, mBatteryStatus=5
D/NotificationService(  130): **********show Battery Overheat indicator!! 
D/StatusBarService(  240): updateIcon slot=battery index=21 viewIndex=14 old=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 ) icon=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 )
D/lights  (  130): [LedInfo] write attr ok name=/sys/class/leds/green/brightness string=1,len=1
D/lights  (  130): [LedInfo] write attr ok name=/sys/class/leds/green/blink string=3,len=1
D/lights  (  130): [LedInfo] write attr ok name=/sys/class/leds/green/off_timer string=0 0,len=3
D/BatteryService(  130): SendIntentforPowersaver
D/WifiService(  130): [smart wifi] ACTION_BATTERY_CHANGED pluggedType: 2
D/BatteryService(  130): Current powersaver status == NORMAL_STATUS
D/WifiService(  130): [smart wifi] mSmartWiFiStatus: 0 mBatteryLevel: 100 mWifiConnected: true
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
D/UsbnetService(  130): onReceive BATTERY_CHANGED
D/UsbnetService(  130):  --> pluggedType = 2, mPluggedType = 0, mScreenOff = false
D/UsbnetService(  130): BroadcastReceiver::onReceive-
D/WifiService(  130): [smart wifi] mSmartWiFiStatus: 0 mBatteryLevel: 100 mWifiConnected: true
D/StatusBarService(  240): updateIcon slot=battery index=21 viewIndex=14 old=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 ) icon=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 )
D/WifiService(  130): [smart wifi] ACTION_BATTERY_CHANGED pluggedType: 2
D/BatteryService(  130): SendIntentforPowersaver
D/BatteryService(  130): Current powersaver status == NORMAL_STATUS
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
D/dalvikvm(  130): GC_CONCURRENT freed 1144K, 41% free 6870K/11527K, external 700K/1123K, paused 6ms+268ms
W/AudioFlinger( 1472): RecordThread: buffer overflow
D/UsbnetService(  130): BroadcastReceiver::onReceive+
D/UsbnetService(  130): onReceive BATTERY_CHANGED
D/UsbnetService(  130):  --> pluggedType = 2, mPluggedType = 0, mScreenOff = false
D/UsbnetService(  130): BroadcastReceiver::onReceive-
D/WifiService(  130): [smart wifi] mSmartWiFiStatus: 0 mBatteryLevel: 100 mWifiConnected: true
W/CameraSource( 1472): Long delay detected in video recording
D/StatusBarService(  240): updateIcon slot=battery index=21 viewIndex=14 old=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 ) icon=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 )
D/WifiService(  130): [smart wifi] ACTION_BATTERY_CHANGED pluggedType: 2
D/BatteryService(  130): SendIntentforPowersaver
D/BatteryService(  130): Current powersaver status == NORMAL_STATUS
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
E/mm-camera( 1472): cam_frame: MSM_CAM_IOCTL_GETFRAME error: Invalid argument
I/mm-camera( 1472): continue after select timeout
I/mm-camera( 1472): continue after select timeout
I/mm-camera( 1472): continue after select timeout
I/mm-camera( 1472): continue after select timeout
I/mm-camera( 1472): continue after select timeout
D/UsbnetService(  130): BroadcastReceiver::onReceive+
D/UsbnetService(  130): onReceive BATTERY_CHANGED
D/UsbnetService(  130):  --> pluggedType = 2, mPluggedType = 0, mScreenOff = false
D/UsbnetService(  130): BroadcastReceiver::onReceive-
D/StatusBarService(  240): updateIcon slot=battery index=21 viewIndex=14 old=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 ) icon=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 )
D/WifiService(  130): [smart wifi] mSmartWiFiStatus: 0 mBatteryLevel: 100 mWifiConnected: true
D/BatteryService(  130): SendIntentforPowersaver
D/BatteryService(  130): Current powersaver status == NORMAL_STATUS
D/WifiService(  130): [smart wifi] ACTION_BATTERY_CHANGED pluggedType: 2
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): usb_cable_connect = 1
D/BatteryService(  130): isUsbConnected() = true
D/BatteryService(  130): mPlugType = 2
I/mm-camera( 1472): continue after select timeout
I/mm-camera( 1472): continue after select timeout
D/dalvikvm(  309): GC_CONCURRENT freed 384K, 52% free 2772K/5767K, external 0K/0K, paused 6ms+6ms