Menu

#1234 sigsegv when playing anything with projectm

New
nobody
None
Medium
projectM
Review
2 days ago
2026-08-01
Jkkt Bkkt
No

Trying to use projectM v4 on linux (specifically 4.1.7) results in a segmentation fault for me. I've tried using 4.0.0 but that was unsuccessful as well, it still didn't render anything, but didn't crash qmmp itself.
The backtrace of me running 4.1.7 is attached.

I've tried applying the QOpenGLFunctions_2_0 diff — commit #13070 and setting ENABLE_SYSTEM_GLM=ON or =OFF for projectM, but neither (nor both) seemed to change anything.

Since I thought the issue is in projectM (though the same build works with fooyin and clementine for me), I contacted projectM developers via discord. Here's what they had to say (2nd attachment)

For context, I'm using Void Linux, KDE 6.6.3, QT 6.11.1, KDE Frameworks 6.25.0, and trying to make a versioned package for projectM v4 (and noticed our build of qmmp's projectM plugin isn't working — neither the previous 3.1.2 version, nor the v4's I've tried)

P.S. I'm not competent enough to solve this on my own and am sorry if the messages from projectM developer end up being useless.

2 Attachments

Discussion

  • Jkkt Bkkt

    Jkkt Bkkt - 2026-08-02

    I was able to query the OpenGL profile via the v3 syntax and got "compatibility profile" with this in ProjectM4Widget::initializeGL

    GLint flags;
    glGetIntegerv(GL_CONTEXT_FLAGS, &flags);
    if (flags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT) {
        std::cout << "Core profile" << std::endl;
    } else {
        std::cout << "Compatibility profile" << std::endl;
    }
    

    glxinfo/eglinfo report supported profiles: core 4.6 and ES 3.2 (on multiple hardware and software devices, including nvidia dedicated card, intel integrated card, llvmpipe and swrast)

    I then rebuilt projectM 4.1.7 with ENABLE_GLES=ON and now qmmp doesn't crash and doesn't show any error either, just
    [debug]: Visual::createVisualization: added visualization: "projectm"
    However, the window of projectM in qmmp is still fully blank and no visualizations appear. I made sure my presets are in /usr/share/projectM/presets too, a lot of them actually.

    These were done with both ENABLE_SYSTEM_GLM = ON and = OFF, didn't seem to affect the result.

     
  • trialuser02

    trialuser02 - 2 days ago

    I have added a fix for this issue in the svn/trunk. Please, test it.
    If you are using projectM with OpenGL ES and plugin does not work, try to compile Qmmp with the following option option:
    -DPROJECTM_FORCE_GLES=ON

     

Log in to post a comment.