wayland-d

Rémi Thébault remi.thebault at gmail.com
Fri Feb 10 17:56:13 UTC 2017


Hi

Thanks for your hints.

Here is what I get with WAYLAND_DEBUG=1:

from client:
[3998325.807]  -> wl_display at 1.get_registry(new id wl_registry at 2)
[3998325.834]  -> wl_display at 1.sync(new id wl_callback at 3)
message too short, object (2), message error(ous)

from server:
[3998325.858] wl_display at 1.get_registry(new id wl_registry at 2)
[3998325.876]  -> wl_registry at 2.global(1, "wl_compositor", 4)
[3998325.889]  -> wl_registry at 2.global(2, "wl_subcompositor", 1)
.... (other wl_registry.global elided)
[3998326.102] wl_display at 1.sync(new id wl_callback at 3)
[3998326.109]  -> wl_callback at 3.done(187)
[3998326.116]  -> wl_display at 1.delete_id(3)
Unknown OSC escape code 777, text notify;Command
completed;examples/hello/wayland-d_hello

OSC warning comes from weston-terminal, probably not related.

and the output of wayland-tracker:

wayland-tracker: connecting to /run/user/1000/wayland-0
message too short, object (2), message error(ous)
wayland-tracker: client closed socket
wayland-tracker: sigCHLD received
[0.062825s   ]  -> wl_display at 1.sync(new id wl_callback at 3)
[0.062825s   ]  -> wl_display at 1.get_registry(new id wl_registry at 2)
[0.062984s   ] <-  wl_display at 1.delete_id(3)
[0.062984s   ] <-  wl_callback at 3.done(6010)
[0.062984s   ] <-  wl_registry at 2.global(17, "zxdg_importer_v1", 1)
...
[0.062984s   ] <-  wl_registry at 2.global(4, "wl_output", 2)
[0.062984s   ] <-  wl_registry at 2.global(3, "wl_shm", 1)
[0.062984s   ] <-  wl_registry at 2.global(2, "wl_compositor", 3)
[0.062984s   ] <-  wl_registry at 2.global(1, "wl_drm", 2)


It seems that the marshalling is correct, no?

Rémi

2017-02-10 9:14 GMT+01:00 Pekka Paalanen <ppaalanen at gmail.com>:

> On Thu, 9 Feb 2017 08:07:37 +0100
> Rémi Thébault <remi.thebault at gmail.com> wrote:
>
> > 2017-02-09 7:56 GMT+01:00 Rémi Thébault <remi.thebault at gmail.com>:
> >
> > > Hello,
> > >
> > > I've started to build new bindings to Wayland for the D programming
> > > language.
> > > Available at github.com/rtbo/wayland-d. Only client protocol
> supported at
> > > the moment.
> > > I come over an issue when starting to test requests. I wrote a simple
> > > program using the bindings:
> > >
> > > Sorry, premature email shoot! So,
> > I come over an issue when starting to test requests. I wrote a simple
> > program using the bindings:
> >   - connect to display
> >   - get the registry
> >   - roundtrip
> >
> > I suspect wrong marshalling of the request because during roundtrip, this
> > message is printed:
> >
> > message too short, object (2), message error(ous)
> >
> > 2 is the registry id, and "ous" is the signature of wl_display.error.
> > What can possibly go wrong here?
> >
> > Some insights over the bindings:
> >   - I link to libwayland-client for the connection and marshalling code,
> > but not for the main protocol interfaces objects.
> >   - the D scanner create code for initialization of wl_interface
> instances
> > at program startup
> >   - wl_interfaces are wrapped in higher level WlInterface instances which
> > act as Factory objects.
> >   - each protocol interface translates into a wrapper over a wl_proxy
> > object, and requests translates to marshalling calls in
> libwayland-client.
>
> Hi,
>
> a wild guess: wrong args to a marshalling call?
> Or opcode generated wrong?
> Maybe use WAYLAND_DEBUG=1 to see what's going on, and compare both
> server and client side protocol dumps.
>
>
> Thanks,
> pq
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170210/657bfdb8/attachment.html>


More information about the wayland-devel mailing list