21全志r58m平台的framework在使用过程中会莫名的崩溃掉
2018/10/25 16:20
版本:V1.0
开发板:SC5806
1、系统编译:
rootroot@cm88:/home/wwt/r58m_orig$ cat android_r58m_wyb_20170314split.tar.gza* > android.tar.gz
rootroot@cm88:/home/wwt/r58m_orig$ tar zxvf lichee_r58m_wyb_20170308.tar.gz
rootroot@cm88:/home/wwt/r58m_orig$ tar zxvf android.tar.gz
rootroot@cm88:/home/wwt/r58m_orig$ cd lichee/
rootroot@cm88:/home/wwt/r58m_orig/lichee$ ./build.sh config
Welcome to mkscript setup progress
All available chips:
5. sun8iw6p1
Choice: 5
All available platforms:
0. android
Choice: 0
All available kernel:
1. linux-3.4
Choice: 1
All available boards:
1. f1
Choice: 1
rootroot@cm88:/home/wwt/r58m_orig/lichee$
rootroot@cm88:/home/wwt/r58m_orig/lichee$ ./build.sh
rootroot@cm88:/home/wwt/r58m_orig/lichee$
rootroot@cm88:/home/wwt/r58m_orig/lichee$ cd ../android/
rootroot@cm88:/home/wwt/r58m_orig/android$ source build/envsetup.sh
rootroot@cm88:/home/wwt/r58m_orig/android$ lunch
24. octopus_f1-eng
Which would you like? [aosp_arm-eng] 24
rootroot@cm88:/home/wwt/r58m_orig/android$
rootroot@cm88:/home/wwt/r58m_orig/android$ extract-bsp
/home/wwt/r58m_orig/android/device/softwinner/octopus-f1/bImage copied!
/home/wwt/r58m_orig/android/device/softwinner/octopus-f1/modules copied!
rootroot@cm88:/home/wwt/r58m_orig/android$ make -j12
rootroot@cm88:/home/wwt/r58m_orig/android$ verity_data_init
rootroot@cm88:/home/wwt/r58m_orig/android$ pack
(可选:)
rootroot@cm88:/home/wwt/r58m_orig/android$ cd ../lichee/brandy/
rootroot@cm88:/home/wwt/r58m_orig/lichee/brandy$
rootroot@cm88:/home/wwt/r58m_orig/lichee/brandy$ ./build.sh -p sun8iw6p1
rootroot@cm88:/home/wwt/r58m_orig/lichee/brandy$ cd -
/home/wwt/r58m_orig/android
rootroot@cm88:/home/wwt/r58m_orig/android$ pack
2、
客户报告:
R58 Android6.0(客户使用Total Control测试),在调试时发现framework会崩溃,操作如下:
操作1:连接wifi->打开系统浏览器->百度搜索qq音乐->鼠标随意滑动->framework崩溃
操作2:连接wifi->打开系统浏览器->百度搜索qq音乐->点击下载->framework崩溃
操作3:打开系统摄像头->framework崩溃
操作4:打开蓝牙BT也会framework崩溃
以上操作前后内核正常运行,framework崩溃前后,会重新显示开机动画,正常进入lancher。
附件是操作1的系统日志,请尽快帮忙处理,并给出解决方案。
[2018/10/19 11:12:38] 10-19 11:12:07.078 D/ConnectivityService( 4491): updateNetworkScore for NetworkAgentInfo [WIFI () - 100] to 57
[2018/10/19 11:12:39] 10-19 11:12:07.562 I/===DaemonService===( 5581): ############## Rotation : 0
[2018/10/19 11:12:39] 10-19 11:12:07.562 I/===DaemonService===( 5581): ScreenOrientationThread:0 screentOrientation:0
[2018/10/19 11:12:39] 10-19 11:12:07.563 I/===APKProtocolTransmit===( 5581): Ready send su-cmd:275
[2018/10/19 11:12:39] 10-19 11:12:07.563 I/===APKProtocolTransmit===( 5581): Start send su-cmd:275 length[14]
[2018/10/19 11:12:39] 10-19 11:12:07.563 I/===APKProtocolTransmit===( 5581): End send sb-cmd:275
[2018/10/19 11:12:39] 10-19 11:12:07.880 E/Sensors ( 4491): Gyro::setFullScale() Failed to set Full-scale: 2000 - range
[2018/10/19 11:12:39] 10-19 11:12:07.880 E/Sensors ( 4491): GyroSensor : set EVIOCSCLOCKID failed !
[2018/10/19 11:12:39] 10-19 11:12:07.880 E/Sensors ( 4491): GyroSensor::Enable() Failed to set enable: 1 - enable_device
[2018/10/19 11:12:39] 10-19 11:12:07.880 D/Sensors ( 4491): AccelSensor::enable(1), handle: 1, what: 3, mEnabled: 9
[2018/10/19 11:12:39] 10-19 11:12:07.880 E/Sensors ( 4491): GyroSensor::enable(1), handle: 3, what: 0, mEnabled: 1
[2018/10/19 11:12:39] 10-19 11:12:07.880 E/SensorService( 4491): Error activating sensor 3 (Operation not permitted)
[2018/10/19 11:12:39] 10-19 11:12:07.883 D/Sensors ( 4491): AccelSensor::enable(1), handle: 0, what: 0, mEnabled: 9
[2018/10/19 11:12:39] --------- beginning of crash
[2018/10/19 11:12:39] 10-19 11:12:07.883 F/libc ( 4491): Fatal signal 8 (SIGFPE), code -6, fault addr 0x118b in tid 4525 (Binder_1)
[2018/10/19 11:12:39] 10-19 11:12:07.935 F/DEBUG ( 228): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[2018/10/19 11:12:39] 10-19 11:12:07.935 F/DEBUG ( 228): Build fingerprint: 'Allwinner/octopus_smt_mid/octopus-smt_mid:6.0.1/MMB29M/20181018:eng/test-keys'
[2018/10/19 11:12:39] 10-19 11:12:07.936 F/DEBUG ( 228): Revision: '0'
[2018/10/19 11:12:39] 10-19 11:12:07.936 F/DEBUG ( 228): ABI: 'arm'
[2018/10/19 11:12:39] 10-19 11:12:07.936 F/DEBUG ( 228): pid: 4491, tid: 4525, name: Binder_1 >>> system_server <<<
[2018/10/19 11:12:39] 10-19 11:12:07.936 F/DEBUG ( 228): signal 8 (SIGFPE), code -6 (SI_TKILL), fault addr 0x118b
[2018/10/19 11:12:39] 10-19 11:12:07.994 F/DEBUG ( 228): r0 00000000 r1 000011ad r2 00000008 r3 b3d01978
[2018/10/19 11:12:39] 10-19 11:12:07.995 F/DEBUG ( 228): r4 b3d01980 r5 b3d01930 r6 00000058 r7 0000010c
[2018/10/19 11:12:39] 10-19 11:12:07.995 F/DEBUG ( 228): r8 00000000 r9 abcf97c0 sl 00000000 fp 00000000
[2018/10/19 11:12:39] 10-19 11:12:07.995 F/DEBUG ( 228): ip 00000008 sp b3d01580 lr b6ce3edd pc b6ce62cc cpsr 400f0010
[2018/10/19 11:12:39] 10-19 11:12:08.040 F/DEBUG ( 228):
[2018/10/19 11:12:39] 10-19 11:12:08.040 F/DEBUG ( 228): backtrace:
[2018/10/19 11:12:39] 10-19 11:12:08.040 F/DEBUG ( 228): #00 pc 000422cc /system/lib/libc.so (tgkill+12)
[2018/10/19 11:12:39] 10-19 11:12:08.040 F/DEBUG ( 228): #01 pc 0003fed9 /system/lib/libc.so (pthread_kill+32)
[2018/10/19 11:12:39] 10-19 11:12:08.040 F/DEBUG ( 228): #02 pc 0001c6bf /system/lib/libc.so (raise+10)
[2018/10/19 11:12:39] 10-19 11:12:08.040 F/DEBUG ( 228): #03 pc 0001b864 /system/lib/hw/sensors.exdroid.so (__aeabi_idiv0+8)
[2018/10/19 11:12:39] 10-19 11:12:08.040 F/DEBUG ( 228): #04 pc 00007c80 /system/lib/hw/sensors.exdroid.so (AccelSensor::setDelay(int, long long)+484)
[2018/10/19 11:12:39] 10-19 11:12:08.040 F/DEBUG ( 228): #05 pc 00008343 /system/lib/libsensorservice.so
[2018/10/19 11:12:39] 10-19 11:12:08.041 F/DEBUG ( 228): #06 pc 0000cb33 /system/lib/libsensorservice.so
[2018/10/19 11:12:39] 10-19 11:12:08.041 F/DEBUG ( 228): #07 pc 0000cca9 /system/lib/libsensorservice.so
[2018/10/19 11:12:39] ed int)+166)
[2018/10/19 11:12:39] 10-19 11:12:08.041 F/DEBUG ( 228): #09 pc 00019985 /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+60)
[2018/10/19 11:12:39] 10-19 11:12:08.041 F/DEBUG ( 228): #10 pc 0001ec5f /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+542)
[2018/10/19 11:12:39] 10-19 11:12:08.041 F/DEBUG ( 228): #11 pc 0001edb5 /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+64)
[2018/10/19 11:12:39] 10-19 11:12:08.041 F/DEBUG ( 228): #12 pc 0001ee19 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
[2018/10/19 11:12:39] 10-19 11:12:08.041 F/DEBUG ( 228): #13 pc 00023759 /system/lib/libbinder.so
[2018/10/19 11:12:39] 10-19 11:12:08.041 F/DEBUG ( 228): #14 pc 00010071 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
[2018/10/19 11:12:39] 10-19 11:12:08.042 F/DEBUG ( 228): #15 pc 0005d7bf /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+70)
[2018/10/19 11:12:39] 10-19 11:12:08.042 F/DEBUG ( 228): #16 pc 0003f7db /system/lib/libc.so (__pthread_start(void*)+30)
[2018/10/19 11:12:39] 10-19 11:12:08.042 F/DEBUG ( 228): #17 pc 00019ef5 /system/lib/libc.so (__start_thread+6)
[2018/10/19 11:12:40] 10-19 11:12:08.552 I/USBService( 5581): send udp to check mobileagent state.
[2018/10/19 11:12:40] 10-19 11:12:08.553 I/===Mrcp===( 5581): sending cmd:276
在开发板SC5806上测试,接鼠标,使用有线连网:
打开系统浏览器->百度搜索qq音乐->鼠标随意滑动->framework崩溃
01-01 09:28:40.251 V/CAM_CameraActivity( 2545): Build info: octopus_f1-eng 6.0.1 MMB29M 20181025 test-keys
01-01 09:28:40.258 D/Sensors ( 1416): AccelSensor::enable(1), handle: 0, what: 0, mEnabled: 1
01-01 09:28:40.259 D/Sensors ( 1416): SensorBase: setDelay handle = 0
01-01 09:28:40.259 E/Sensors ( 1416): AccelSensor::Delay() Failed to set delay: 200 [ms] - accelerometer/pollrate_ms
01-01 09:28:40.260 F/libc ( 1416): Fatal signal 8 (SIGFPE), code -6, fault addr 0x588 in tid 1877 (Binder_4)
01-01 09:28:40.279 D/CAM_Storage( 2545): External storage state=mounted
01-01 09:28:40.283 D/AudioFlinger( 603): mixer(0xb1c80000) throttle end: throttle time(1)
01-01 09:28:40.315 F/DEBUG ( 596): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-01 09:28:40.315 F/DEBUG ( 596): Build fingerprint: 'Allwinner/octopus_f1/octopus-f1:6.0.1/MMB29M/20181025:eng/test-keys'
01-01 09:28:40.315 F/DEBUG ( 596): Revision: '0'
01-01 09:28:40.315 F/DEBUG ( 596): ABI: 'arm'
01-01 09:28:40.316 F/DEBUG ( 596): pid: 1416, tid: 1877, name: Binder_4 >>> system_server <<<
01-01 09:28:40.316 F/DEBUG ( 596): signal 8 (SIGFPE), code -6 (SI_TKILL), fault addr 0x588
01-01 09:28:40.347 F/DEBUG ( 596): r0 00000000 r1 00000755 r2 00000008 r3 9b8bc978
01-01 09:28:40.347 F/DEBUG ( 596): r4 9b8bc980 r5 9b8bc930 r6 00000009 r7 0000010c
01-01 09:28:40.347 F/DEBUG ( 596): r8 ffffffff r9 abb3e7c0 sl 00000000 fp 00000000
01-01 09:28:40.347 F/DEBUG ( 596): ip 00000008 sp 9b8bc580 lr b6c9fedd pc b6ca22cc cpsr 400f0010
01-01 09:28:40.382 F/DEBUG ( 596):
01-01 09:28:40.382 F/DEBUG ( 596): backtrace:
01-01 09:28:40.382 F/DEBUG ( 596): #00 pc 000422cc /system/lib/libc.so (tgkill+12)
01-01 09:28:40.382 F/DEBUG ( 596): #01 pc 0003fed9 /system/lib/libc.so (pthread_kill+32)
01-01 09:28:40.382 F/DEBUG ( 596): #02 pc 0001c6bf /system/lib/libc.so (raise+10)
01-01 09:28:40.382 F/DEBUG ( 596): #03 pc 0001b864 /system/lib/hw/sensors.exdroid.so (__aeabi_idiv0+8)
01-01 09:28:40.383 F/DEBUG ( 596): #04 pc 00007c80 /system/lib/hw/sensors.exdroid.so (AccelSensor::setDelay(int, long long)+484)
01-01 09:28:40.383 F/DEBUG ( 596): #05 pc 00008343 /system/lib/libsensorservice.so
01-01 09:28:40.383 F/DEBUG ( 596): #06 pc 0000cb33 /system/lib/libsensorservice.so
01-01 09:28:40.383 F/DEBUG ( 596): #07 pc 0000cca9 /system/lib/libsensorservice.so
01-01 09:28:40.383 F/DEBUG ( 596): #08 pc 00041d8f /system/lib/libgui.so (android::BnSensorEventConnection::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+166)
01-01 09:28:40.383 F/DEBUG ( 596): #09 pc 00019985 /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+60)
01-01 09:28:40.383 F/DEBUG ( 596): #10 pc 0001ec5f /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+542)
01-01 09:28:40.383 F/DEBUG ( 596): #11 pc 0001edb5 /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+64)
01-01 09:28:40.383 F/DEBUG ( 596): #12 pc 0001ee19 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
01-01 09:28:40.383 F/DEBUG ( 596): #13 pc 00023759 /system/lib/libbinder.so
01-01 09:28:40.383 F/DEBUG ( 596): #14 pc 00010071 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
01-01 09:28:40.383 F/DEBUG ( 596): #15 pc 0005d7bf /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+70)
01-01 09:28:40.383 F/DEBUG ( 596): #16 pc 0003f7db /system/lib/libc.so (__pthread_start(void*)+30)
01-01 09:28:40.383 F/DEBUG ( 596): #17 pc 00019ef5 /system/lib/libc.so (__start_thread+6)
01-01 09:28:43.336 D/audio_hw_primary( 603): out_standby
01-01 09:28:44.919 F/DEBUG ( 596):
01-01 09:28:44.919 F/DEBUG ( 596): Tombstone written to: /data/tombstones/tombstone_00
01-01 09:28:44.927 I/BootReceiver( 1416): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
01-01 09:28:44.938 V/CAM_Profiler( 2545): [ 0.000ms][ui] GUARD: CaptureModule.resume - START
01-01 09:28:44.960 V/CAM_Profiler( 2545): [ 1.413ms][ui] GUARD: CaptureModule.resume - [ 0.023ms] getRemoteShutterListener.onModuleReady
01-01 09:28:44.973 V/CAM_Profiler( 2545): [ 34.874ms][ui] GUARD: CaptureModule.resume - [ 0.733ms] initSurfaceTextureConsumer
01-01 09:28:44.986 V/CAM_Profiler( 2545): [ 0.000ms] GUARD: CaptureModule.closeCamera() - START
01-01 09:28:44.996 V/CAM_Profiler( 2545): [ 9.999ms] GUARD: CaptureModule.closeCamera() - [ 9.999ms] mCameraOpenCloseLock.acquire()
01-01 09:28:44.996 V/CAM_Profiler( 2545): [ 10.356ms] GUARD: CaptureModule.closeCamera() - STOP
01-01 09:28:44.996 V/CAM_Profiler( 2545): [ 0.000ms] GUARD: CaptureModule.openCameraAndStartPreview() - START
01-01 09:28:44.996 V/CAM_Profiler( 2545): [ 0.148ms] GUARD: CaptureModule.openCameraAndStartPreview() - [ 0.148ms] Acquired mCameraOpenCloseLock
01-01 09:28:45.000 D/Sensors ( 1416): SensorBase: setDelay handle = 0
01-01 09:28:45.000 E/Sensors ( 1416): AccelSensor::Delay() Failed to set delay: 200 [ms] - accelerometer/pollrate_ms
01-01 09:28:45.002 D/CAM_Camera2OneCamMgr( 2545): Getting First BACK Camera
01-01 09:28:45.007 I/OMXClient( 2545): Using client-side OMX mux.
01-01 09:28:45.016 I/CAM_OneCamera1Opnr( 2545): Opening Camera: CameraId{Api2='0',Api1:0}
基本确定是传感器(gsensor)等配置的问题。
根据crash dump分析
在HAL层调用AccelSensor,设置SetDelay时出现问题.
请检测sensor硬件是否正常,底层驱动是否正常。
H:\wyb\r58m\android\device\softwinner\octopus-f1\BoardConfig.mk
#sensor parameter
#SW_BOARD_USES_SENSORS_TYPE := lsm9ds0
SW_BOARD_USES_SENSORS_TYPE = aw_sensors
客户回复:问题解决了。