Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rdkshell crashed with SIGSEGV on DRM backend #54

Open
moorthy-bs opened this issue Dec 31, 2020 · 0 comments
Open

rdkshell crashed with SIGSEGV on DRM backend #54

moorthy-bs opened this issue Dec 31, 2020 · 0 comments

Comments

@moorthy-bs
Copy link
Contributor

moorthy-bs commented Dec 31, 2020

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

balav08 pushed a commit to balav08/RDKShell that referenced this issue Jan 7, 2021
Adding return to bool resolves the rdkshell crash issue when compiled
with gcc 9.0 or higher.rdkcentral#54
Enabling wayland display when environment variable WAYLAND_DISPLAY is
set otherwise it will use direct.

Signed-off-by: Balaji Velmurugan <[email protected]>
balav08 pushed a commit to balav08/RDKShell that referenced this issue Jan 8, 2021
Adding return to bool resolves the rdkshell crash issue when compiled
with gcc 9.0 or higher.rdkcentral#54
Enabling wayland display when environment variable WAYLAND_DISPLAY is
set otherwise it will use direct.

Signed-off-by: balav08 <[email protected]>
balav08 pushed a commit to balav08/RDKShell that referenced this issue Jan 8, 2021
Adding return to bool resolves the rdkshell crash issue when compiled
with gcc 9.0 or higher.rdkcentral#54
Enabling wayland display when environment variable WAYLAND_DISPLAY is
set otherwise it will use direct.

Signed-off-by: balav08 <[email protected]>
moorthy-bs pushed a commit to moorthy-bs/RDKShell that referenced this issue Jan 8, 2021
fix for rdkcentral#54

return type of CompositorController::draw() changed to void
as it is not returning any value. Upon having a return type but
no return value, rdkshell encounters segmentation fault while
building it on higher version of gcc

Signed-off-by: Moorthy Baskar <[email protected]>
moorthy-bs pushed a commit to moorthy-bs/RDKShell that referenced this issue Jan 8, 2021
fix for rdkcentral#54

return statement of CompositorController::draw() is missed
as its return type is bool. Upon having a return type but
no return value, rdkshell encounters segmentation fault while
building it on higher version of gcc

Signed-off-by: Moorthy Baskar <[email protected]>
moorthy-bs pushed a commit to moorthy-bs/RDKShell that referenced this issue Jan 15, 2021
fix for rdkcentral#54 rdkshell crash when built from gcc 9.x or higher

return statement of CompositorController::draw() is missed
as its return type is bool. Upon having a return type but
no return value, rdkshell encounters segmentation fault while
building it on higher version of gcc

Signed-off-by: Moorthy Baskar <[email protected]>
mfiess pushed a commit that referenced this issue Jan 19, 2021
fix for #54 rdkshell crash when built from gcc 9.x or higher

return statement of CompositorController::draw() is missed
as its return type is bool. Upon having a return type but
no return value, rdkshell encounters segmentation fault while
building it on higher version of gcc

Signed-off-by: Moorthy Baskar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant