On Fri, 07 Dec 2012 10:39:41 -0800 Bill Spitzak <[email protected]> wrote:
> Okay the newest version does not even run simple-shm for me. I hope > somebody has a hint as to what is wrong and how to fix it, as I am very > interested in wayland development but rather limited as long as I cannot > test any changes! > > I deleted my ~/install directory and managed to build wayland, mesa, and > weston including all the dependencies they needed, running git clean > -xfd in all of them and doing git pull for the newest. It was not able > to build xserver because it needs a new version of xtrans, but I did not > think that was important. > > Running the x11-compositor produces a blue window with red panel, with > correct icons for two terminals, a fallback X for the browser, and a > knob icon, and the date. Also the cursor works. This makes me believe > that a significant amount of code works, including egl. > > However all clients crash. At least previously I was able to get > simple-shm and "flower" to work. With all the debugging symbols here is > what simple-shm prints: > > $ env MESA_DEBUG=1 EGL_LOG_LEVEL=debug LIBGL_DEBUG=verbose > WAYLAND_DEBUG=1 weston/clients/simple-shm > [1030574.667] -> [email protected]_registry(new id wl_registry@2) > [1030574.914] -> [email protected](new id wl_callback@3) > [1030575.141] [email protected]_registry(new id wl_registry@0) > [1030575.310] -> [email protected](1, "wl_display", 1) > [1030575.523] -> [email protected](2, "wl_compositor", 2) > [1030575.725] -> [email protected](3, "screenshooter", 1) > [1030575.923] -> [email protected](4, "text_cursor_position", 1) > [1030576.117] -> [email protected](5, "text_model_factory", 1) > [1030576.311] -> [email protected](6, "wl_data_device_manager", 1) > [1030576.497] -> [email protected](7, "wl_shm", 1) > [1030576.691] -> [email protected](8, "wl_seat", 1) > [1030576.886] -> [email protected](9, "input_method", 1) > [1030577.079] -> [email protected](10, "wl_output", 1) > [1030577.273] -> [email protected](11, "wl_shell", 1) > [1030577.472] -> [email protected](12, "desktop_shell", 1) > [1030577.671] -> [email protected](13, "screensaver", 1) > [1030577.914] -> [email protected](14, "input_panel", 1) > [1030578.106] -> [email protected](15, "workspace_manager", 1) > [1030578.303] -> [email protected](16, "xserver", 1) > [1030578.492] [email protected](new id wl_callback@0) > [1030578.622] -> [email protected](27) > [1030578.718] -> [email protected]_id(3) > [1030578.894] [email protected](1, "wl_display", 1) > [1030579.088] [email protected](2, "wl_compositor", 2) > [1030579.303] -> [email protected](2, "wl_compositor", 1, new id > [unknown]@4) > [1030579.559] [email protected](3, "screenshooter", 1) > [1030579.745] [email protected](4, "text_cursor_position", 1) > [1030579.918] [email protected](5, "text_model_factory", 1) > [1030580.105] [email protected](6, "wl_data_device_manager", 1) > [1030580.278] [email protected](7, "wl_shm", 1) > [1030580.469] -> [email protected](7, "wl_shm", 1, new id [unknown]@5) > [1030580.721] [email protected](8, "wl_seat", 1) > [1030580.894] [email protected](9, "input_method", 1) > [1030581.074] [email protected](10, "wl_output", 1) > [1030581.262] [email protected](11, "wl_shell", 1) > [1030581.440] -> [email protected](11, "wl_shell", 1, new id [unknown]@6) > [1030581.719] [email protected](12, "desktop_shell", 1) > [1030581.907] [email protected](13, "screensaver", 1) > [1030582.043] [email protected](14, "input_panel", 1) > [1030582.173] [email protected](15, "workspace_manager", 1) > [1030582.301] [email protected](16, "xserver", 1) > [1030582.428] [email protected](27) > [1030582.496] [email protected]_id(3) > [1030582.567] -> [email protected](new id wl_callback@3) > [1030582.685] [email protected](2, "wl_compositor", 1, new id > [unknown]@1065353216) > [1030582.878] [email protected](7, "wl_shm", 1, new id [unknown]@150354792) > [1030583.064] -> [email protected](0) > [1030583.133] -> [email protected](1) > [1030583.202] [email protected](11, "wl_shell", 1, new id > [unknown]@150248600) > [1030583.418] [email protected](new id wl_callback@2037147509) > [1030583.523] -> [email protected](27) > [1030583.608] -> [email protected]_id(3) > [1030583.758] [email protected](0) > [1030583.862] [email protected](1) > [1030583.956] [email protected](27) > [1030584.048] [email protected]_id(3) > [1030584.145] -> [email protected]_surface(new id wl_surface@3) > [1030584.241] -> [email protected]_shell_surface(new id > wl_shell_surface@7, wl_surface@3) > [1030584.373] -> [email protected]_title("simple-shm") > [1030584.459] -> [email protected]_toplevel() > [1030584.544] -> [email protected](0, 0, 250, 250) > [1030584.908] -> [email protected]_pool(new id wl_shm_pool@8, fd 5, 250000) > [1030585.125] -> [email protected]_buffer(new id wl_buffer@9, 0, > 250, 250, 1000, 1) > [1030585.477] -> [email protected]() > [09:06:43.920] libwayland: disconnect from client 0x8f657b0 > Bus error (core dumped) FWIW, I have seen a bus error (SIGBUS) before. One way to trigger it is to run out of space on the tmpfs, where your XDG_RUNTIME_DIR points to. Maybe you should check that? I think it needs at least 20-30 MB, to not run out too soon with shm clients, and the more the better. Of course depends quite a lot on whether toytoolkit is mainly using shm or EGL buffers. If you are still on proprietary drivers, it is definitely shm buffers. > Here is what running Wayland prints, note it does not crash and will > exit cleanly when I click the close box on the x11 window: > > -e > Running weston, the example wayland compositor. > Sleeping 3 seconds so the compositor is actually running by the time I > run other stuff. > Date: 2012-12-07 PST > [09:06:31.778] weston 1.0.0 > http://wayland.freedesktop.org/ > Bug reports to: > https://bugs.freedesktop.org/enter_bug.cgi?product=weston > Build: 1.0.0-168-gdb99938 shell: Remove confusing case > fall-through (2012-12-06 22:34:20 -0500) > [09:06:31.779] OS: Linux, 3.2.0-27-generic, #43-Ubuntu SMP Fri Jul 6 > 14:46:35 UTC 2012, i686 > [09:06:31.779] warning: XDG_RUNTIME_DIR "/var/lock" is not configured > correctly. Unix access mode must be 0700 but is 777, > and XDG_RUNTIME_DIR must be owned by the user, but is > owned by UID 0. > Refer to your distribution on how to get it, or > http://www.freedesktop.org/wiki/Specifications/basedir-spec > on how to implement it. > [09:06:31.779] Loading module > '/home/spitzak/install/lib/weston/x11-backend.so' > [09:06:31.783] initializing x11 backend > libEGL debug: Native platform type: x11 (autodetected) Thanks, pq _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
