<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Weston doesn't launch"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=72494">72494</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Weston doesn't launch
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>blocker
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>consommepanchi@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>weston
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hey, bros!
I have been working to launch weston for almost a week, and now, after beating
bazillions of small issues I must admit that I am really frustrated by a new
thing that I cannot best. It's obviously that weston doesn't launch. Why, you
ask? What's the matter? The answer is not so simple.

After running weston --log=filename.txt I got the following output:
------------------------------------------------------------------------
Date: 2013-12-08 CET
[12:01:56.511] weston 1.3.90
               <a href="http://wayland.freedesktop.org/">http://wayland.freedesktop.org/</a>
               Bug reports to:
<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.3.90">https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.3.90</a>
               Build: 1.3.0-286-g1e65840-dirty simple-egl: Add option to allow
not syncing to compositor repaint cycle (2013-12-07 22:26:23 -0800)
[12:01:56.511] OS: Linux, 3.11.0-12-generic, #19-Ubuntu SMP Wed Oct 9 16:20:46
UTC 2013, x86_64
[12:01:56.511] warning: XDG_RUNTIME_DIR "/tmp/weston-runtime-dir" is not
configured
correctly.  Unix access mode must be 0700 but is 755,
and XDG_RUNTIME_DIR must be owned by the user, but is
owned by UID 1000.
Refer to your distribution on how to get it, or
<a href="http://www.freedesktop.org/wiki/Specifications/basedir-spec">http://www.freedesktop.org/wiki/Specifications/basedir-spec</a>
on how to implement it.
[12:01:56.511] Using config file '/home/marcin/.config/weston.ini'
[12:01:56.512] Loading module '/usr/local/lib/weston/drm-backend.so'
[12:01:56.512] initializing drm backend
[12:01:56.512] using /dev/dri/card0
[12:01:56.512] Loading module '/usr/local/lib/weston/gl-renderer.so'
[12:01:56.556] Chosen EGL config details:
               RGBA bits: 8 8 8 0
               swap interval range: 0 - 0
[12:01:56.557] EGL version: 1.4 (DRI2)
[12:01:56.557] EGL vendor: Mesa Project
[12:01:56.557] EGL client APIs: OpenGL OpenGL_ES OpenGL_ES2 
[12:01:56.557] EGL extensions: EGL_MESA_drm_image EGL_WL_bind_wayland_display
               EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
               EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
               EGL_KHR_surfaceless_context EGL_KHR_create_context
               EGL_EXT_buffer_age
[12:01:56.557] GL version: OpenGL ES 3.0 Mesa 9.2.1
[12:01:56.557] GLSL version: OpenGL ES GLSL ES 3.0
[12:01:56.557] GL vendor: nouveau
[12:01:56.557] GL renderer: Gallium 0.4 on NVE4
[12:01:56.557] GL 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_OES_get_program_binary GL_APPLE_texture_max_level
               GL_EXT_discard_framebuffer GL_EXT_read_format_bgra
               GL_NV_fbo_color_attachments GL_OES_EGL_image_external
               GL_OES_vertex_array_object GL_EXT_texture_rg
               GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
               GL_EXT_map_buffer_range GL_OES_depth_texture_cube_map
               GL_EXT_color_buffer_float
[12:01:56.557] GL ES 2 renderer features:
               read-back format: BGRA
               wl_shm sub-image to texture: yes
               EGL Wayland extension: yes
[12:01:56.557] Failed to initialize backlight
[12:01:56.557] EDID data 'IVM', 'PL2377', '111383112041'
[12:01:56.557] Output DVI1, (connector 17, crtc 13)
  mode <a href="mailto:1920x1080@60.0">1920x1080@60.0</a>, preferred, current
  mode <a href="mailto:1600x1200@60.0">1600x1200@60.0</a>
  mode <a href="mailto:1680x1050@59.9">1680x1050@59.9</a>
  mode <a href="mailto:1280x1024@75.0">1280x1024@75.0</a>
  mode <a href="mailto:1280x1024@60.0">1280x1024@60.0</a>
  mode <a href="mailto:1440x900@75.0">1440x900@75.0</a>
  mode <a href="mailto:1440x900@59.9">1440x900@59.9</a>
  mode <a href="mailto:1152x864@75.0">1152x864@75.0</a>
  mode <a href="mailto:1280x720@60.0">1280x720@60.0</a>
  mode <a href="mailto:1024x768@75.1">1024x768@75.1</a>
  mode <a href="mailto:1024x768@70.1">1024x768@70.1</a>
  mode <a href="mailto:1024x768@60.0">1024x768@60.0</a>
  mode <a href="mailto:832x624@74.6">832x624@74.6</a>
  mode <a href="mailto:800x600@75.0">800x600@75.0</a>
  mode <a href="mailto:800x600@72.2">800x600@72.2</a>
  mode <a href="mailto:800x600@60.3">800x600@60.3</a>
  mode <a href="mailto:800x600@56.2">800x600@56.2</a>
  mode <a href="mailto:640x480@75.0">640x480@75.0</a>
  mode <a href="mailto:640x480@72.8">640x480@72.8</a>
  mode <a href="mailto:640x480@66.7">640x480@66.7</a>
  mode <a href="mailto:640x480@60.0">640x480@60.0</a>
  mode <a href="mailto:720x400@70.1">720x400@70.1</a>
