Drag and Drop not working in Qt-Applications on Gnome 44

Bug #2013235 reported by Peng
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Kdenlive
Invalid
High
Mutter
Fix Released
Unknown
OpenShot Video Editor
New
Undecided
Unassigned
mutter (Ubuntu)
Fix Released
Medium
Unassigned
Lunar
Fix Released
Medium
Jeremy Bícha

Bug Description

Impact
======
Drag and drop items within Qt applications not working since upgrade to Ubuntu Lunar developmental release. The items can be picked up then the cursor changed to the "forbid" sign and no further interaction to the app.

Confirmed affected apps: 3d Slicer, Krita.

Test Case
=========
1. Start from Ubuntu 23.04 (the default desktop not KDE or Kubuntu)
2. Open a terminal and run
sudo apt install krita
3. Install the updated mutter packages then log out and log back in.
4. Run Krita
5. Click New File. Then click Create
6. Select the rectangle from the left sidebar. Draw a rectangle on the canvas.
7. In the menu, select Layer > New > Add Paint Layer
8. Select the ellipse/circle from the left sidebar. Draw an ellipse on the canvas.
9. In the right sidebar, drag Paint Layer 1 on top of Paint Layer 2 so that they switch places. This should work with the updated mutter packages but does not work with mutter 44.0 or mutter 44.1.

What Could Go Wrong
===================
This fix is included in the upstream mutter 44.2 release so see the master bug for that update: https://launchpad.net/bugs/2022951

Peng (pengwg)
tags: added: lunar
Peng (pengwg)
description: updated
tags: added: dnd
Changed in mutter (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Changed in mutter:
status: Unknown → New
Revision history for this message
LeDucDuBleuet (eleduc) wrote :

Mixxx DJ mixing software is also affected.

Revision history for this message
In , Diz-garcia (diz-garcia) wrote :

Created attachment 158469
This is it in a nutshell .. from another user having the same exact issue

SUMMARY

I am unable to drag and drop ANY clip from the project bin into the Timeline. the required video and audio tracks are present, none of the tracks are locked, and prior to My current 23.04 update on both kdenlive and Ubuntu a few days ago, everything was working fine. i also tried installing the ubuntu kdenlive 22.12.03 version AND the 23.04 App-images and the Problem still persists. and i have no idea what the issue is.

***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

STEPS TO REPRODUCE
1. happens on all projects both old and Brand new projects
2.
3.

OBSERVED RESULT
cant drag and drop any clips to the timeline

EXPECTED RESULT
cannot edit any projects because i can't get access to any of the clips from the project bin

SOFTWARE/OS VERSIONS
Windows:
macOS:
Linux/KDE Plasma: Ubuntu 23.04
(available in About System)
KDE Plasma Version:
KDE Frameworks Version:
Qt Version:

ADDITIONAL INFORMATION
the only work around to being able to work on my projects is to use the V shortcut on the clips in the timeline, but working this way will make the whole process longer due to the clip being inserted and automatically cutting all the other clips in the project to make space for it. this minor issue can make things a headache when dealing with a large project with multiple clips because things will be moved around unintentionally unless I find an empty space in the whole project JUST to add the clip in then have to manually move the clip to the position i want it in.

*** attached is a screencast from another user with the same exact issue i am reporting on

Revision history for this message
In , Fritzibaby (fritzibaby) wrote :

Thank you for reporting. Seems to be similar to Bug 468962.

Revision history for this message
Peng (pengwg) wrote (last edit ):

It looks like fixed upstream. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2978

Looking forward to being pulled and built on launchpad.

Changed in mutter:
status: New → Fix Released
tags: added: fixed-in-mutter-44.2 fixed-upstream
Changed in mutter (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
In , Jean-Baptiste Mardelle (jb-kdenlive) wrote :

Thanks for your report. I cannot reproduce the issue, so will need more infos to debug this. I need to understand if this is only related to the project bin, to the timeline or if all drag and drop operations are affected. Can you please do the following tests:

1. Can you drag a clip from the clip monitor into timeline ?
2. Can you drag a video clip from your file manager directly into timeline ?
3. Can you drag an effect (from the effects list) onto a clip in timeline ?

Thanks in advance for your feedback

Revision history for this message
In , Ponslleida-8 (ponslleida-8) wrote :

Created attachment 158722
attachment-1487321-0.html

Hello

Yes, that is correct.

1.- Can't be added clip monitor into timeline
2.- Can be added from file manager into timeline.
3.- Can't added an effect from effect lists into timeline

By file mail i go to send a video bug demonstration.

thanks.

Lluís Pons

El 5/5/23 a les 6:20, Jean-Baptiste Mardelle ha escrit:
> https://bugs.kde.org/show_bug.cgi?id=469029
>
> Jean-Baptiste Mardelle<email address hidden> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|CONFIRMED |NEEDSINFO
> Resolution|--- |WAITINGFORINFO
>
> --- Comment #2 from Jean-Baptiste Mardelle<email address hidden> ---
> Thanks for your report. I cannot reproduce the issue, so will need more infos
> to debug this. I need to understand if this is only related to the project bin,
> to the timeline or if all drag and drop operations are affected. Can you please
> do the following tests:
>
>
> 1. Can you drag a clip from the clip monitor into timeline ?
> 2. Can you drag a video clip from your file manager directly into timeline ?
> 3. Can you drag an effect (from the effects list) onto a clip in timeline ?
>
> Thanks in advance for your feedback
>

Revision history for this message
In , 5-james-s (5-james-s) wrote :

Another user with the same issue. See this thread on KDE Discuss for users with the same issue; all using GNOME: https://discuss.kde.org/t/cannot-drag-and-drop-any-clip-from-project-bin-to-timeline/1113/10

In turn, this forum points back to GNOME's bugtracker: https://gitlab.gnome.org/GNOME/mutter/-/issues/2715

I can reproduce it on my GNOME 44 X11 desktop, but not Sway.

Revision history for this message
In , 5-james-s (5-james-s) wrote :

Had another computer to test this on—GNOME 44 running Wayland. Drag-and-drop works on this one. All computers running Arch Linux.

Revision history for this message
In , Ponslleida-8 (ponslleida-8) wrote :

Kdenlive 23.04.0 I work fine in Ubuntu 22.04.02 but not in Ubuntu 23.04.
Ubuntu 22.04 is an official stable release, but 23.04 is a non-stable pre-beta release.
Now I am working on a laptop with Ubuntu 22.04, and another tower with Ubuntu 22.04 and I stopped working with the computer running ubuntu 23.04, on which I will install the stable version of Ubuntu 22.04, but first I will wait some time to see if the problem can be fixed.

Revision history for this message
In , Fritzibaby (fritzibaby) wrote :

Please try with the AppImage on Ubuntu 23.04 to see if the issue still occurs.

Revision history for this message
In , Myaccount132 (myaccount132) wrote :

I have similar problems with digikam appimage, so it seems that this is more general issue. https://bugs.kde.org/show_bug.cgi?id=469961

Revision history for this message
In , Fritzibaby (fritzibaby) wrote :

There seems to be an issue on the AppImage (dependency, QT desktop setting?). I tried to run the AppImage inside a Lubuntu VM on Windows. The AppImage only get to the flashscreen with an error message but Kdenlive Flatpak is running. On another Windows machine with the same Lubuntu VM the AppIamge starts.

Revision history for this message
In , Myaccount132 (myaccount132) wrote :

This is possibly more general problem. Fix is possibly not yet in Ubuntu, but building mutter from source is reported to work. See discussion in yet another program it affects: https://github.com/OpenShot/openshot-qt/issues/5221

Changed in kdenlive:
importance: Unknown → High
status: Unknown → Incomplete
Revision history for this message
In , Jean-Baptiste Mardelle (jb-kdenlive) wrote :

*** Bug 470255 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jean-Baptiste Mardelle (jb-kdenlive) wrote :

As reported, this is caused by a bug in mutter affecting all Qt Apps:
https://gitlab.gnome.org/GNOME/mutter/-/issues/2715

Revision history for this message
In , Jean-Baptiste Mardelle (jb-kdenlive) wrote :

*** This bug has been marked as a duplicate of bug 469961 ***

Changed in kdenlive:
status: Incomplete → Invalid
Revision history for this message
Didier L (l-farquaad) wrote :
Jeremy Bícha (jbicha)
Changed in mutter (Ubuntu Lunar):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Jeremy Bícha (jbicha)
Jeremy Bícha (jbicha)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 44.2-1ubuntu1

---------------
mutter (44.2-1ubuntu1) mantic; urgency=medium

  * Merge with Debian. Remaining changes:
    - Add x11-Add-support-for-fractional-scaling-using-Randr.patch
    - Add window-Add-ability-to-override-the-edge-constraints.patch
      + Make possible for extensions (such as Tiling Assistant) to override
        window constraints

mutter (44.2-1) experimental; urgency=medium

  [ Jeremy Bícha ]
  * New upstream release (LP: #2022951)
    - Fix drag and drop for Qt applications (LP: #2013235)
  * Drop display-Set-compositor-selection-earlier patch: applied in new release
  * Try dropping 2 of our flaky tests patches

  [ Daniel van Vugt ]
  * Update triple buffering patch to avoid NULL dereference on resume
    from suspend (LP: #2020652)

 -- Jeremy Bícha <email address hidden> Mon, 05 Jun 2023 12:48:09 -0400

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
Jeremy Bícha (jbicha)
Changed in mutter (Ubuntu Lunar):
status: Triaged → In Progress
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Peng, or anyone else affected,

Accepted mutter into lunar-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mutter/44.2-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-lunar to verification-done-lunar. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-lunar. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in mutter (Ubuntu Lunar):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-lunar
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (mutter/44.2-0ubuntu1)

All autopkgtests for the newly accepted mutter (44.2-0ubuntu1) for lunar have finished running.
The following regressions have been reported in tests triggered by the package:

mutter/44.2-0ubuntu1 (armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/lunar/update_excuses.html#mutter

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Jeremy Bícha (jbicha) wrote :

I successfully completed the Test Case with mutter 44.2-0ubuntu1 on Ubuntu 23.04.

The autopkgtest has also passed now.

tags: added: verification-done verification-done-lunar
removed: verification-needed verification-needed-lunar
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 44.2-0ubuntu1

---------------
mutter (44.2-0ubuntu1) lunar; urgency=medium

  [ Jeremy Bícha ]
  * New upstream release (LP: #2022951)
    - Fix drag and drop for Qt applications (LP: #2013235)
  * Drop display-Set-compositor-selection-earlier patch: applied in new release
  * Drop 2 flaky tests patches: no longer necessary

  [ Daniel van Vugt ]
  * Update triple buffering patch to avoid NULL dereference on resume
    from suspend

 -- Jeremy Bícha <email address hidden> Wed, 07 Jun 2023 10:46:02 -0400

Changed in mutter (Ubuntu Lunar):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for mutter has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.