Skip to content

Instantly share code, notes, and snippets.

@zonkmachine
zonkmachine / releaseframes.md
Last active May 12, 2018 20:04
InstrumentSoundShaping::releaseFrames

gdb ./lmms core

Segmentation fault (core dumped)
zonkmachine@zonkmachine:~/builds/lmms/lmms/build$ gdb ./lmms core 
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
...
Core was generated by `./lmms'.
Program terminated with signal SIGSEGV, Segmentation fault.
@zonkmachine
zonkmachine / issue-4342.md
Last active May 13, 2018 21:17
LMMS arpeggiator trouble shooting

Cut out from LMMS/lmms#4342 (comment)

commit 67e93710d25a1e12e2c78fb1459d82e6d9bca42a
Author: Lukas W <lukaswhl@gmail.com>
Date:   Mon Aug 29 13:56:04 2016 +0200

    TempoSyncKnobModel: Fix loadSettings order (syncmode takes precedence)

diff --git a/src/core/TempoSyncKnobModel.cpp b/src/core/TempoSyncKnobModel.cpp
@zonkmachine
zonkmachine / mixercrash.diff
Created November 20, 2017 01:19
mixercrash
diff --git a/src/core/FxMixer.cpp b/src/core/FxMixer.cpp
index 5ac2363..0f69c7f 100644
--- a/src/core/FxMixer.cpp
+++ b/src/core/FxMixer.cpp
@@ -252,7 +252,8 @@ void FxMixer::deactivateSolo()
void FxMixer::toggledSolo()
{
int soloedChan = -1;
- bool resetSolo = m_lastSoloed != -1;
+ bool resetSolo = ( m_lastSoloed >= 0 ) && ( m_lastSoloed < m_fxChannels.size() );
@zonkmachine
zonkmachine / blankpattern.mmp
Last active November 17, 2017 03:24
Lmms project with a pattern that was 'incomplete'. Cloned project turned up blank as did this saved project.
<?xml version="1.0"?>
<!DOCTYPE lmms-project>
<lmms-project version="1.0" creator="LMMS" creatorversion="1.2.0-rc49.11" type="song">
<head timesig_numerator="4" mastervol="100" timesig_denominator="4" bpm="140" masterpitch="0"/>
<song>
<trackcontainer width="618" x="5" y="5" maximized="0" height="323" visible="1" type="song" minimized="0">
<track muted="0" type="0" name="TripleOscillator" solo="0">
<instrumenttrack pan="0" fxch="0" usemasterpitch="1" pitchrange="1" pitch="0" basenote="57" vol="22.2">
<instrument name="tripleoscillator">
<tripleoscillator phoffset2="0" userwavefile0="" finer0="0" userwavefile1="" finer1="0" userwavefile2="" finer2="0" coarse0="0" coarse1="-12" coarse2="-24" finel0="0" finel1="0" modalgo1="2" modalgo2="2" finel2="0" pan0="0" modalgo3="2" pan1="0" stphdetun0="0" pan2="0" stphdetun1="0" wavetype0="0" stphdetun2="0" wavetype1="0" wavetype2="0" vol0="33" vol1="33" phoffset0="0" phoffset1="0" vol2="33"/>
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000062e0ea in NotePlayHandle::setFrequencyUpdate (this=0x81) at /home/zonkmachine/builds/lmms/lmms/include/NotePlayHandle.h:263
263 m_frequencyNeedsUpdate = true;
(gdb) bt
#0 0x000000000062e0ea in NotePlayHandle::setFrequencyUpdate (this=0x81) at /home/zonkmachine/builds/lmms/lmms/include/NotePlayHandle.h:263
#1 0x00000000006270a1 in InstrumentTrack::updateBaseNote (this=0x7fce29e77620) at /home/zonkmachine/builds/lmms/lmms/src/tracks/InstrumentTrack.cpp:543
#2 0x000000000062710a in InstrumentTrack::updatePitch (this=0x7fce29e77620) at /home/zonkmachine/builds/lmms/lmms/src/tracks/InstrumentTrack.cpp:552
#3 0x000000000063f89f in InstrumentTrack::qt_static_metacall (_o=0x7fce29e77620, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffe6625550)
at /home/zonkmachine/builds/lmms/lmms/build/src/moc_InstrumentTrack.cpp:68
#4 0x00007fce35cf187a in QMetaObject::activate (sender=0x7fce29e78898, m=<optimized out>, local_signal_index=<opt
Segmentation fault (core dumped)
zonkmachine@zonkmachine:~/builds/lmms/lmms/build$ gdb ./lmms core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
...
Reading symbols from ./lmms...done.
[New LWP 25825]
[New LWP 25826]
[New LWP 25828]
[New LWP 25830]
[New LWP 25829]
@zonkmachine
zonkmachine / backtraces.txt
Created March 14, 2017 12:16
ReverbSC - Backtraces
zonkmachine@zonkmachine:~/builds/lmms/lmms/build$ gdb ./lmms core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
...
[New LWP 31734]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./lmms -r /home/zonkmachine/lmms/projects/buggar/reverbtest/tick/tick.mmp -o te'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f7e85edf79a in sp_revsc_compute (sp=0x1596250, p=0x1522ff0, in1=0x7f7e5d78ab40, in2=0x7f7e5d78ab44, out1=0x7f7e5d78ab20, out2=0x7f7e5d78ab24)
at /home/zonkmachine/builds/lmms/lmms/plugins/ReverbSC/revsc.c:201
@zonkmachine
zonkmachine / reverbfix.diff
Created March 9, 2017 12:51
Fix ReverbSC low frequencies cutting out when exporting with oversampling
diff --git a/plugins/ReverbSC/ReverbSC.cpp b/plugins/ReverbSC/ReverbSC.cpp
index e5d397c..4d938eb 100644
--- a/plugins/ReverbSC/ReverbSC.cpp
+++ b/plugins/ReverbSC/ReverbSC.cpp
@@ -58,8 +58,8 @@ ReverbSCEffect::ReverbSCEffect( Model* parent, const Descriptor::SubPluginFeatur
sp_dcblock_create(&dcblk[0]);
sp_dcblock_create(&dcblk[1]);
- sp_dcblock_init(sp, dcblk[0]);
- sp_dcblock_init(sp, dcblk[1]);
@zonkmachine
zonkmachine / bt full
Created January 18, 2017 23:50
Master Pitch, crash probing issue #2612
(gdb) bt full
#0 0x00000000004e75cf in AutomatableModel::value<bool> (this=0x0, frameOffset=0) at /home/zonkmachine/builds/lmms/lmms/include/AutomatableModel.h:134
No locals.
#1 0x00000000004e727e in BoolModel::value (this=0x0, frameOffset=0) at /home/zonkmachine/builds/lmms/lmms/include/AutomatableModel.h:443
No locals.
#2 0x00000000005de11d in AutomatableButton::toggle (this=0x35f4a30) at /home/zonkmachine/builds/lmms/lmms/src/gui/widgets/AutomatableButton.cpp:172
No locals.
#3 0x00000000005ddede in AutomatableButton::mousePressEvent (this=0x35f4a30, _me=0x7fff1cb29fc0)
at /home/zonkmachine/builds/lmms/lmms/src/gui/widgets/AutomatableButton.cpp:121
No locals.
<?xml version="1.0"?>
<!DOCTYPE lmms-project>
<lmms-project version="1.0" creator="LMMS" creatorversion="1.1.90-a53fd26" type="song">
<head timesig_numerator="4" mastervol="100" timesig_denominator="4" bpm="112" masterpitch="0"/>
<song>
<trackcontainer width="600" x="5" y="5" maximized="0" height="300" visible="1" type="song" minimized="0">
<track muted="0" type="0" name="TripleOscillator" solo="0">
<instrumenttrack pan="0" fxch="0" usemasterpitch="1" pitchrange="1" pitch="0" basenote="57" vol="100">
<instrument name="tripleoscillator">
<tripleoscillator phoffset2="0" userwavefile0="" finer0="0" userwavefile1="" finer1="0" userwavefile2="" finer2="0" coarse0="0" coarse1="-12" coarse2="-24" finel0="0" finel1="0" modalgo1="2" modalgo2="2" finel2="0" pan0="0" modalgo3="2" pan1="0" stphdetun0="0" pan2="0" stphdetun1="0" wavetype0="0" stphdetun2="0" wavetype1="0" wavetype2="0" vol0="33" vol1="33" phoffset0="0" phoffset1="0" vol2="33"/>