LMMS / LMMS/lmms

SIGFPE - EqFader::updateVuMeters()

Open
#7,346 0 comments 0 reactions 0 assignees View on GitHub
bug master branch
Dominant language
C++
Stars
10.4k
Forks
1.3k
Avg merge
2d 13h
Merged PRs (30d)
7

Description

### System Information

Ubuntu 22.04

### LMMS Version(s)

103614473864a8fcc0347c1aec7657fd3568780d

### Bug Summary

SIGFPE received in project compiled with `cmake .. -DCMAKE_BUILD_TYPE=Debug -DWANT_DEBUG_FPE=ON`

I believe I was trying to switch to an old saved project from another after playing the previous one for a minute or so.

### Steps To Reproduce

This was a stray SIGFPE and I haven't been able to recreate it but the method would be:
Load a project, play it, and then open the demo project (below).

### Logs

SIGFPE - bt full

Thread 1 "lmms" received signal SIGFPE, Arithmetic exception.

lmms::gui::EqFader::updateVuMeters (this=0x5555593d5ec0) at /home/zonkmachine/builds/lmmsold/lmms/build/plugins/Compressor/__/Eq/../../../../../plugins/Eq/EqFader.h:71
71 if( *m_lPeak > opl )
(gdb) bt full
#0 lmms::gui::EqFader::updateVuMeters() (this=0x5555593d5ec0) at /home/zonkmachine/builds/lmmsold/lmms/build/plugins/Compressor/__/Eq/../../../../../plugins/Eq/EqFader.h:71
opl = 0
opr = 0
fallOff = 1.07000005
#1 0x00007fff7833f40c in lmms::gui::EqFader::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x5555593d5ec0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffffffb730)
at /home/zonkmachine/builds/lmmsold/lmms/build/plugins/Compressor/__/Eq/moc_EqFader.cpp:72
_t = 0x5555593d5ec0
#2 0x00007ffff6f477c8 in () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3 0x00005555558129e3 in lmms::gui::MainWindow::periodicUpdate() (this=0x55555654de70) at /home/zonkmachine/builds/lmmsold/lmms/build/src/lmmsobjs_autogen/DGKZTCOIDE/moc_MainWindow.cpp:319
#4 0x00005555559b592e in lmms::gui::MainWindow::timerEvent(QTimerEvent*) (this=0x55555654de70, _te=0x7fffffffb910) at /home/zonkmachine/builds/lmmsold/lmms/src/gui/MainWindow.cpp:1356

### Minimum Reproducible Project

The project used was equivalent to the demo from https://github.com/LMMS/lmms/issues/7340 : [compressor-sigfpe.mmp.txt](https://github.com/user-attachments/files/15945741/compressor-sigfpe.mmp.txt)

### Please search the issue tracker for existing bug reports before submitting your own.

- [X] I have searched all existing issues and confirmed that this is not a duplicate.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at plugins/Eq/EqFader.h line 71 and trace how updateVuMeters() is invoked through MainWindow.cpp. Use the supplied compressor-sigfpe.mmp.txt project with a Debug build and WANT_DEBUG_FPE enabled, then investigate the reported arithmetic exception while switching projects. Done means the described project-loading and playback sequence no longer produces SIGFPE.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.