Drag and drop does not work with the wayland backend #99737
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#99737
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Gentoo Linux
Graphics card: AMD Vega
Blender Version
Broken: master
Worked: -
Short description of error
When dragging and dropping files from outside of Blender, it almost always fails (nothing happens).
See video below. (Drag and dropping into GIMP and other wayland applications seem to work flawlessly)
rec_30.mp4
It seems like Blender does sometimes detect that something is dropped into it as this is printed into the terminal:
I haven't tried any other window manager but Sway. However I think that Blender might be violating the specs here somehow and that is why things are weird.
Here is a blog post from one of the wlroots developers on how the clipboard and drag and drop works in wayland: https://emersion.fr/blog/2020/wayland-clipboard-drag-and-drop/
In the rare case that the drag and drop works, the image in this case is not dropped where the mouse cursor is, but in an other location.
IE the mouse could be in the left corner of the 3D view, but the image is inserted on the right corner instead.
Exact steps for others to reproduce the error
Added subscriber: @ZedDB
Changed status from 'Needs Triage' to: 'Confirmed'
This issue was referenced by
bbf87c4f75
Changed status from 'Confirmed' to: 'Resolved'
Changed status from 'Resolved' to: 'Confirmed'
This seems to still not be fixed.
I've tried it with latest sway master and there seems to work with GTK3 clients, sometimes.
With QT5 clients (pcmanfm-qt) it is still is not working.
I'm guessing that there are some race condition going on as ASAN also regularly shuts down Blender when I try to drag and drop with:
So I'm guessing that there is some non thread safe stuff happening in Blender that makes it sometimes not work and sometimes we get this "use after free" error.
I'm getting a similar "use after free" error when exiting Blender as well.
Fixed
727cc426bc
&a95103f6f4
.Changed status from 'Confirmed' to: 'Resolved'