-
Notifications
You must be signed in to change notification settings - Fork 341
Firefox-wayland crash when selection is available or clipboard has contents #1041
Comments
I'd say if a client created to devices it signaled interest twice and this should be a bug on the firefox project and GNOME, not here. |
What strikes me as possibly wrong is that we're using the same gtk_primary_selection_offer (same id) while the call is of |
Hm now I'm thinking a bit more we do the same with the selection |
Oh, yea. If it's new_id it probably allocates a new proxy and could lead to double-free like problems. |
Ok, yea. new_id stuff should probably have unique ids.
Then I correct myself and say we should probably create two offers instead. |
Here is a hacky workaround for this issue. I plan on looking into it more and trying to get a better solution at some point. |
Can this be closed? No crashes in Firefox since early 65 hg. |
No, we're still not handling this properly by sending the same object multiple times when we should allocate different ones, this needs to be fixed. |
When a client was creating multiple data devices for the same seat, we were only creating one resource. This is a protocol error. Instead, create one offer per data device. This commit also makes offers inert when their source is destroyed. Fixes part of swaywm#1041 Supersedes swaywm#1113
When a client was creating multiple data devices for the same seat, we were only creating one resource. This is a protocol error. Instead, create one offer per data device. This commit also makes offers inert when their source is destroyed. Fixes part of swaywm#1041 Supersedes swaywm#1113
This commit makes it possible for a single client to have multiple data devices for the same seat. This fixes issues with Firefox. This mainly removes wlr_data_source.offer. We make sure we create one data offer per device. Fixes the second half of swaywm#1041
This commit makes it possible for a single client to have multiple data devices for the same seat. This fixes issues with Firefox. This mainly removes wlr_data_source.offer. We make sure we create one data offer per device. We now make the offer inert when the source is destroyed. Fixes the second half of swaywm#1041
This commit makes it possible for a single client to have multiple data devices for the same seat. This fixes issues with Firefox. This mainly removes wlr_data_source.offer. We make sure we create one data offer per device. We now make the offer inert when the source is destroyed. Fixes the second half of swaywm#1041
This commit makes it possible for a single client to have multiple data devices for the same seat. This fixes issues with Firefox. This mainly removes wlr_data_source.offer. We make sure we create one data offer per device. We now make the offer inert when the source is destroyed. Fixes the second half of swaywm#1041
I think I need help with this.
Here's the logs on our (rootston) side, because we don't have the last
.selection()
event on FF side as it crashes:Where both selection devices have been created on different wl_seat (logs on ff side this time)
tbh even if it was a single seat it'd probably crash the app just the same to instanciate multiple device managers/selection devices and use them, so not sure we should focus on that part..
So apparently it's not OK to offer up the same selection to multiple devices.
Either we need to instanciate a different
gtk_primary_selection_offer
and offer one each, or we need to pick our poison and give it to one.weston doesn't seem to have a complete selection implementation?
gnome-shell only gives it to one, presumably the latest device manager instanciated.
What shall we do?
The text was updated successfully, but these errors were encountered: