IMX8MQ failed to run weston service

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX8MQ failed to run weston service

Jump to solution
308 Views
Contributor I

log:[20:24:23.513] weston 5.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/iss
               Build: 4.0.0-245-gfb56390-dirty MGS-4627 [#ccc] weston will turn
[20:24:23.513] Command line: /usr/bin/weston --log=/var/log/weston.log --xwaylan
[20:24:23.513] OS: Linux, 4.14.78-g401d2ac-dirty, #28 SMP PREEMPT Wed Jan 15 11:
[20:24:23.514] Using config file '/etc/xdg/weston/weston.ini'
[20:24:23.516] Output repaint window is 16 ms maximum.
[20:24:23.516] Loading module '/usr/lib/libweston-5/drm-backend.so'
[20:24:23.522] initializing drm backend
[20:24:23.528] logind: session control granted
[20:24:23.531] using /dev/dri/card0
[20:24:23.531] DRM: supports universal planes
[20:24:23.531] DRM: supports atomic modesetting
[20:24:23.531] DRM: does not support picture aspect ratio
[20:24:23.532] Loading module '/usr/lib/libweston-5/gl-renderer.so'
[20:24:23.559] EGL client extensions: EGL_EXT_client_extensions
               EGL_EXT_platform_base EGL_KHR_platform_wayland
               EGL_EXT_platform_wayland EGL_KHR_platform_gbm
[20:24:23.565] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap
[20:24:23.565] EGL_KHR_surfaceless_context available
[20:24:23.570] failed to create context

[20:24:23.570] EGL error state: EGL_BAD_ALLOC (0x3003)
[20:24:23.570] EGL error state: EGL_SUCCESS (0x3000)
[20:24:23.570] failed to initialize egl

weston.ini: 

[core]
# i.MX: Disable idle timeout
idle-time=0
#use-g2d=1
gbm-format=argb8888
#backend=wayland-backend.so
[libinput]
touchscreen_calibrator=false
#touchscreen_calibrator=true
[output]
name=LVDS1
mode=1280*700@60

[shell]
#size=1920x1080
size=1280*700

[screen-share]
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --n
- /etc/xdg/weston/weston.ini [Modified] 35/35 100%

Labels (1)
Tags (2)
0 Kudos
1 Solution
184 Views
NXP TechSupport
NXP TechSupport

Hello Cang,

 

What is your bsp version?  weston 5.0 seems very old version. you should update to 5.4.3 BSP it seem everything its normal.However you can use weston debug, which will show you many useful info when app is running, this is how I did it.

killall weston
weston --tty=1 --debug

weston-debug drm-backend

start the application you want to debug for example weston-simple-egl in another terminal

Regards

View solution in original post

3 Replies
185 Views
NXP TechSupport
NXP TechSupport

Hello Cang,

 

What is your bsp version?  weston 5.0 seems very old version. you should update to 5.4.3 BSP it seem everything its normal.However you can use weston debug, which will show you many useful info when app is running, this is how I did it.

killall weston
weston --tty=1 --debug

weston-debug drm-backend

start the application you want to debug for example weston-simple-egl in another terminal

Regards

View solution in original post

184 Views
Contributor I

thank you Bio, I hava enable the debug,below is the result:

root@rsc-5350:~# weston --tty=1 --debug
Date: 2019-02-20 UTC
[20:24:52.443] weston 5.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 4.0.0-245-gfb56390-dirty MGS-4627 [#ccc] weston will turn off when panel-psotion=none and use gplay (2019-03-14 11:30:30 +0800)
[20:24:52.443] Command line: weston --tty=1 --debug
[20:24:52.443] OS: Linux, 4.14.78-g401d2ac-dirty, #28 SMP PREEMPT Wed Jan 15 11:01:46 CST 2020, aarch64
[20:24:52.447] Using config file '/etc/xdg/weston/weston.ini'
[20:24:52.448] Output repaint window is 16 ms maximum.
[20:24:52.448] Loading module '/usr/lib/libweston-5/drm-backend.so'
[20:24:52.452] initializing drm backend
[20:24:52.452] logind: failed to get session seat
[20:24:52.452] logind: cannot setup systemd-logind helper (-61), using legacy fallback
[20:24:52.456] using /dev/dri/card0
[20:24:52.456] DRM: supports universal planes
[20:24:52.456] DRM: supports atomic modesetting
[20:24:52.456] DRM: does not support picture aspect ratio
[20:24:52.456] Loading module '/usr/lib/libweston-5/gl-renderer.so'
[20:24:52.472] EGL client extensions: EGL_EXT_client_extensions
               EGL_EXT_platform_base EGL_KHR_platform_wayland
               EGL_EXT_platform_wayland EGL_KHR_platform_gbm
[     1] HAL user version 6.2.4 build 190076
[     2] HAL kernel version 6.2.4 build 163672
[     3] HAL user version 6.2.4 build 190076
[     4] HAL kernel version 6.2.4 build 163672
[     5] HAL user version 6.2.4 build 190076
[     6] HAL kernel version 6.2.4 build 163672
[     7] HAL user version 6.2.4 build 190076
[     8] HAL kernel version 6.2.4 build 163672
[     9] HAL user version 6.2.4 build 190076
[    10] HAL kernel version 6.2.4 build 163672
[    11] HAL user version 6.2.4 build 190076
[    12] HAL kernel version 6.2.4 build 163672
[    13] HAL user version 6.2.4 build 190076
[    14] HAL kernel version 6.2.4 build 163672
[    15] HAL user version 6.2.4 build 190076
[    16] HAL kernel version 6.2.4 build 163672
[    17] HAL user version 6.2.4 build 190076
[    18] HAL kernel version 6.2.4 build 163672
[    19] HAL user version 6.2.4 build 190076
[    20] HAL kernel version 6.2.4 build 163672
[    21] HAL user version 6.2.4 build 190076
[    22] HAL kernel version 6.2.4 build 163672
[    23] HAL user version 6.2.4 build 190076
[    24] HAL kernel version 6.2.4 build 163672
[    25] HAL user version 6.2.4 build 190076
[    26] HAL kernel version 6.2.4 build 163672
[    27] HAL user version 6.2.4 build 190076
[    28] HAL kernel version 6.2.4 build 163672
[    29] HAL user version 6.2.4 build 190076
[    30] HAL kernel version 6.2.4 build 163672
[    31] HAL user version 6.2.4 build 190076
[    32] HAL kernel version 6.2.4 build 163672
[    33] HAL user version 6.2.4 build 190076
[    34] HAL kernel version 6.2.4 build 163672
[    35] HAL user version 6.2.4 build 190076
[    36] HAL kernel version 6.2.4 build 163672
[    37] HAL user version 6.2.4 build 190076
[    38] HAL kernel version 6.2.4 build 163672
[    39] HAL user version 6.2.4 build 190076
[    40] HAL kernel version 6.2.4 build 163672
[    41] HAL user version 6.2.4 build 190076
[    42] HAL kernel version 6.2.4 build 163672
[    43] HAL user version 6.2.4 build 190076
[    44] HAL kernel version 6.2.4 build 163672
[    45] HAL user version 6.2.4 build 190076
[    46] HAL kernel version 6.2.4 build 163672
[    47] HAL user version 6.2.4 build 190076
[    48] HAL kernel version 6.2.4 build 163672
[    49] HAL user version 6.2.4 build 190076
[    50] HAL kernel version 6.2.4 build 163672
[    51] HAL user version 6.2.4 build 190076
[    52] HAL kernel version 6.2.4 build 163672
[    53] HAL user version 6.2.4 build 190076
[    54] HAL kernel version 6.2.4 build 163672
[    55] HAL user version 6.2.4 build 190076
[    56] HAL kernel version 6.2.4 build 163672
[    57] HAL user version 6.2.4 build 190076
[    58] HAL kernel version 6.2.4 build 163672
[    59] HAL user version 6.2.4 build 190076
[    60] HAL kernel version 6.2.4 build 163672
[    61] HAL user version 6.2.4 build 190076
[    62] HAL kernel version 6.2.4 build 163672
[    63] HAL user version 6.2.4 build 190076
[    64] HAL kernel version 6.2.4 build 163672
[    65] HAL user version 6.2.4 build 190076
[    66] HAL kernel version 6.2.4 build 163672
[    67] HAL user version 6.2.4 build 190076
[    68] HAL kernel version 6.2.4 build 163672
[    69] HAL user version 6.2.4 build 190076
[    70] HAL kernel version 6.2.4 build 163672
[    71] HAL user version 6.2.4 build 190076
[    72] HAL kernel version 6.2.4 build 163672
[    73] HAL user version 6.2.4 build 190076
[    74] HAL kernel version 6.2.4 build 163672
[    75] HAL user version 6.2.4 build 190076
[    76] HAL kernel version 6.2.4 build 163672
[    77] HAL user version 6.2.4 build 190076
[    78] HAL kernel version 6.2.4 build 163672
[    79] HAL user version 6.2.4 build 190076
[    80] HAL kernel version 6.2.4 build 163672
[    81] HAL user version 6.2.4 build 190076
[    82] HAL kernel version 6.2.4 build 163672
[    83] HAL user version 6.2.4 build 190076
[    84] HAL kernel version 6.2.4 build 163672
[    85] HAL user version 6.2.4 build 190076
[    86] HAL kernel version 6.2.4 build 163672
[    87] HAL user version 6.2.4 build 190076
[    88] HAL kernel version 6.2.4 build 163672
[    89] HAL user version 6.2.4 build 190076
[    90] HAL kernel version 6.2.4 build 163672
[    91] HAL user version 6.2.4 build 190076
[    92] HAL kernel version 6.2.4 build 163672
[    93] HAL user version 6.2.4 build 190076
[    94] HAL kernel version 6.2.4 build 163672
[    95] HAL user version 6.2.4 build 190076
[    96] HAL kernel version 6.2.4 build 163672
[    97] HAL user version 6.2.4 build 190076
[    98] HAL kernel version 6.2.4 build 163672
[    99] HAL user version 6.2.4 build 190076
[   100] HAL kernel version 6.2.4 build 163672
[   101] HAL user version 6.2.4 build 190076
[   102] HAL kernel version 6.2.4 build 163672
[   103] HAL user version 6.2.4 build 190076
[   104] HAL kernel version 6.2.4 build 163672
[   105] HAL user version 6.2.4 build 190076
[   106] HAL kernel version 6.2.4 build 163672
[   107] HAL user version 6.2.4 build 190076
[   108] HAL kernel version 6.2.4 build 163672
[   109] HAL user version 6.2.4 build 190076
[   110] HAL kernel version 6.2.4 build 163672
[   111] HAL user version 6.2.4 build 190076
[   112] HAL kernel version 6.2.4 build 163672
[   113] HAL user version 6.2.4 build 190076
[   114] HAL kernel version 6.2.4 build 163672
[   115] HAL user version 6.2.4 build 190076
[   116] HAL kernel version 6.2.4 build 163672
[   117] HAL user version 6.2.4 build 190076
[   118] HAL kernel version 6.2.4 build 163672
[   119] HAL user version 6.2.4 build 190076
[   120] HAL kernel version 6.2.4 build 163672
[   121] HAL user version 6.2.4 build 190076
[   122] HAL kernel version 6.2.4 build 163672
[   123] HAL user version 6.2.4 build 190076
[   124] HAL kernel version 6.2.4 build 163672
[   125] HAL user version 6.2.4 build 190076
[   126] HAL kernel version 6.2.4 build 163672
[   127] HAL user version 6.2.4 build 190076
[   128] HAL kernel version 6.2.4 build 163672
[   129] HAL user version 6.2.4 build 190076
[   130] HAL kernel version 6.2.4 build 163672
[   131] HAL user version 6.2.4 build 190076
[   132] HAL kernel version 6.2.4 build 163672
[   133] HAL user version 6.2.4 build 190076
[   134] HAL kernel version 6.2.4 build 163672
[   135] HAL user version 6.2.4 build 190076
[   136] HAL kernel version 6.2.4 build 163672
[   137] HAL user version 6.2.4 build 190076
[   138] HAL kernel version 6.2.4 build 163672
[   139] HAL user version 6.2.4 build 190076
[   140] HAL kernel version 6.2.4 build 163672
[   141] HAL user version 6.2.4 build 190076
[   142] HAL kernel version 6.2.4 build 163672
[   143] HAL user version 6.2.4 build 190076
[   144] HAL kernel version 6.2.4 build 163672
[   145] HAL user version 6.2.4 build 190076
[   146] HAL kernel version 6.2.4 build 163672
[   147] HAL user version 6.2.4 build 190076
[   148] HAL kernel version 6.2.4 build 163672
[20:24:52.806] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buf[   38.700600] audit: type=1701 audit(1550694293.159:5): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=3685 comm="weston" exe="/usr/bin/weston" sig=11 res=1
fers_with_damage is supported. Performance could be affected.
[20:24:53.137] EGL_KHR_surfaceless_context available
[   149] HAL user version 6.2.4 build 190076
[   150] HAL kernel version 6.2.4 build 163672
[   151] HAL user version 6.2.4 build 190076
[   152] HAL kernel version 6.2.4 build 163672
[   153] HAL user version 6.2.4 build 190076
[   154] HAL kernel version 6.2.4 build 163672
[   155] HAL user version 6.2.4 build 190076
[   156] HAL kernel version 6.2.4 build 163672
[   157] HAL user version 6.2.4 build 190076
[   158] HAL kernel version 6.2.4 build 163672
[   159] HAL user version 6.2.4 build 190076
[   160] HAL kernel version 6.2.4 build 163672
[   161] HAL user version 6.2.4 build 190076
[   162] HAL kernel version 6.2.4 build 163672
[   163] HAL user version 6.2.4 build 190076
[   164] HAL kernel version 6.2.4 build 163672
[   165] HAL user version 6.2.4 build 190076
[   166] HAL kernel version 6.2.4 build 163672
[   167] HAL user version 6.2.4 build 190076
[   168] HAL kernel version 6.2.4 build 163672
[   169] HAL user version 6.2.4 build 190076
[   170] HAL kernel version 6.2.4 build 163672
[   171] HAL user version 6.2.4 build 190076
[   172] HAL kernel version 6.2.4 build 163672
[   173] HAL user version 6.2.4 build 190076
[   174] HAL kernel version 6.2.4 build 163672
[   175] HAL user version 6.2.4 build 190076
[   176] HAL kernel version 6.2.4 build 163672
[20:24:53.139] failed to create context
[20:24:53.139] EGL error state: EGL_BAD_ALLOC (0x3003)
[20:24:53.139] EGL error state: EGL_SUCCESS (0x3000)
[   177] HAL user version 6.2.4 build 190076
[   178] HAL kernel version 6.2.4 build 163672
[   179] HAL user version 6.2.4 build 190076
[   180] HAL kernel version 6.2.4 build 163672
[   181] HAL user version 6.2.4 build 190076
[   182] HAL kernel version 6.2.4 build 163672
[   183] HAL user version 6.2.4 build 190076
[   184] HAL kernel version 6.2.4 build 163672
[20:24:53.139] failed to initialize egl
[   185] HAL user version 6.2.4 build 190076
[   186] HAL kernel version 6.2.4 build 163672
[   187] HAL user version 6.2.4 build 190076
[   188] HAL kernel version 6.2.4 build 163672
[   189] HAL user version 6.2.4 build 190076
[   190] HAL kernel version 6.2.4 build 163672
[   191] HAL user version 6.2.4 build 190076
[   192] HAL kernel version 6.2.4 build 163672
[   193] HAL user version 6.2.4 build 190076
[   194] HAL kernel version 6.2.4 build 163672
[   195] HAL user version 6.2.4 build 190076
[   196] HAL kernel version 6.2.4 build 163672
Segmentation fault (core dumped)

0 Kudos
184 Views
NXP TechSupport
NXP TechSupport

ok, That is a memory issue you will run the DDR stress tool or try to erase and burn again the MX8.

Regards

0 Kudos