Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

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

Open
doylep opened this issue Jun 2, 2020 · 3 comments
Open

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

doylep opened this issue Jun 2, 2020 · 3 comments

Comments

@doylep
Copy link

doylep commented Jun 2, 2020

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

  • Download, build, and run the drag and drop example
  • Click on the drag button and drop on the label on the right. You will see the first two warnings and the error.
  • Click on the drag button again and the program will crash.

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
Copy link
Member

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
Copy link
Author

doylep commented Jun 22, 2020

Thanks! I will do so.

@GuillaumeGomez
Copy link
Member

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants