error reading selection buffer: Operation was cancelled when trying to DND into a GTK3 widget
Steps to reproduce
- Open up the latest gimp-2.99 in a Wayland session (this bug has been there for a while though, so "latest" is very loose here)
- Drag a PNG image from nautilus into the toolbox dock (dropping the image into the main area somehow works, so it really needs to be that dock)
- GTK3 prints a warning, and the drag fails
Current behavior
No crash, but the DnD operation also doesn't do anything
Expected outcome
The image file gets opened by GIMP
Version information
GTK version 3.24.37 (f38)
Additional information
Logs from running gimp-2.99 with WL_DEBUG=1 and grepping for wl_data
(at the suggestion of @garnacho, who thinks this is a bug in GTK, not in GIMP)
[3794453.743] wl_registry@2.global(6, "wl_data_device_manager", 3)
[3794453.750] -> wl_registry@2.bind(6, "wl_data_device_manager", 3, new id [unknown]@11)
[3794488.175] -> wl_data_device_manager@11.get_data_device(new id wl_data_device@24, wl_seat@21)
[3795078.764] wl_data_device@24.data_offer(new id wl_data_offer@4278190080)
[3795078.772] wl_data_offer@4278190080.offer("text/plain")
[3795078.780] wl_data_offer@4278190080.offer("text/plain;charset=utf-8")
[3795078.788] wl_data_device@24.selection(wl_data_offer@4278190080)
[3795579.828] wl_registry@36.global(6, "wl_data_device_manager", 3)
[3795670.323] wl_data_device@24.data_offer(new id wl_data_offer@4278190082)
[3795670.332] wl_data_offer@4278190082.offer("text/plain")
[3795670.339] wl_data_offer@4278190082.offer("text/plain;charset=utf-8")
[3795670.356] wl_data_device@24.selection(wl_data_offer@4278190082)
[3795670.365] -> wl_data_offer@4278190080.destroy()
[3798833.389] wl_data_device@24.data_offer(new id wl_data_offer@4278190081)
[3798833.438] wl_data_offer@4278190081.offer("application/x-gtk-local-dnd")
[3798833.454] wl_data_offer@4278190081.offer("application/vnd.portal.filetransfer")
[3798833.466] wl_data_offer@4278190081.offer("application/vnd.portal.files")
[3798833.479] wl_data_offer@4278190081.offer("text/uri-list")
[3798833.490] wl_data_offer@4278190081.offer("text/plain;charset=utf-8")
[3798833.512] wl_data_offer@4278190081.action(0)
[3798833.528] wl_data_offer@4278190081.source_actions(7)
[3798833.536] wl_data_device@24.enter(35626, wl_surface@38, 771.97656250, 511.70703125, wl_data_offer@4278190081)
[3798833.576] wl_data_device@24.motion(26647629, 771.97656250, 511.70703125)
[3798833.668] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798833.680] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798836.280] wl_data_offer@4278190081.action(1)
[3798836.319] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798836.330] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798840.407] wl_data_device@24.motion(26647636, 703.97656250, 501.70703125)
[3798840.487] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798840.505] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798848.428] wl_data_device@24.motion(26647644, 641.97656250, 487.70703125)
[3798848.477] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798848.488] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798855.967] wl_data_device@24.motion(26647651, 585.97656250, 475.70703125)
[3798856.013] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798856.042] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798863.425] wl_data_device@24.motion(26647659, 517.97656250, 459.70703125)
[3798863.473] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798863.486] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798870.688] wl_data_device@24.motion(26647666, 457.97656250, 443.70703125)
[3798870.769] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798870.786] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798878.502] wl_data_device@24.motion(26647674, 401.97656250, 427.70703125)
[3798878.588] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798878.607] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798893.680] wl_data_device@24.motion(26647689, 335.97656250, 407.70703125)
[3798893.804] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798893.836] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798901.186] wl_data_device@24.motion(26647696, 287.97656250, 393.70703125)
[3798901.365] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798901.415] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798908.967] wl_data_device@24.motion(26647704, 231.97656250, 377.70703125)
[3798909.116] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798909.166] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798916.494] wl_data_device@24.motion(26647711, 191.97656250, 365.70703125)
[3798916.670] -> wl_data_offer@4278190081.set_actions(7, 1)
[3798916.719] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798924.130] wl_data_device@24.motion(26647719, 153.97656250, 351.70703125)
[3798924.522] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798924.582] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798937.185] wl_data_offer@4278190081.action(2)
[3798937.324] wl_data_device@24.motion(26647726, 117.97656250, 341.70703125)
[3798937.528] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798937.579] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798937.761] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798937.811] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798944.446] wl_data_device@24.motion(26647734, 85.97656250, 331.70703125)
[3798944.720] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798944.825] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798947.745] wl_data_device@24.motion(26647741, 61.97656250, 323.70703125)
[3798948.069] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798948.133] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798954.123] wl_data_device@24.motion(26647749, 48.50781250, 319.85937500)
[3798954.348] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798954.401] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798961.987] wl_data_device@24.motion(26647757, 39.41406250, 315.31250000)
[3798962.235] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798962.287] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798969.485] wl_data_device@24.motion(26647764, 36.93359375, 312.83203125)
[3798969.778] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798969.830] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798975.921] wl_data_device@24.motion(26647771, 35.93359375, 312.83203125)
[3798976.156] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798976.207] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3798984.315] wl_data_device@24.motion(26647779, 35.93359375, 311.83203125)
[3798984.614] -> wl_data_offer@4278190081.set_actions(7, 2)
[3798984.667] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799006.133] wl_data_device@24.motion(26647801, 35.93359375, 310.87500000)
[3799006.474] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799006.534] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799021.388] wl_data_device@24.motion(26647816, 35.93359375, 310.01562500)
[3799021.693] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799021.746] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799185.892] wl_data_device@24.motion(26647959, 35.93359375, 309.35546875)
[3799186.093] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799186.123] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799194.457] wl_data_device@24.motion(26647990, 35.93359375, 308.85937500)
[3799194.573] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799194.589] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799200.348] wl_data_device@24.motion(26647996, 36.87109375, 308.85937500)
[3799200.417] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799200.432] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799208.521] wl_data_device@24.motion(26648004, 36.87109375, 307.85937500)
[3799208.718] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799208.741] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799238.907] wl_data_device@24.motion(26648034, 36.87109375, 306.91796875)
[3799239.104] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799239.136] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799246.640] wl_data_device@24.motion(26648042, 37.80859375, 306.91796875)
[3799246.810] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799246.844] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799261.261] wl_data_device@24.motion(26648056, 39.80859375, 305.91796875)
[3799261.561] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799261.613] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799269.392] wl_data_device@24.motion(26648064, 41.80859375, 304.91796875)
[3799269.693] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799269.746] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799276.034] wl_data_device@24.motion(26648071, 42.80859375, 303.91796875)
[3799276.263] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799276.314] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799284.370] wl_data_device@24.motion(26648079, 42.80859375, 302.91796875)
[3799284.673] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799284.727] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799291.916] wl_data_device@24.motion(26648087, 43.80859375, 301.91796875)
[3799292.184] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799292.247] -> wl_data_offer@4278190081.accept(35626, "text/plain;charset=utf-8")
[3799366.751] wl_data_device@24.drop()
[3799366.956] wl_data_device@24.leave()
[3799369.087] -> wl_data_offer@4278190081.accept(35628, "text/uri-list")
[3799369.184] -> wl_data_offer@4278190081.receive("text/uri-list", fd 23)
[3799370.592] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799371.453] -> wl_data_offer@4278190081.set_actions(7, 2)
[3799371.519] -> wl_data_offer@4278190081.finish()
[3799371.553] -> wl_data_offer@4278190081.destroy()
(gimp-2.99:75820): Gdk-WARNING **: 18:20:39.396: ../gdk/wayland/gdkselection-wayland.c:283: error reading selection buffer: Operation was cancelled