weston-desktop-shell failing

Rafał Mielniczuk rafal.mielniczuk2 at gmail.com
Sun Jun 10 11:17:20 PDT 2012


On 10.06.2012 19:00, Bill Spitzak wrote:
> In the newest git version, running under X11 without sudo, it no 
> longer runs weston-desktop-shell. It tries 5 times and then gives up. 
> Other clients such as the terminal works, but they are atop a black 
> background that is never erased as you move windows around.
>
> Running with debug produces the following output:
>
> $ env WAYLAND_DEBUG=1 ./wayland-run.sh
> [: 31: /var/lock: unexpected operator
> [2012-06-10 09:54:23.151] weston 2012-06-10 09:54:23 
> 5740623b38ec050e13be c3a13cc6cf0c30cd8005
> [2012-06-10 09:54:23.151] initializing x11 backend
> [2012-06-10 09:54:23.183] egl vendor: Mesa Project
> [2012-06-10 09:54:23.183] egl extensions: EGL_MESA_drm_image
>   EGL_WL_bind_wayland_display EGL_KHR_image_base EGL_KHR_image_pixmap
>   EGL_KHR_image EGL_KHR_gl_renderbuffer_image EGL_KHR_surfaceless_gles1
>   EGL_KHR_surfaceless_gles2 EGL_KHR_surfaceless_opengl 
> EGL_NOK_swap_region
>   EGL_NOK_texture_from_pixmap EGL_NV_post_sub_buffer
> [2012-06-10 09:54:23.183] gles2 extensions: GL_EXT_blend_minmax
>   GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic
>   GL_EXT_texture_format_BGRA8888 GL_OES_depth24 GL_OES_element_index_uint
>   GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8
>   GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D
>   GL_OES_texture_npot GL_OES_EGL_image GL_OES_depth_texture
>   GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
>   GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
>   GL_OES_EGL_image_external GL_EXT_unpack_subimage GL_NV_draw_buffers
> [2012-06-10 09:54:23.262] x11 output 1024x640, window id 62914567
> [366779.106]  -> wl_display at 1.global(1, "wl_display", 1)
> [366779.281]  -> wl_display at 1.global(2, "wl_compositor", 1)
> [366779.342]  -> wl_display at 1.global(3, "wl_shm", 1)
> [366779.393]  -> wl_display at 1.global(4, "wl_drm", 1)
> [366779.444]  -> wl_display at 1.global(5, "screenshooter", 1)
> [366779.491]  -> wl_display at 1.global(6, "text_cursor_position", 1)
> [366779.537]  -> wl_display at 1.global(7, "wl_data_device_manager", 1)
> [366779.584]  -> wl_display at 1.global(8, "wl_output", 1)
> [366779.631]  -> wl_display at 1.global(9, "wl_seat", 1)
> [366779.679]  -> wl_display at 1.global(10, "wl_shell", 1)
> [366779.725]  -> wl_display at 1.global(11, "desktop_shell", 1)
> [366779.770]  -> wl_display at 1.global(12, "screensaver", 1)
> [2012-06-10 09:54:23.331] libwayland: using socket /var/lock/wayland-0
> [366789.718] wl_display at 1.global(1, "wl_display", 1)
> [366789.850] wl_display at 1.global(2, "wl_compositor", 1)
> [366789.888]  -> wl_display at 1.bind(2, "wl_compositor", 1, new id 2)
> [366789.926] wl_display at 1.global(3, "wl_shm", 1)
> [366789.958]  -> wl_display at 1.bind(3, "wl_shm", 1, new id 3)
> [366789.995] wl_display at 1.global(4, "wl_drm", 1)
> [366790.026] wl_display at 1.global(5, "screenshooter", 1)
> [366790.058] wl_display at 1.global(6, "text_cursor_position", 1)
> [366790.092]  -> wl_display at 1.bind(6, "text_cursor_position", 1, new 
> id 4)
> [366790.130] wl_display at 1.global(7, "wl_data_device_manager", 1)
> [366790.162]  -> wl_display at 1.bind(7, "wl_data_device_manager", 1, new 
> id 5)
> [366790.199] wl_display at 1.global(8, "wl_output", 1)
> [366790.231]  -> wl_display at 1.bind(8, "wl_output", 1, new id 6)
> [366790.270] wl_display at 1.global(9, "wl_seat", 1)
> [366790.302]  -> wl_display at 1.bind(9, "wl_seat", 1, new id 7)
> [366790.342]  -> wl_data_device_manager at 5.get_data_device(new id 8, 
> wl_seat at 7)
> [366790.368] wl_display at 1.global(10, "wl_shell", 1)
> [366790.399]  -> wl_display at 1.bind(10, "wl_shell", 1, new id 9)
> [366790.437] wl_display at 1.global(11, "desktop_shell", 1)
> [366790.468] wl_display at 1.global(12, "screensaver", 1)
> [366790.900]  -> wl_shm at 3.create_pool(new id 10, fd 5, 4096)
> [366791.783]  -> wl_shm_pool at 10.resize(12288)
> [366792.198]  -> wl_shm_pool at 10.resize(28672)
> [366792.922]  -> wl_shm_pool at 10.resize(61440)
> [366799.824]  -> wl_shm_pool at 10.resize(126976)
> [366800.081]  -> wl_shm_pool at 10.resize(258048)
> [366806.146]  -> wl_shm_pool at 10.resize(520192)
> [366816.191]  -> wl_shm_pool at 10.resize(1044480)
> [366864.405]  -> wl_display at 1.bind(8, "wl_output", 1, new id 11)
> [366864.477]  -> wl_display at 1.bind(11, "desktop_shell", 1, new id 12)
> [366864.517]  -> wl_compositor at 2.create_surface(new id 13)
> [366864.536]  -> wl_shell at 9.get_shell_surface(new id 14, wl_surface at 13)
> [366864.575]  -> wl_shell_surface at 14.set_title("panel")
> [366864.598]  -> desktop_shell at 12.set_panel(wl_output at 11, 
> wl_shell_surface at 14)
> [366864.625]  -> wl_compositor at 2.create_surface(new id 15)
> [366864.645]  -> wl_shell at 9.get_shell_surface(new id 16, wl_surface at 15)
> [366864.670]  -> desktop_shell at 12.set_background(wl_output at 11, 
> wl_shell_surface at 16)
> [366864.697]  -> wl_compositor at 2.create_surface(new id 17)
> [366864.715]  -> wl_shell at 9.get_shell_surface(new id 18, wl_surface at 17)
> [366864.741]  -> desktop_shell at 12.set_busy_surface(wl_surface at 17)
> [366883.705] wl_display at 1.bind(2, "wl_compositor", 1, new id 2)
> [366883.817] wl_display at 1.bind(3, "wl_shm", 1, new id 3)
> [366883.884]  -> wl_shm at 3.format(0)
> [366883.911]  -> wl_shm at 3.format(1)
> [366883.938] wl_display at 1.bind(6, "text_cursor_position", 1, new id 4)
> [366884.005] wl_display at 1.bind(7, "wl_data_device_manager", 1, new id 5)
> [366884.066] wl_display at 1.bind(8, "wl_output", 1, new id 6)
> [366884.130]  -> wl_output at 6.geometry(0, 0, 1024, 640, 0, "(null)", 
> "(null)")
> [366884.220]  -> wl_output at 6.mode(3, 1024, 640, 60000)
> [366884.281] wl_display at 1.bind(9, "wl_seat", 1, new id 7)
> [366884.342]  -> wl_seat at 7.capabilities(3)
> [366884.369] wl_data_device_manager at 5.get_data_device(new id 8, 
> wl_seat at 7)
> [366884.410] wl_display at 1.bind(10, "wl_shell", 1, new id 9)
> [366884.483] wl_shm at 3.create_pool(new id 10, fd 20, 4096)
> [366884.555] wl_shm_pool at 10.resize(12288)
> [366884.608] wl_shm_pool at 10.resize(28672)
> [366884.645] wl_shm_pool at 10.resize(61440)
> [366884.680] wl_shm_pool at 10.resize(126976)
> [366884.715] wl_shm_pool at 10.resize(258048)
> [366884.751] wl_shm_pool at 10.resize(520192)
> [366884.786] wl_shm_pool at 10.resize(1044480)
> [366884.824] wl_display at 1.bind(8, "wl_output", 1, new id 11)
> [366884.886]  -> wl_output at 11.geometry(0, 0, 1024, 640, 0, "(null)", 
> "(null)")
> [366884.981]  -> wl_output at 11.mode(3, 1024, 640, 60000)
> [366885.051] wl_display at 1.bind(11, "desktop_shell", 1, new id 12)
> [366885.125] wl_compositor at 2.create_surface(new id 13)
> [366885.175] wl_shell at 9.get_shell_surface(new id 14, wl_surface at 13)
> [366885.248] wl_shell_surface at 14.set_title("panel")
> [366885.288] desktop_shell at 12.set_panel(wl_output at 11, 
> wl_shell_surface at 14)
> [366885.335]  -> desktop_shell at 12.configure(0, wl_shell_surface at 14, 
> 1024, 640)
> [366885.403] wl_compositor at 2.create_surface(new id 15)
> [366885.441] wl_shell at 9.get_shell_surface(new id 16, wl_surface at 15)
> [366885.496] desktop_shell at 12.set_background(wl_output at 11, 
> wl_shell_surface at 16)
> [366885.541]  -> desktop_shell at 12.configure(0, wl_shell_surface at 16, 
> 1024, 640)
> [366885.606] wl_compositor at 2.create_surface(new id 17)
> [366885.642] wl_shell at 9.get_shell_surface(new id 18, wl_surface at 17)
> [366885.689] desktop_shell at 12.set_busy_surface(wl_surface at 17)
> [366886.015] wl_output at 6.geometry(0, 0, 1024, 640, 0, "(null)", "(null)")
> [366886.173] wl_output at 6.mode(3, 1024, 640, 60000)
> [366886.238] wl_seat at 7.capabilities(3)
> [366886.275]  -> wl_seat at 7.get_pointer(new id 19)
> [366886.303]  -> wl_seat at 7.get_keyboard(new id 20)
> [366886.331] desktop_shell at 12.configure(0, wl_shell_surface at 14, 1024, 
> 640)
> [366886.403] desktop_shell at 12.configure(0, wl_shell_surface at 16, 1024, 
> 640)
> [366886.526] wl_seat at 7.get_pointer(new id 19)
> [366886.585] wl_seat at 7.get_keyboard(new id 20)
> [366886.624]  -> wl_shm at 3.create_pool([366886.628]  -> 
> wl_keyboard at 20.keymap(new id 211, , fd 6fd 20, , 262144039939)
> )
> [366886.718]  -> wl_shm_pool at 21.create_buffer(new id 22, 0, 1024, 640, 
> 4096, 0)
> [366897.753]  -> wl_surface at 15.attach(wl_buffer at 22, 0, 0)
> [366897.824]  -> wl_surface at 15.damage(0, 0, 1024, 640)
> [366897.862]  -> wl_buffer at 22.destroy()
> [366898.234]  -> wl_shm_pool at 21.destroy()
> [366898.255]  -> wl_surface at 15.frame(new id 23)
> read error from connection 0x82fae30: Connection reset by peer (104)
> [2012-06-10 09:54:23.499] libwayland: disconnect from client 0x8285ec0
> [2012-06-10 09:54:23.500] weston-desktop-shell died, respawning...
>
> ... this then repeats for all the attempts to run the desktop. I am 
> unsure if the repeats are identical but it seems unlikely they provide 
> more information...
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
I had simillar problem and the thing that crashed was the clock in the 
desktop-shell. I didn't have weston.ini and clock was not created, which 
caused segfault of desktop-shell. I sent patch to mailing list that 
fixes that. It is because clock creation is in the 
"launcher_section_done" handler which is not run, when there is no config.

Rafal



More information about the wayland-devel mailing list