https://bugs.kde.org/show_bug.cgi?id=516994

            Bug ID: 516994
           Summary: kmail on cosmic compositor is terminated when trying
                    to open a context menu
    Classification: Applications
           Product: kmail2
      Version First 6.6.2
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 190285
  --> https://bugs.kde.org/attachment.cgi?id=190285&action=edit
Log file generated with `WAYLAND_DEBUG=1 kmail &> kmail.log`

SUMMARY

When running kmail on the COSMIC desktop environment, trying to open a context
menu by right-clicking on a message causes kmail to terminate immediately.
Unfortunately, this makes kmail quite unusable under the COSMIC desktop
environment.


STEPS TO REPRODUCE

1. Start the COSMIC desktop environment.
2. Open kmail.
3. In an inbox, select an email message.
4. Right-click on the email message.
5. Watch kmail to be terminated immediately.


OBSERVED RESULT

kmail terminates immediately.


EXPECTED RESULT

kmail should open a context menu.


SOFTWARE/OS VERSIONS

COSMIC desktop environment version:  1.0.8
kmail version: 6.6.2 
Qt Version: 6.10.2


ADDITIONAL INFORMATION

Originally, this started as a bug report for the cosmic-comp compositor,
because back then the right-click on the message in kmail caused the whole
compositor to crash:
https://github.com/pop-os/cosmic-comp/issues/2007#issuecomment-3801886570

Further investigation showed that the error occurred in the wayland backend,
thus I opened a ticket there: https://github.com/Smithay/wayland-rs/issues/865
However, the analysis showed that the bug that had caused the crash had already
been fixed. But kmail was still terminated immediately. Further investigation
showed that kmail exports a popup as toplevel, which violates the wayland
protocol, see
https://github.com/Smithay/wayland-rs/issues/865#issuecomment-3899765954

I have tried to find out more about where the wayland protocol violation is
triggered, but unfortunately I am too unfamiliar with both the kmail code and
the underlying qt code.

I will attach the log file that was created with `WAYLAND_DEBUG=1 kmail &>
kmail.log`. If there is anything else that I can provide, please give me the
corresponding instructions.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to