I believe the error related to IAshmemDeviceService might be a red herring. Here's the unhelpful backtrace when surfaceflinger crashes, just in case:0-07 16:09:57.910 1572 1572 F libc : Fatal signal 8 (SIGFPE), code 1 (FPE_INTDIV), fault addr 0xa7c7841a in tid 1572 (surfaceflinger), pid 1572 (surfaceflinger)
10-07 16:09:57.966 1622 1622 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
10-07 16:09:57.967 1480 1480 I /system/bin/tombstoned: received crash request for pid 1572
10-07 16:09:57.967 1622 1622 I crash_dump32: performing dump of process 1572 (target tid = 1572)
10-07 16:09:57.970 1622 1622 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-07 16:09:57.970 1622 1622 F DEBUG : Build fingerprint: 'Android-x86/android_x86/x86:10/QP1A.190711.020/eng.goffio.20191006.193201:eng/test-keys'
10-07 16:09:57.970 1622 1622 F DEBUG : Revision: '0'
10-07 16:09:57.970 1622 1622 F DEBUG : ABI: 'x86'
10-07 16:09:57.970 1622 1622 F DEBUG : Timestamp: 2019-10-07 16:09:57+0000
10-07 16:09:57.970 1622 1622 F DEBUG : pid: 1572, tid: 1572, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
10-07 16:09:57.970 1622 1622 F DEBUG : uid: 0
10-07 16:09:57.970 1622 1622 F DEBUG : signal 8 (SIGFPE), code 1 (FPE_INTDIV), fault addr 0xa7c7841a
10-07 16:09:57.970 1622 1622 F DEBUG : eax 00000000 ebx 00000000 ecx 00000000 edx 00000000
10-07 16:09:57.970 1622 1622 F DEBUG : edi 00000000 esi 00000000
10-07 16:09:57.970 1622 1622 F DEBUG : ebp bfc31888 esp bfc316e4 eip a7c7841a10-07 16:09:57.984 1622 1622 F DEBUG :
10-07 16:09:57.984 1622 1622 F DEBUG : backtrace:
10-07 16:09:57.985 1622 1622 F DEBUG : #00 pc 0001b41a /system/lib/libutils.so (__moddi3+242) (BuildId: 426f9045217c08c490053b4a49fd485d)
On Sun, Oct 6, 2019 at 10:12 PM Michael Goffioul <michael...@gmail.com> wrote:I'm trying to use drmfb-composer + minigbm/intel, as I did for Android pie, but I can't get drmfb-composer to run properly.
First I had to disable the hotplug thread, because the service couldn't access netlink (Operation not permitted). I didn't add the sepolicy to the build, but at the same time selinux is not enforced, so it shouldn't matter.Then SurfaceFlinger crashes straight away when starting the boot animation, the logs showing the following:10-07 01:53:51.127 1573 1573 I SurfaceFlinger: Enter boot animation
10-07 01:53:51.129 1573 1573 I surfaceflinger: type=1400 audit(0.0:156): avc: denied { use } for path="anon_inode:dmabuf" dev="anon_inodefs" ino=5599 scontext=u:r:init:s0 tcontext=u:r:surfaceflinger:s0 tclass=fd permissive=1
10-07 01:53:51.130 1442 1442 I HwBinder:1442_2: type=1400 audit(0.0:158): avc: denied { ioctl } for path="/dev/vndbinder" dev="tmpfs" ino=623 ioctlcmd=0x6201 scontext=u:r:init:s0 tcontext=u:object_r:vndbinder_device:s0 tclass=chr_file permissive=1
10-07 01:53:51.130 1442 1442 I HwBinder:1442_2: type=1400 audit(0.0:159): avc: denied { call } for scontext=u:r:init:s0 tcontext=u:r:vndservicemanager:s0 tclass=binder permissive=1
10-07 01:53:51.132 1442 1510 E /vendor/bin/hw/android.hardware.graphics.composer@2.1-service.drmfb: Failed to get IAshmemDeviceService.
10-07 01:53:51.131 1573 1573 I surfaceflinger: type=1400 audit(0.0:160): avc: denied { ioctl } for path="/dev/dri/renderD128" dev="tmpfs" ino=7395 ioctlcmd=0x642e scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
10-07 01:53:51.132 1573 1573 W HwcComposer: command 0x2000000 generated error 8
Not sure what to do about this one.
On Monday, October 7, 2019 at 6:27:38 PM UTC+2, Michael Goffioul wrote:I believe the error related to IAshmemDeviceService might be a red herring. Here's the unhelpful backtrace when surfaceflinger crashes, just in case:0-07 16:09:57.910 1572 1572 F libc : Fatal signal 8 (SIGFPE), code 1 (FPE_INTDIV), fault addr 0xa7c7841a in tid 1572 (surfaceflinger), pid 1572 (surfaceflinger)
10-07 16:09:57.966 1622 1622 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
10-07 16:09:57.967 1480 1480 I /system/bin/tombstoned: received crash request for pid 1572
10-07 16:09:57.967 1622 1622 I crash_dump32: performing dump of process 1572 (target tid = 1572)
10-07 16:09:57.970 1622 1622 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-07 16:09:57.970 1622 1622 F DEBUG : Build fingerprint: 'Android-x86/android_x86/x86:10/QP1A.190711.020/eng.goffio.20191006.193201:eng/test-keys'
10-07 16:09:57.970 1622 1622 F DEBUG : Revision: '0'
10-07 16:09:57.970 1622 1622 F DEBUG : ABI: 'x86'
10-07 16:09:57.970 1622 1622 F DEBUG : Timestamp: 2019-10-07 16:09:57+0000
10-07 16:09:57.970 1622 1622 F DEBUG : pid: 1572, tid: 1572, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
10-07 16:09:57.970 1622 1622 F DEBUG : uid: 0
10-07 16:09:57.970 1622 1622 F DEBUG : signal 8 (SIGFPE), code 1 (FPE_INTDIV), fault addr 0xa7c7841a
10-07 16:09:57.970 1622 1622 F DEBUG : eax 00000000 ebx 00000000 ecx 00000000 edx 00000000
10-07 16:09:57.970 1622 1622 F DEBUG : edi 00000000 esi 00000000
10-07 16:09:57.970 1622 1622 F DEBUG : ebp bfc31888 esp bfc316e4 eip a7c7841a10-07 16:09:57.984 1622 1622 F DEBUG :
10-07 16:09:57.984 1622 1622 F DEBUG : backtrace:
10-07 16:09:57.985 1622 1622 F DEBUG : #00 pc 0001b41a /system/lib/libutils.so (__moddi3+242) (BuildId: 426f9045217c08c490053b4a49fd485d)This is the blockerWe encountered a similar problem in gbm_gralloc module in the past and it was due to a division by zero in the code,if you have the tombstone_xx file you should be able to identify the line of code using addr2line -Cfe command
On Sun, Oct 6, 2019 at 10:12 PM Michael Goffioul <michael...@gmail.com> wrote:I'm trying to use drmfb-composer + minigbm/intel, as I did for Android pie, but I can't get drmfb-composer to run properly.I've never tested that configuration, butI used IA-HardwareComposer with minigbm intel (gralloc1) and it is working with pie-x86,it should work also in q-x86, but I will test and confirm as soon as possible
The first three digits in the command represent an OPCODE, 0x200 is SET_COLOR_TRANSFORMthe error 8 corresponds to "NOT_SUPPORTED" which may mean that that the requested Color Transformation is not supportedbeing the message a Warning it may not be an a fatal Error,there are examples of hwcomposer modules being too much verbose.
> This is the blocker
>
>
> We encountered a similar problem in gbm_gralloc module in the past and it was due to a division by zero in the code,
> if you have the tombstone_xx file you should be able to identify the line of code using addr2line -Cfe command
>
>
> I'm running in live mode, as I don't want to flash my device at the moment (I still need a stable device for regular development). The problem is that the backtrace only contains the above frame, which makes it completely useless. Not sure the tombstone will contain anything else. I'll keep digging to find a way to get debug. But as the network doesn't start either, I can't adb to the device. My options are limited.
Just FYI, the add2line command relies on /symbols/system/... binaries in the $(OUT), but in this case there is no suffient lines in backlog.
What patch in which project was necessary to solve?