Bug 94069 - weston (1.9.92) listener function for opcode 5 of wl_pointer is NULL
Summary: weston (1.9.92) listener function for opcode 5 of wl_pointer is NULL
Status: RESOLVED NOTOURBUG
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-09 22:24 UTC by Hector Oron
Modified: 2016-02-10 10:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Hector Oron 2016-02-09 22:24:25 UTC
When running a hello style application, it aborts in 1.9.92, while it works on 1.9.0 version of Weston.

To be able to reproduce (under weston):

  Configuration

[core]
modules=xwayland.so,cms-colord.so
shell=desktop-shell.so


  git clone https://github.com/hdante/hello_wayland
  cd hello_wayland
  make ; ./hello_wayland

  when cursor goes over the window, it aborts and displays the following message:
  listener function for opcode 5 of wl_pointer is NULL
  Aborted.

  A backtrace:

Program received signal SIGABRT, Aborted.
0xb7fdcc38 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fdcc38 in __kernel_vsyscall ()
#1  0xb7dfced7 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#2  0xb7dfe4a9 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#3  0xb7f9a546 in wl_abort (
    fmt=0xb7f9ae70 "listener function for opcode %u of %s is NULL\n")
    at ../src/wayland-util.c:398
#4  0xb7f99719 in wl_closure_invoke (closure=0x804f418, flags=1, 
    target=0x804fc58, opcode=5, data=0x804f2d0) at ../src/connection.c:946
#5  0xb7f96429 in dispatch_event (display=display@entry=0x804b008, 
    queue=0x804b074) at ../src/wayland-client.c:1274
#6  0xb7f9760d in dispatch_queue (queue=0x804b074, display=0x804b008)
    at ../src/wayland-client.c:1420
#7  wl_display_dispatch_queue_pending (display=0x804b008, queue=0x804b074)
    at ../src/wayland-client.c:1662
#8  0xb7f9782e in wl_display_dispatch_queue (display=0x804b008, 
    queue=0x804b074) at ../src/wayland-client.c:1638
#9  0xb7f9787d in wl_display_dispatch (display=0x804b008)
    at ../src/wayland-client.c:1705
#10 0x08048be6 in main ()


Running a nested weston over gnome-shell x11 user session, leads to:
  1.9.92 aborts
  1.9.0  works

Running weston from a VT
  1.9.92 aborts
  1.9.0  shows a broken cursor, pointer image does not display, but instead a black square box.


An example of what is expected can be found under GIT tree:
  images/hello_wayland_screenshot.png
Comment 1 Daniel Stone 2016-02-10 10:03:20 UTC
That client is broken: https://github.com/hdante/hello_wayland/pull/1

Weston contains a number of sample clients you can use instead: weston-simple-shm to display software-rendered content, weston-simple-egl to display GLES-rendered content, weston-info to display server information, weston-terminal as a terminal, etc etc. Those are much better written, and do work on other compositors as well.


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.