This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM57X: runWeston quits with trace breakpoint.

Part Number: PROCESSOR-SDK-AM57X


Tool/software: Linux

I am developing a QT based GUI application for a custom hardware based on TI EVM AM572X and the processor SDK I am using for cross compilation is ti-processor-sdk-linux-am57xx-evm-03.03.00.04-Linux-x86-Install.bin.  There are multiple buttons on the GUI application. On random click of the buttons the application quits with the message "Did the WayLand compositor die ? " after intermittent time interval . When I check the display service /usr/bin/runWeston , it has stopped running.

Please kindly help me if there is a version issue of wayland as the version of Wayland being used is 1.9.0. There are no exception caught and thrown from the Qt application.

Thanks and Regards

       vaishnav

  • Hello vaishnav,

    Please, check if there is any error message encountered in /var/log/weston.log and dmesg.

    Best regards,
    Kemal
  • Hello Kemal,

    Thanks for the reply .

    when the display crashes the message I read on the screen is the following

    /usr/bin/runWeston: line 39: 876 Trace/breakpoing trap (core dumped) version --idle-time=0 >> /var/log/weston.log 2>&1

    The following is the weston.log message that I have taken from the path /var/log/weston.log

    Date: 2016-07-08 UTC
    [22:44:58.573] weston 1.9.0
    http://wayland.freedesktop.org
    Bug reports to: bugs.freedesktop.org/enter_bug.cgi
    Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)
    [22:44:58.573] OS: Linux, 4.4.12-g3639bea54a, #98 SMP PREEMPT Tue Jan 10 15:18:55 IST 2017, armv7l
    [22:44:58.574] Using config file '/etc//weston.ini'
    [22:44:58.575] Loading module '/usr/lib/weston/drm-backend.so'
    [22:44:58.586] Output repaint window is 7 ms maximum.
    [22:44:58.586] initializing drm backend
    [22:44:58.592] using /dev/dri/card0
    [22:44:58.594] Loading module '/usr/lib/weston/gl-renderer.so'
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    [22:44:58.624] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
    [22:44:58.632] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
    [22:44:58.632] Retrieving EGL client extension string failed.
    [22:44:58.638] input device 'palmas_pwron', /dev/input/event0 is tagged by udev as: Keyboard
    [22:44:58.638] input device 'palmas_pwron', /dev/input/event0 is a keyboard
    [22:44:58.693] input device 'PenMount PM2203B', /dev/input/event2 is tagged by udev as: Touchscreen
    [22:44:58.693] input device 'PenMount PM2203B', /dev/input/event2 is a touch device
    [22:44:58.695] input device 'gpio_keys', /dev/input/event1 is tagged by udev as: Keyboard
    [22:44:58.695] input device 'gpio_keys', /dev/input/event1 is a keyboard
    [22:44:58.746] EGL version: 1.4 build 1.14@3699939 (MAIN)
    [22:44:58.746] EGL vendor: Imagination Technologies
    [22:44:58.746] EGL client APIs: OpenGL_ES
    [22:44:58.746] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
    EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
    EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
    EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
    EGL_IMG_context_priority EGL_IMG_hibernate_process
    EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
    EGL_KHR_wait_sync EGL_KHR_create_context
    EGL_WL_bind_wayland_display
    [22:44:58.746] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
    [22:44:58.746] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
    [22:44:58.746] GL vendor: Imagination Technologies
    [22:44:58.746] GL renderer: PowerVR SGX 544MP
    [22:44:58.746] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
    GL_OES_vertex_half_float GL_OES_texture_float
    GL_OES_texture_half_float GL_OES_element_index_uint
    GL_OES_mapbuffer GL_OES_fragment_precision_high
    GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
    GL_OES_EGL_image_external GL_OES_required_internalformat
    GL_OES_depth_texture GL_OES_get_program_binary
    GL_OES_packed_depth_stencil GL_OES_standard_derivatives
    GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
    GL_OES_surfaceless_context GL_EXT_discard_framebuffer
    GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
    GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
    GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
    GL_EXT_texture_rg GL_EXT_draw_buffers
    GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
    GL_IMG_texture_compression_pvrtc
    GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
    GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
    GL_IMG_program_binary GL_IMG_uniform_buffer_object
    GL_IMG_multisampled_render_to_texture GL_KHR_debug
    [22:44:58.747] GL ES 2 renderer features:
    read-back format: RGBA
    wl_shm sub-image to texture: no
    EGL Wayland extension: yes
    [22:44:58.747] Chosen EGL config details:
    RGBA bits: 8 8 8 8
    swap interval range: 1 - 1
    [22:44:58.747] cursor buffers unavailable, using gl cursors
    [22:44:58.747] Failed to initialize backlight
    [22:44:58.747] Applying calibration: 1.034964 0.049038 -39.225403 -0.012905 0.996895 -18.463562 (normalized -0.030645 -0.023079)
    [22:44:58.748] Output Unknown-1, (connector 27, crtc 29)
    mode 1280x800@59.8, preferred, current
    mode 1280x800@59.8, preferred
    [22:44:58.748] Compositor capabilities:
    arbitrary surface rotation: yes
    screen capture uses y-flip: yes
    presentation clock: CLOCK_MONOTONIC, id 1
    [22:44:58.749] Loading module '/usr/lib/weston/desktop-shell.so'
    [22:44:58.751] launching '/usr/libexec/weston-keyboard'
    [22:44:58.753] launching '/usr/libexec/weston-desktop-shell'
    [22:46:19.259] caught signal: 11

    Thanks and Regards
    vaishnav
  • The log indicate that the segmentation fault has caught. Can you run your Qt application on your host computer and check how it behaves?
  • The Qt application on my host computer is working fine . My Host machine is ubuntu 14.04 LTS and the display manager used is X11. I have doubt regarding the weston display service.

    Thanks and Regards
    vaishnav
  • Then can you first stop the Weston service /etc/init.d/weston stop and run your Qt application by appending -platform eglfs as well as with -platform linuxfb and check the behaviour trough these backends?

  • Thank you Mr Kemal I had tried running the binary appending the above flag and I am not facing the problem as of now. But is it so that I should not be using weston here after and always run the application using the above flags. Is there any problem with Weston version as such.

    Thanks and Regards
    vaishnav
  • Try to find out, what exactly results that crash.