wayland-d

Pekka Paalanen ppaalanen at gmail.com
Fri Feb 10 08:14:04 UTC 2017


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 --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170210/7b08f275/attachment.sig>


More information about the wayland-devel mailing list