Skip to content

[MU4 Issue] Segmentation fault on applicationactioncontroller.cpp #15560

Closed

Description

@bagasme

Describe the bug
I'm building MuseScore from latest master (commit d759f29) on Debian 11. After installing all the dependencies and building the program, I do test-run. The program get immediate segfault. Sometimes the segfault happens right after splash screen.

When seeing the core dump in gdb, the culprit is in src/appshell/internal/applicationactioncontroller.cpp at line 130. The line writes:

         if (event->type() == QEvent::Close && watched == mainWindow()->qWindow()) {

To Reproduce
Steps to reproduce the behavior:

  1. Follow the build instructions and configure with configuration as attached.
  2. After the build success and installed, run MuseScore (in my case it is installed as ~/.local/MuseScore/bin/mscore)
  3. There should be Segmentation fault error on terminal.

Expected behavior
MuseScore window opened.

Screenshots
n/a

Platform information

  • OS: Debian 11 with GCC 10.2.1

Additional context

Activity

  1. cbjeukendrup commented on Dec 24, 2022

    @cbjeukendrup
    Contributor

    This must be an issue with your local build; see the logs:

    2022-12-24T20:05:38.116 | ERROR | main_thread | AppShell   | run: error: qrc:/qml/platform/linux/Main.qml:30:1: Type AppWindow unavailable
    
    2022-12-24T20:05:38.116 | ERROR | main_thread | AppShell   | run: error: qrc:/qml/AppWindow.qml:68:5: Type ToolTipProvider unavailable
    
    2022-12-24T20:05:38.116 | ERROR | main_thread | AppShell   | run: error: qrc:/qml/MuseScore/Ui/ToolTipProvider.qml:41:26: Type StyledToolTip unavailable
    
    2022-12-24T20:05:38.116 | ERROR | main_thread | AppShell   | run: error: qrc:/qml/MuseScore/UiComponents/StyledToolTip.qml:23:1: module "QtQuick.Layouts" is not installed
    
    2022-12-24T20:05:38.116 | WARN  | main_thread | Qt         | qrc:/qml/platform/linux/Main.qml:30:1: Type AppWindow unavailable
    2022-12-24T20:05:38.116 | WARN  | main_thread | Qt         | qrc:/qml/AppWindow.qml:68:5: Type ToolTipProvider unavailable
    2022-12-24T20:05:38.116 | WARN  | main_thread | Qt         | qrc:/qml/MuseScore/Ui/ToolTipProvider.qml:41:26: Type StyledToolTip unavailable
    2022-12-24T20:05:38.116 | WARN  | main_thread | Qt         | qrc:/qml/MuseScore/UiComponents/StyledToolTip.qml:23:1: module "QtQuick.Layouts" is not installed
    

    So there are QML errors, and therefore the main window is unexpectedly not created and therefore nullptr.

  2. cbjeukendrup commented on Dec 24, 2022

    @cbjeukendrup
    Contributor

    Some dependencies must be missing. Did you install using the Qt Online Installer (or Qt Maintenance Tool) or using your system's package manager? In the latter case, this might be helpful info: webcamoid/webcamoid#40 (comment) (just a random thing from a very quick internet search)

  3. bagasme commented on Dec 25, 2022

    @bagasme
    Author

    Some dependencies must be missing. Did you install using the Qt Online Installer (or Qt Maintenance Tool) or using your system's package manager? In the latter case, this might be helpful info: webcamoid/webcamoid#40 (comment) (just a random thing from a very quick internet search)

    Missing dependencies installed with the help of your suggestion link, thanks!

    I wonder if Developer's Handbook and/or wiki should be updated mentioning these dependencies. Should I go edit them?

  4. cbjeukendrup commented on Dec 25, 2022

    @cbjeukendrup
    Contributor

    Feel free to add it to the section about using a package manager to install Qt, although that's still not the recommended way.

  5. bagasme commented on Dec 29, 2022

    @bagasme
    Author

    Feel free to add it to the section about using a package manager to install Qt, although that's still not the recommended way.

    OK, thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions