Skip to content

Conversation

@PhysSong
Copy link
Member

Fixes #6587.
This PR reverts #3872 and applies an alternative fix for #3741. In the previous approach, KAcceleratorManager::setNoAccel was called with the MainWindow instance. This, however, leads to a crash in certain cases as reported by #6587.
KXmlGui library registers a startup function for QCoreApplication which may install a KCheckAccelerators global event filter, using KCheckAcceleratorsInitializer. The event filter is supposed to be installed only if the application directly links to KXmlGui, but it was always installed prior to KXmlGui 5.55.0.

The new approach has two advantages:

  • For buggy versions of KXmlGui, it removes the root cause of the issue completely
  • For newer KXmlGui versions, it's effectively doing nothing.

As far as know, CentOS 7, Ubuntu 18.04 and Debian 10 ships with buggy versions of the library. Once all of them gets unsupported, we may entirely remove the workaround.

@PhysSong PhysSong merged commit 158bb50 into LMMS:master Jan 17, 2023
@PhysSong PhysSong deleted the fix-kde-launch-crash branch January 17, 2023 12:56
@Iron-Squid
Copy link

wheeeeeeeee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash with segmentation fault if kwidgetsaddons 5.101.0 is installed

2 participants