Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank green screen - nothing happens, even when a program connects #5

Closed
karatekid430 opened this issue Nov 15, 2018 · 9 comments
Closed

Comments

@karatekid430
Copy link

Enough said.

@eyelash
Copy link
Owner

eyelash commented Nov 15, 2018

What program are you testing with? Can you test with one of the Weston example clients?

@Zeng-Zer
Copy link

Zeng-Zer commented Dec 18, 2018

Same for me, nothing happens, green screen even though the compositor outputs in the terminal:

bind: compositor
bind: wl_shell
bind: seat

Tested with wayland-compositor and wayland-input from the tutorials

With weston-simple-egl:

has EGL_EXT_buffer_age and EGL_EXT_swap_buffers_with_damage
weston-simple-egl: clients/simple-egl.c:439: create_surfaceed.
[1]    11354 abort (core dumped)  weston-simple-egl

@eyelash
Copy link
Owner

eyelash commented Dec 21, 2018

The weston examples currently require the unstable v6 version of the xdg-shell protocol but my compositor only implements an older version of that protocol. A year ago the stable version of the xdg-shell protocol was released and I wanted to update my compositor to that version but I decided to wait until the weston examples were updated to the stable version as well (there's a pull request here) so I could test my compositor against them.
So right now my plan is to wait until that pull request is merged and a new version of weston is released and then update the compositor to that version. Implementing the unstable v6 version of xdg-shell doesn't make sense to me now since I will eventually need to update to the stable version anyway.

@twaik
Copy link

twaik commented Jun 26, 2019

Hi. Can you please fix the issue?

@twaik
Copy link

twaik commented Jun 26, 2019

I have adapted your code for my purposes but it behaves a bit wrong. Can you please help me?

@eyelash
Copy link
Owner

eyelash commented Jul 2, 2019

Unfortunately Debian and Ubuntu are still on version 5.0 of Weston and I need version 6.0 to fix this bug. Right now I don't want to install a different disitribution just to fix this bug.

@twaik

This comment has been minimized.

@eyelash

This comment has been minimized.

@twaik

This comment has been minimized.

@eyelash eyelash closed this as completed in 6255f80 Jul 3, 2019
dwrobel added a commit to dwrobel/tutorials that referenced this issue Nov 28, 2019
 Program received signal SIGSEGV, Segmentation fault.
 xkb_context_ref (ctx=ctx@entry=0x0) at /usr/src/debug/libxkbcommon/0.5.0-r0/libxkbcommon-0.5.0/src/context.c:152
 152	    ctx->refcnt++;
 (gdb) bt
 #0  xkb_context_ref (ctx=ctx@entry=0x0) at /usr/src/debug/libxkbcommon/0.5.0-r0/libxkbcommon-0.5.0/src/context.c:152
 eyelash#1  0xb660efb8 in xkb_keymap_new (ctx=0x0, format=format@entry=XKB_KEYMAP_FORMAT_TEXT_V1, flags=XKB_KEYMAP_COMPILE_NO_FLAGS) at /usr/src/debug/libxkbcommon/0.5.0-r0/libxkbcommon-0.5.0/src/keymap-priv.c:65
 eyelash#2  0xb660ec42 in xkb_keymap_new_from_buffer (ctx=ctx@entry=0x0, buffer=buffer@entry=0xb605c000 "xkb_keymap {\nxkb_keycodes \"evdev-onemw_aliases(qwerty)\" {\n\tminimum = 8;\n\tmaximum = 446;\n\t<ESC>", ' ' <repeats 16 times>, "= 9;\n\t<AE01>", ' ' <repeats 15 times>, "= 10;\n\t<AE02>", ' ' <repeats 15 times>, "= 11;\n\t<AE03>", ' ' <repeats 15 times>, "= 12;\n\t"..., length=48673, format=format@entry=XKB_KEYMAP_FORMAT_TEXT_V1, flags=flags@entry=XKB_KEYMAP_COMPILE_NO_FLAGS) at /usr/src/debug/libxkbcommon/0.5.0-r0/libxkbcommon-0.5.0/src/keymap.c:191
 eyelash#3  0xb660eca2 in xkb_keymap_new_from_string (ctx=0x0, string=0xb605c000 "xkb_keymap {\nxkb_keycodes \"evdev-onemw_aliases(qwerty)\" {\n\tminimum = 8;\n\tmaximum = 446;\n\t<ESC>", ' ' <repeats 16 times>, "= 9;\n\t<AE01>", ' ' <repeats 15 times>, "= 10;\n\t<AE02>", ' ' <repeats 15 times>, "= 11;\n\t<AE03>", ' ' <repeats 15 times>, "= 12;\n\t"..., format=XKB_KEYMAP_FORMAT_TEXT_V1, flags=XKB_KEYMAP_COMPILE_NO_FLAGS) at /usr/src/debug/libxkbcommon/0.5.0-r0/libxkbcommon-0.5.0/src/keymap.c:162
 eyelash#4  0x000094ec in keyboard_keymap ()
 eyelash#5  0xb636f718 in ffi_call_VFP () at ../libffi-3.2.1/src/arm/sysv.S:377
 eyelash#6  0xb636fd2e in ffi_call (cif=cif@entry=0xbefff714, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0xbefff7d4) at /usr/src/debug/libffi/3.2.1-r0/libffi-3.2.1/src/arm/ffi.c:344
 eyelash#7  0xb6630e46 in wl_closure_invoke (closure=closure@entry=0x1be28, flags=flags@entry=1, target=<optimized out>, target@entry=0x1bd58, opcode=opcode@entry=0, data=<optimized out>) at /usr/src/debug/wayland/1.11.0-r0/wayland-1.11.0/src/connection.c:935
 #8  0xb662f1fa in dispatch_event (display=display@entry=0x17378, queue=<optimized out>) at /usr/src/debug/wayland/1.11.0-r0/wayland-1.11.0/src/wayland-client.c:1310
 #9  0xb662fc94 in dispatch_queue (queue=0x173e4, display=0x17378) at /usr/src/debug/wayland/1.11.0-r0/wayland-1.11.0/src/wayland-client.c:1456
 #10 wl_display_dispatch_queue_pending (display=display@entry=0x17378, queue=queue@entry=0x173e4) at /usr/src/debug/wayland/1.11.0-r0/wayland-1.11.0/src/wayland-client.c:1698
 #11 0xb662fd6c in wl_display_dispatch_queue (display=0x17378, queue=0x173e4) at /usr/src/debug/wayland/1.11.0-r0/wayland-1.11.0/src/wayland-client.c:1674
 #12 0xb662ff1c in wl_display_roundtrip_queue (display=0x17378, queue=0x173e4) at /usr/src/debug/wayland/1.11.0-r0/wayland-1.11.0/src/wayland-client.c:1121
 #13 0xb662ff44 in wl_display_roundtrip (display=<optimized out>) at /usr/src/debug/wayland/1.11.0-r0/wayland-1.11.0/src/wayland-client.c:1150
 #14 0xb6ff5d4c in eglGetDisplay (display_id=<optimized out>) at /usr/src/debug/wayland-egl/rdkv-20180926+gitnightly_master_tag_09262018-r0/git/wayland-egl/wayland-egl.c:522
 #15 0x00009a50 in main ()
 (gdb) p ctx
 $1 = (struct xkb_context *) 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants