Bug 50949

Summary: [Regression]weston-desktop-shell died when start weston
Product: Wayland Reporter: ZhaoShengyan <shengyanx.zhao>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: high    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description ZhaoShengyan 2012-06-10 19:00:25 UTC
System Environment:
--------------------------
Arch:     i386
Libdrm:  (master)libdrm-2.4.35-7-g9e0026d35c56374b53a0b3837e24412bc9a4d8c9 
Wayland: (master)dd8891be36ec208a5e8e5dd32c32426713f16877
Mesa:    (master)306c9f0c5762ad75e340d22b2405ac11e74d3378
Xserver: (master)
xorg-server-1.12.0-200-g812786f4d4306cb16f8ed57fa4a1a32bb1d13fe3
Xf86_video_intel: 2.19.0-235-gadc872a9654dc18d778323ca0721704878ad3851
Cairo:   (master) dbc0efad7e565558a3abf7f69d7675efddc4688d
Cairo_gl: (master) 615205cf072935401dac46813b597e70bc8f0a8c
Xkbcommon: (master) 6992de408a890be7bd66f7d829dc84eb9c4b81a6
Weston:  (master) c3a13cc6cf0c30cd80051379b1bc6cabd49cd592
Kernel_unstable: (drm-intel-next-queued)
172cf15d18889313bf2c3bfb81fcea08369274ef

Bug detailed description:
-----------------------------
Start weston, weston desktop can't be started up with the following logs:
 ./weston
[2012-06-11 09:41:14.710] weston 2012-06-11 09:41:14 c3a13cc6cf0c30cd8005 87e4c9354e17037b7a3b
couldn't open /root/.config/weston.ini
[2012-06-11 09:41:14.710] initializing drm backend
[2012-06-11 09:41:14.711] compositor: using new vt /dev/tty7
[2012-06-11 09:41:14.713] using /dev/dri/card0
couldn't open /root/.config/weston.ini
[2012-06-11 09:41:14.722] egl vendor: Mesa Project
[2012-06-11 09:41:14.722] egl extensions: EGL_MESA_drm_image
  EGL_WL_bind_wayland_display EGL_KHR_image_base EGL_KHR_gl_renderbuffer_image
  EGL_KHR_surfaceless_gles1 EGL_KHR_surfaceless_gles2
  EGL_KHR_surfaceless_opengl
[2012-06-11 09:41:14.722] gles2 extensions: GL_EXT_blend_minmax
  GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic
  GL_EXT_texture_compression_dxt1 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_EXT_unpack_subimage GL_NV_draw_buffers
[2012-06-11 09:41:14.766] kms connector 7, crtc 3 at mode 1280x1024@60.0
couldn't open /root/.config/weston.ini
[2012-06-11 09:41:14.812] libwayland: using socket /run/user/root/wayland-0
couldn't open /root/.config/weston.ini
read error from connection 0x8d54ff8: Connection reset by peer (104)
[2012-06-11 09:41:14.912] libwayland: disconnect from client 0x8cbeaa8
[2012-06-11 09:41:14.912] weston-desktop-shell died, respawning...
couldn't open /root/.config/weston.ini
read error from connection 0x8d54ff8: Connection reset by peer (104)
[2012-06-11 09:41:14.937] libwayland: disconnect from client 0x8cfc920
[2012-06-11 09:41:14.937] weston-desktop-shell died, respawning...
couldn't open /root/.config/weston.ini
read error from connection 0x8d54ff8: Connection reset by peer (104)
[2012-06-11 09:41:14.960] libwayland: disconnect from client 0x8cbeaa8
[2012-06-11 09:41:14.960] weston-desktop-shell died, respawning...
couldn't open /root/.config/weston.ini
read error from connection 0x8d54ff8: Connection reset by peer (104)
[2012-06-11 09:41:14.982] libwayland: disconnect from client 0x8cfc920
[2012-06-11 09:41:14.982] weston-desktop-shell died, respawning...
couldn't open /root/.config/weston.ini
read error from connection 0x8d54ff8: Connection reset by peer (104)
[2012-06-11 09:41:15.004] libwayland: disconnect from client 0x8cbeaa8
[2012-06-11 09:41:15.004] weston-desktop-shell died, respawning...
couldn't open /root/.config/weston.ini
read error from connection 0x8d54ff8: Connection reset by peer (104)
[2012-06-11 09:41:15.027] libwayland: disconnect from client 0x8cfc920
[2012-06-11 09:41:15.027] weston-desktop-shell died, giving up.

This issue can be reproduced with both drm and X mode.

Reproduce steps:
----------------------------
1. Start weston.
Comment 1 Scott Moreau 2012-06-10 20:40:16 UTC
Please see the following two posts for the cause and a patch to fix it:

http://lists.freedesktop.org/archives/wayland-devel/2012-June/003959.html
http://lists.freedesktop.org/archives/wayland-devel/2012-June/003951.html
Comment 2 ZhaoShengyan 2012-06-11 18:31:32 UTC
(In reply to comment #1)
> Please see the following two posts for the cause and a patch to fix it:
> http://lists.freedesktop.org/archives/wayland-devel/2012-June/003959.html
> http://lists.freedesktop.org/archives/wayland-devel/2012-June/003951.html

weston-desktop-shell can start up at the lastest version:
Weston:befa65318a06a35d8014879577c0a34060aa30e2
and I saw the commit(Weston:b9e513c6780fc07e80f6627cf8087afdef02f56a) had been included, sorry for not replying you in time. 

However, weston start still with some odd logs even with "Bug resports to": 

./weston
Date: 2012-06-12 CST
[21:07:43.623] weston 0.89
               http://wayland.freedesktop.org/
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=weston
               Build: befa653 compositor: Update grab variable in notify_key() after binding handler. (2012-06-11 18:24:16 -0400)
[21:07:43.624] OS: Linux, 3.4.0-rc6_unstable_20120530+, #1 SMP Wed May 30 15:25:21 CST 2012, x86_64
couldn't open /root/.config/weston.ini
[21:07:43.624] Loading module '/opt/X11R7/lib/weston/drm-backend.so'
[21:07:43.625] initializing drm backend
[21:07:43.625] compositor: using new vt /dev/tty4
[21:07:43.627] using /dev/dri/card0
couldn't open /root/.config/weston.ini
[21:07:43.653] EGL version: 1.4 (DRI2)
[21:07:43.653] EGL vendor: Mesa Project
[21:07:43.653] EGL client APIs: OpenGL OpenGL_ES OpenGL_ES2
[21:07:43.653] EGL extensions: EGL_MESA_drm_image EGL_WL_bind_wayland_display
               EGL_KHR_image_base EGL_KHR_gl_renderbuffer_image
               EGL_KHR_surfaceless_gles1 EGL_KHR_surfaceless_gles2
               EGL_KHR_surfaceless_opengl
[21:07:43.654] GL version: OpenGL ES 2.0 Mesa 8.1-devel (git-e2c08e8)
[21:07:43.654] GLSL version: OpenGL ES GLSL ES 1.0.16
[21:07:43.654] GL vendor: Intel Open Source Technology Center
[21:07:43.654] GL renderer: Mesa DRI Intel(R) 965Q
[21:07:43.654] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
               GL_EXT_texture_filter_anisotropic
               GL_EXT_texture_compression_dxt1 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_EXT_unpack_subimage GL_NV_draw_buffers
[21:07:43.760] kms connector 8, crtc 3 at mode 1280x1024@60.0
[21:07:43.783] Loading module '/opt/X11R7/lib/weston/desktop-shell.so'
couldn't open /root/.config/weston.ini
[21:07:43.785] libwayland: using socket /run/user/root/wayland-0
couldn't open /root/.config/weston.ini
Comment 3 ZhaoShengyan 2012-06-12 22:22:30 UTC
Because the "weston-desktop-shell died when start weston" issue has been settled, and "Bug reports to" bring another issue, Bug 51020:"Weston start with 'Bug reports to'" has been submitted to trace the new issue.

So mark this bug as RESOLVED and FIXED.
Comment 4 ZhaoShengyan 2012-06-12 22:23:18 UTC
Mark the bug as VERIFIED and FIXED.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.