Skip to content

rdkshell crashed with SIGSEGV on DRM backend #54

@moorthy-bs

Description

@moorthy-bs

RDKShell is crashed with Segmentation fault where DRM is the backend for wayland, however essos-sample is running good in the same environment. The crash seems to be on RDKShell::image::draw()
Error log:

root@raspberrypi-rdk-mc:~# export XDG_RUNTIME_DIR=/run/user/0
root@raspberrypi-rdk-mc:~# export LD_PRELOAD=/usr/lib/libwesteros_gl.so.0
root@raspberrypi-rdk-mc:~# ./rdkshell 
initializing rdk shell
Ignored file read due to keyMap env not set
Ignored file read due to easter egg environment variable not set
Ignored file read due to input devices environment variable not set
key initial delay: 500 repeat interval: 100
Essos Info: westeros (essos) version 1.01.21
Essos Info: westeros (essos) config supports: direct 1 wayland 1
1609413373501: INFO: ../git/drm/westeros-gl/westeros-gl.c:3121 opened /dev/dri/card0: master 1
1609413373501: INFO: ../git/drm/westeros-gl/westeros-gl.c:3189 westeros-gl: have drm atomic mode setting
1609413373565: INFO: ../git/drm/westeros-gl/westeros-gl.c:3280 wstInitCtx: current mode 1920x1080@60
1609413373570: INFO: ../git/drm/westeros-gl/westeros-gl.c:3476 wstInitCtx; found 7 overlay planes
1609413373570: ERROR: ../git/drm/westeros-gl/westeros-gl.c:1713 wstInitServiceServer: failed to create lock file (/run/user/0/display.lock) errno 2
1609413373570: ERROR: ../git/drm/westeros-gl/westeros-gl.c:2458 wstInitVideoServer: Error: unable to start service server
1609413373570: ERROR: ../git/drm/westeros-gl/westeros-gl.c:3494 wstInitCtx: failed to initialize display server
1609413373571: ERROR: ../git/drm/westeros-gl/westeros-gl.c:1713 wstInitServiceServer: failed to create lock file (/run/user/0/video.lock) errno 2
1609413373571: ERROR: ../git/drm/westeros-gl/westeros-gl.c:1828 wstInitVideoServer: Error: unable to start service server
1609413373571: ERROR: ../git/drm/westeros-gl/westeros-gl.c:3511 wstInitCtx: failed to initialize video server
Essos Info: displaySizeCallback: display size 1920x1080
Essos Info: displaySizeCallback: display safe (96,54,1728,972)
1609413373619: INFO: ../git/drm/westeros-gl/westeros-gl.c:5695 native window: wxh=1280x720
1609413373619: INFO: ../git/drm/westeros-gl/westeros-gl.c:3825 choosing output mode: 1280x720x60
1609413373619: INFO: ../git/drm/westeros-gl/westeros-gl.c:5725 plane 0x161ee0 : zorder: 262
Essos Info: essResize 1920x1080
1609413373626: INFO: ../git/drm/westeros-gl/westeros-gl.c:5695 native window: wxh=1920x1080
1609413373626: INFO: ../git/drm/westeros-gl/westeros-gl.c:5725 plane 0x161ee0 : zorder: 262
the power key is set to 0
power key support enabled: 0
compositor type is empty, setting to nested by default 
Segmentation fault (core dumped)

Stack trace:

Thread 1 "rdkshell" received signal SIGSEGV, Segmentation fault.
0x76fb93ac in RdkShell::Image::draw() () from /usr/lib/librdkshell.so
(gdb) bt full
#0  0x76fb93ac in RdkShell::Image::draw() () from /usr/lib/librdkshell.so
No symbol table info available.
#1  0x76fac0ca in RdkShell::CompositorController::draw() () from /usr/lib/librdkshell.so
No symbol table info available.
#2  0x76fab0dc in RdkShell::run() () from /usr/lib/librdkshell.so
No symbol table info available.
#3  0x0000883a in main ()
No symbol table info available.

Platform: Raspberrypi
linux kernel: 5.4.72
Environment: vc4graphics + direct rendering management (DRM) backend

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions