Skip to content

SIGFPE in /plugins/SpectrumAnalyzer/SaWaterfallView.cpp:207 #8117

@psilhavy

Description

@psilhavy

System Information

Linux pc.localdomain 6.12.49 12 SMP PREEMPT_DYNAMIC Mon Sep 29 09:21:28 CEST 2025 x86_64 AMD Ryzen 5 5500 AuthenticAMD GNU/Linux

LMMS Version(s)

LMMS 1.3.0-alpha.1.895+fcb356d (Linux x86_64, Qt 5.15.16, GCC Clang 18.1.6)

Most Recent Working Version

No response

Bug Summary

During startup I got

Thread 1 "lmms" received signal SIGFPE, Arithmetic exception.
0x00007fa40040f6f9 in lmms::gui::SaWaterfallView::yPixelToTime (
this=0x558c1840ba20, position=148, height=147)
at /usr/src/lmms-master-current/plugins/SpectrumAnalyzer/SaWaterfallView.cpp:207
207 float pixels_per_line = (float)height / m_processor->waterfallHeight();

Expected Behaviour

no SIGFPE

Steps To Reproduce

enable FPE debug
build lmms
w/ new build open lmms project w/ SpectrumAnalyzer

Logs

Click to expand
  (gdb) bt
#0  0x00007fa40040f6f9 in lmms::gui::SaWaterfallView::yPixelToTime(float, int)
    (this=0x558c1840ba20, position=148, height=147)
    at /usr/src/lmms-master-current/plugins/SpectrumAnalyzer/SaWaterfallView.cpp:207
#1  lmms::gui::SaWaterfallView::makeTimeTics[abi:cxx11]()
    (this=this@entry=0x558c1840ba20)
    at /usr/src/lmms-master-current/plugins/SpectrumAnalyzer/SaWaterfallView.cpp:219
#2  0x00007fa40040f444 in lmms::gui::SaWaterfallView::SaWaterfallView(lmms::SaControls*, lmms::SaProcessor*, QWidget*)
    (this=0x558c1840ba20, controls=, processor=0x558c15d435c0, _parent=)
    at /usr/src/lmms-master-current/plugins/SpectrumAnalyzer/SaWaterfallView.cpp:66
#3  0x00007fa400407b1f in lmms::gui::SaControlsDialog::SaControlsDialog(lmms::SaControls*, lmms::SaProcessor*)
    (this=0x558c184073b0, controls=0x558c15d43738, processor=0x558c15d435c0)
    at /usr/src/lmms-master-current/plugins/SpectrumAnalyzer/SaControlsDialog.cpp:335
#4  0x00007fa400404188 in lmms::SaControls::createView() (this=0x558c15d43738)
    at /usr/src/lmms-master-current/plugins/SpectrumAnalyzer/SaControls.cpp:129
#5  0x0000558bf13c8fdb in lmms::gui::EffectView::EffectView(lmms::Effect*, QWidget*) (this=0x558c18402620, _model=0x558c15d43130, _parent=)
--Type  for more, q to quit, c to continue without paging--c
    at /usr/src/lmms-master-current/src/gui/EffectView.cpp:89
#6  0x0000558bf13c7c37 in lmms::gui::EffectRackView::update()
    (this=0x558c158e1b90)
    at /usr/src/lmms-master-current/src/gui/EffectRackView.cpp:176
#7  0x00007fa439d00032 in  () at /usr/lib64/libQt5Core.so.5
#8  0x0000558bf13396ad in lmms::EffectChain::loadSettings(QDomElement const&)
    (this=0x558c0d6d0ac0, _this=)
    at /usr/src/lmms-master-current/src/core/EffectChain.cpp:116
#9  0x0000558bf13837e0 in lmms::SerializingObject::restoreState(QDomElement const&) (this=0x558c15d435c0, element=...)
    at /usr/src/lmms-master-current/src/core/SerializingObject.cpp:71
#10 0x0000558bf1342b4c in lmms::Mixer::loadSettings(QDomElement const&)
    (this=0x558c0d677520, _this=)
    at /usr/src/lmms-master-current/src/core/Mixer.cpp:858
#11 0x0000558bf13837e0 in lmms::SerializingObject::restoreState(QDomElement const&) (this=0x558c15d435c0, element=...)
    at /usr/src/lmms-master-current/src/core/SerializingObject.cpp:71
#12 0x0000558bf134dea9 in lmms::JournallingObject::restoreState(QDomElement const&) (this=0x558c15d435c0, _this=...)
    at /usr/src/lmms-master-current/src/core/JournallingObject.cpp:92
#13 0x0000558bf1387678 in lmms::Song::loadProject(QString const&)
    (this=0x558c0d505d50, fileName=...)
    at /usr/src/lmms-master-current/src/core/Song.cpp:1102
#14 0x0000558bf14b9958 in main(int, char**) (argc=2, argv=)
    at /usr/src/lmms-master-current/src/core/main.cpp:868
(gdb)

Screenshots / Minimum Reproducible Project

No response

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

  • I have searched all existing issues and confirmed that this is not a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions