gtk-rs / examples

DEPRECATED, use https://github.com/gtk-rs/gtk-rs repository instead!
MIT License
283 stars 76 forks source link

Fatal Crash with Drag and Drop on Mac OS X #311

Open doylep opened 4 years ago

doylep commented 4 years ago

Basic drag and drop functionality causes a crash on Mac OS X. Issue reproduced using the drag_and_drop example from this repository. See the terminal log and backtrace below.

Reproduction

Terminal RUST_BACKTRACE=1 cargo run --verbose --bin drag_and_drop Finished dev [unoptimized + debuginfo] target(s) in 0.27s Running ./drag_and_drop (:31457): Gtk-WARNING : 16:39:21.028: Cannot load drag icon from icon name text-x-generic (:31457): Gtk-WARNING : 16:39:21.028: Cannot load drag icon from icon name text-x-generic (:31457): Gtk-CRITICAL : 16:39:21.029: _cairo_surface_extents: assertion 'surface != NULL' failed Gdk:ERROR:../gdk/quartz/gdkdnd-quartz.c:44:_gdk_quartz_window_drag_begin: assertion failed: (_gdk_quartz_drag_source_context == NULL) Bail out! Gdk:ERROR:../gdk/quartz/gdkdnd-quartz.c:44:_gdk_quartz_window_drag_begin: assertion failed: (_gdk_quartz_drag_source_context == NULL) Abort trap: 6

Backtrace backtrace.txt

GuillaumeGomez commented 4 years ago

I can confirm the bug. I didn't see issue on gtk-rs side so maybe the bug is directly into GDK. I recommend you to open an issue there.

doylep commented 4 years ago

Thanks! I will do so.

GuillaumeGomez commented 4 years ago

👍