Closed awused closed 7 months ago
This is probably fixed by https://github.com/gtk-rs/gtk4-rs/pull/1672. Can you confirm or provide a minimal testcase to reproduce the problem?
I won't be able to test it myself until late tonight, though I expect that commit has fixed it since it was a pretty straightforward crash.
Manually patched in https://github.com/gtk-rs/gtk4-rs/pull/1672 and it fixes the crash and actually makes the drag and drop work even without a ::value() implementation.
Thanks, will do a release sometime the upcoming weeks.
Bug description
Drag and drop with a ContentProvider that doesn't implement
ContentProviderImpl::value
onto a gtk::Entry in the same process.Backtrace
You can get the backtrace running your program with the environment variable
RUST_BACKTRACE=full
.I added some println debugging locally, and got
Error { domain: g-io-error-quark, code: 15, message: "Cannot provide contents as gchararray" }
as the value ofe
, though that doesn't seem to matter all that much since it's dereferencing a nullerror_ptr
.I worked around it locally by implementing ContentProviderImpl::value(), but there's something wrong with the implementation of content_provider_get_value if it segfaults instead of failing.