[12:01:56.686] launching '/usr/local/libexec/weston-keyboard'
[12:01:56.689] creating a keymap file for 45158 bytes failed: No such file or
directory
[12:01:56.706] failed to create input device '/dev/input/event1'.
[12:01:56.706] input device Power Button, /dev/input/event0 is a keyboard
[12:01:56.706] input device HID 04f3:0103, /dev/input/event2 is a keyboard
[12:01:56.706] input device HID 04f3:0103, /dev/input/event3 is a keyboard
[12:01:56.706] device /dev/input/event4 is a joystick, ignoring
[12:01:56.722] not using input device '/dev/input/event4'.
[12:01:56.722] device /dev/input/event15 is a joystick, ignoring
[12:01:56.734] not using input device '/dev/input/event15'.
[12:01:56.734] input device HP HP Link-5 micro dongle, /dev/input/event5 is a
keyboard
[12:01:56.734] input device HP HP Link-5 micro dongle, /dev/input/event6 is a
pointer caps = relative-motion button
[12:01:56.734] input device HP HP Link-5 micro dongle, /dev/input/event6 is a
keyboard
[12:01:56.734] Loading module '/usr/local/lib/weston/desktop-shell.so'
[12:01:56.734] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
[12:01:56.734] libwayland: using socket /tmp/weston-runtime-dir/wayland-0
[12:01:56.765] launching '/usr/local/libexec/weston-desktop-shell'
[12:01:56.765] libwayland: disconnect from client 0x167dee0
[12:01:56.765] input_method died, respawning...
[12:01:56.765] launching '/usr/local/libexec/weston-keyboard'
[12:01:56.767] libwayland: disconnect from client 0x17d0ed0
[12:01:56.767] /usr/local/libexec/weston-desktop-shell died, respawning...
[12:01:56.767] launching '/usr/local/libexec/weston-desktop-shell'
[12:01:56.767] libwayland: disconnect from client 0x17cd0a0
[12:01:56.767] input_method died, respawning...
[12:01:56.767] launching '/usr/local/libexec/weston-keyboard'
[12:01:56.768] libwayland: disconnect from client 0x17cfb10
[12:01:56.768] /usr/local/libexec/weston-desktop-shell died, respawning...
[12:01:56.768] launching '/usr/local/libexec/weston-desktop-shell'
[12:01:56.769] libwayland: disconnect from client 0x167dee0
[12:01:56.769] input_method died, respawning...
[12:01:56.769] launching '/usr/local/libexec/weston-keyboard'
[12:01:56.769] libwayland: disconnect from client 0x17d0ed0
[12:01:56.769] /usr/local/libexec/weston-desktop-shell died, respawning...
[12:01:56.769] launching '/usr/local/libexec/weston-desktop-shell'
[12:01:56.770] libwayland: disconnect from client 0x17cd0a0
[12:01:56.770] input_method died, respawning...
[12:01:56.770] launching '/usr/local/libexec/weston-keyboard'
[12:01:56.770] libwayland: disconnect from client 0x17cfb10
[12:01:56.770] /usr/local/libexec/weston-desktop-shell died, respawning...
[12:01:56.771] launching '/usr/local/libexec/weston-desktop-shell'
[12:01:56.771] libwayland: disconnect from client 0x167dee0
[12:01:56.771] input_method died, respawning...
[12:01:56.771] launching '/usr/local/libexec/weston-keyboard'
[12:01:56.772] libwayland: disconnect from client 0x17d0ed0
[12:01:56.772] /usr/local/libexec/weston-desktop-shell died, respawning...
[12:01:56.772] launching '/usr/local/libexec/weston-desktop-shell'
[12:01:56.772] libwayland: disconnect from client 0x17cd0a0
[12:01:56.772] input_method died, giving up.
[12:01:56.773] libwayland: disconnect from client 0x17cfb10
[12:01:56.773] /usr/local/libexec/weston-desktop-shell died, giving up.
[12:02:03.780] caught signal: 11
[12:02:03.780] 0: weston (on_caught_signal+0x17) [0x408e87]
[12:02:03.780] 1: /lib/x86_64-linux-gnu/libpthread.so.0 (__restore_rt+0x0)
[0x7f1696162baf]
[12:02:03.780] 2: /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0
(xkb_state_update_key+0x14) [0x7f1696ac9b74]
[12:02:03.781] 3: weston (update_modifier_state+0x36) [0x40ff46]
[12:02:03.781] 4: /usr/local/lib/weston/drm-backend.so (evdev_device_data+0xe4)
[0x7f1695550c74]
[12:02:03.781] 5: /usr/local/lib/libwayland-server.so.0
(wl_event_loop_dispatch+0x62) [0x7f1696fa3cd2]
[12:02:03.781] 6: weston (weston_compositor_read_input+0x12) [0x408312]
[12:02:03.781] 7: /usr/local/lib/libwayland-server.so.0
(wl_event_loop_dispatch+0x62) [0x7f1696fa3cd2]
[12:02:03.781] 8: /usr/local/lib/libwayland-server.so.0 (wl_display_run+0x25)
[0x7f1696fa22e5]
[12:02:03.781] 9: weston (main+0x5e7) [0x4076d7]
[12:02:03.782] 10: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf5)
[0x7f1695dacde5]
[12:02:03.782] 11: weston (_start+0x29) [0x407910]
[12:02:03.782] 12: ? (?+0x29) [0x29]
------------------------------------------------------------------------
I wanted to find a fix, but honestly, I didn't even know what to ask on
Google...
Anyways, the story leading up to this moment is quite long, so I'll spare you
the details, I just want you to know a few crucial things:
1. After running 'sudo weston' I'm getting a completely black screen and after
clicking, or pressing a key on my keyboard weston outputs the above and quits.
2. I actually modified weston to make it work. With the original binary (sudo
apt-get install weston, I'm on Linux Mint 16) I have been constantly getting
the error XDG_RUNTIME_DIR not set and I couldn't resolve it, so I downloaded
the sources from git and where it said char* dir = getenv("XDG_RUNTIME_DIR"); I
entered char* dir = "/tmp/weston-runtime-dir"; and with this it moved forward.
Same happened with wayland.
3. I followed the tutorial on building Wayland and Weston from
wayland.freedesktop.org almost to the letter, with 2 exceptions: I apt-get'ed
most of the dependencies instead of building them from source and while
building mesa I had to add --disable-dri3 as an option to autogen.sh, because I
really couldn't find the goddamn library. Tried to compile it, tried to
apt-get, tried to find it on google, finally somebody said: disable it, nobody
uses it anyways. Well, I hope you guys didn't use it :)
4. I'll be pretty open about this - I'm a total Linux noob. Most of you
probably figured it out at the "I'm on Linux Mint" part :) If the bug I
encountered is pretty obvious to fix and I missed it - sorry, I have really no
idea what to do :)

Please, help me. I'd really like to play around with Weston, maybe modify it
for a bit, create something new... But I'm totally stuck with this.

Regards from Poland
Marcin</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>