SurfaceFlinger crashs when LCD monitor not plugged

39 views
Skip to first unread message

Jian Wu

unread,
Jun 21, 2017, 4:40:20 AM6/21/17
to Android-x86
Hi Everybody, 

I plan to run android-x86 on pc that LCD monitor unplugged , and surfaceflinger crashed 
Hardware is gigabyte mini-pc GB-BXI7-4770R, this is a hdmi and displayport on it. 
Software is Android-x86 Lollipop.

It crashed during hwcomposere initialization , 
    mHwc = new HWComposer(this,
                *static_cast<HWComposer::EventHandler *>(this));

I see errors 'GRALLOC-KMS( 2138): failed to find a valid crtc/connector/mode combination' , 'E/SurfaceFlinger( 2138): ERROR: failed to open framebuffer (Invalid argument), aborting'.  It seems hwc counts on at least one lcd connected but there is none.  

Any comments?  Thanks in advance.
-----------------LOG--------------------------------------------------------------------------------
D/GRALLOC-KMS( 2138): supported drm planes and formats
D/GRALLOC-KMS( 2138): plane id 21
D/GRALLOC-KMS( 2138):     format XB24
D/GRALLOC-KMS( 2138):     format XR24
D/GRALLOC-KMS( 2138):     format YUYV
D/GRALLOC-KMS( 2138):     format YVYU
D/GRALLOC-KMS( 2138):     format UYVY
D/GRALLOC-KMS( 2138):     format VYUY
D/GRALLOC-KMS( 2138): plane id 25
D/GRALLOC-KMS( 2138):     format XB24
D/GRALLOC-KMS( 2138):     format XR24
D/GRALLOC-KMS( 2138):     format YUYV
D/GRALLOC-KMS( 2138):     format YVYU
D/GRALLOC-KMS( 2138):     format UYVY
D/GRALLOC-KMS( 2138):     format VYUY
D/GRALLOC-KMS( 2138): plane id 29
D/GRALLOC-KMS( 2138):     format XB24
D/GRALLOC-KMS( 2138):     format XR24
D/GRALLOC-KMS( 2138):     format YUYV
D/GRALLOC-KMS( 2138):     format YVYU
D/GRALLOC-KMS( 2138):     format UYVY
D/GRALLOC-KMS( 2138):     format VYUY
E/GRALLOC-KMS( 2138): failed to find a valid crtc/connector/mode combination
D/GRALLOC-KMS( 2138): supported drm planes and formats
D/GRALLOC-KMS( 2138): plane id 21
D/GRALLOC-KMS( 2138):     format XB24
D/GRALLOC-KMS( 2138):     format XR24
D/GRALLOC-KMS( 2138):     format YUYV
D/GRALLOC-KMS( 2138):     format YVYU
D/GRALLOC-KMS( 2138):     format UYVY
D/GRALLOC-KMS( 2138):     format VYUY
D/GRALLOC-KMS( 2138): plane id 25
D/GRALLOC-KMS( 2138):     format XB24
D/GRALLOC-KMS( 2138):     format XR24
D/GRALLOC-KMS( 2138):     format YUYV
D/GRALLOC-KMS( 2138):     format YVYU
D/GRALLOC-KMS( 2138):     format UYVY
D/GRALLOC-KMS( 2138):     format VYUY
D/GRALLOC-KMS( 2138): plane id 29
D/GRALLOC-KMS( 2138):     format XB24
D/GRALLOC-KMS( 2138):     format XR24
D/GRALLOC-KMS( 2138):     format YUYV
D/GRALLOC-KMS( 2138):     format YVYU
D/GRALLOC-KMS( 2138):     format UYVY
D/GRALLOC-KMS( 2138):     format VYUY
E/GRALLOC-KMS( 2138): failed to find a valid crtc/connector/mode combination
E/hwcomposer( 2138): framebuffer_open failed (Invalid argument)
W/hwcomposer( 2138): getting VSYNC period from thin air: 16666666
D/hwcomposer( 2138): Intel hwcomposer module
E/SurfaceFlinger( 2138): ERROR: failed to open framebuffer (Invalid argument), aborting
--------- beginning of crash
F/libc    ( 2138): Fatal signal 6 (SIGABRT), code -6 in tid 2138 (surfaceflinger)
I/DEBUG   ( 1829): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 1829): Build fingerprint: 'Android-x86/android_x86/x86:5.1.1/LMY48Z/user04252152:eng/test-keys'
I/DEBUG   ( 1829): Revision: '0'
I/DEBUG   ( 1829): ABI: 'x86'
I/DEBUG   ( 1829): pid: 2138, tid: 2138, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
I/DEBUG   ( 1829): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG   ( 1829):     eax 00000000  ebx 0000085a  ecx 0000085a  edx 00000006
I/DEBUG   ( 1829):     esi f77dec48  edi 00000000
I/DEBUG   ( 1829):     xcs 00000023  xds 0000002b  xes 0000002b  xfs 00000003  xss 0000002b
I/DEBUG   ( 1829):     eip f76ff9d6  ebp 0000085a  esp ffde88b0  flags 00000286
I/DEBUG   ( 1829): 
I/DEBUG   ( 1829): backtrace:
I/DEBUG   ( 1829):     #00 pc 0007c9d6  /system/lib/libc.so (tgkill+22)
I/DEBUG   ( 1829):     #01 pc 00023125  /system/lib/libc.so (pthread_kill+117)
I/DEBUG   ( 1829):     #02 pc 00024d1a  /system/lib/libc.so (raise+42)
I/DEBUG   ( 1829):     #03 pc 0001c4c4  /system/lib/libc.so (abort+84)
I/DEBUG   ( 1829):     #04 pc 00032dd5  /system/lib/libsurfaceflinger.so
I/DEBUG   ( 1829):     #05 pc 0002143b  /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::init()+251)
I/DEBUG   ( 1829):     #06 pc 00000c01  /system/bin/surfaceflinger
I/DEBUG   ( 1829):     #07 pc 0001365a  /system/lib/libc.so (__libc_init+106)
I/DEBUG   ( 1829):     #08 pc 00000da8  /system/bin/surfaceflinger
I/DEBUG   ( 1829): 
I/DEBUG   ( 1829): Tombstone written to: /data/tombstones/tombstone_02
-------------------------------------------------------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages