malcolmstill / ulubis

A Wayland compositor written in Common Lisp
BSD 3-Clause "New" or "Revised" License
236 stars 19 forks source link

Right-clicking on a weston-terminal window leads to memory fault #31

Closed naryl closed 6 years ago

naryl commented 7 years ago

It's supposed to display a context menu.

naryl commented 7 years ago

It's weston-terminal which crashes.

naryl commented 7 years ago

Here's the relevant part of WAYLAND_DEBUG logs:

[2931322.120] wl_pointer@15.button(0, 1594036, 273, 1)
[2931322.169]  -> wl_compositor@6.create_surface(new id wl_surface@33)
[2931322.186]  -> wl_surface@8.attach(wl_buffer@27, 0, 0)
[2931322.211]  -> wl_surface@8.damage(0, 0, 10, 16)
[2931322.224]  -> wl_surface@8.commit()
[2931322.231]  -> wl_pointer@15.set_cursor(0, wl_surface@8, 1, 1)
[2931322.248]  -> wl_surface@33.set_buffer_scale(1)
[2931322.256]  -> wl_surface@33.set_buffer_transform(0)
[2931322.265]  -> zxdg_shell_v6@11.get_xdg_surface(new id zxdg_surface_v6@23, wl_surface@33)
[2931322.276]  -> zxdg_shell_v6@11.create_positioner(new id zxdg_positioner_v6@24)
[2931322.295]  -> zxdg_positioner_v6@24.set_anchor_rect(441, 227, 1, 1)
[2931322.310]  -> zxdg_positioner_v6@24.set_anchor(5)
[2931322.317]  -> zxdg_positioner_v6@24.set_gravity(10)
[2931322.324]  -> zxdg_surface_v6@23.get_popup(new id zxdg_popup_v6@34, zxdg_surface_v6@13, zxdg_positioner_v6@24)
[2931322.340]  -> zxdg_positioner_v6@24.destroy()
[2931322.347]  -> zxdg_popup_v6@34.grab(wl_seat@7, 0)
[2931322.360]  -> wl_surface@33.commit()
[2931322.803] wl_display@1.error(wl_display@1, 0, "invalid object 24")
malcolmstill commented 7 years ago

Yeah, I still need to implement a chunk of the zxdg protocol. Not currently doing anything in terms of zxdg_positioner for example.