-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault at begin of CLI rendering #5107
Comments
It's a regression in #4639, See #4639 (comment). diff --git a/src/core/Song.cpp b/src/core/Song.cpp
index 336aa3df2..2daaf5c03 100644
--- a/src/core/Song.cpp
+++ b/src/core/Song.cpp
@@ -763,12 +763,16 @@ void Song::startExport()
m_exportSongEnd += MidiTime(1,0);
m_exportSongBegin = MidiTime(0,0);
- m_exportLoopBegin = m_playPos[Mode_PlaySong].m_timeLine->loopBegin() < m_exportSongEnd &&
- m_playPos[Mode_PlaySong].m_timeLine->loopEnd() <= m_exportSongEnd ?
- m_playPos[Mode_PlaySong].m_timeLine->loopBegin() : MidiTime(0,0);
- m_exportLoopEnd = m_playPos[Mode_PlaySong].m_timeLine->loopBegin() < m_exportSongEnd &&
- m_playPos[Mode_PlaySong].m_timeLine->loopEnd() <= m_exportSongEnd ?
- m_playPos[Mode_PlaySong].m_timeLine->loopEnd() : MidiTime(0,0);
+ // FIXME: remove this check once we load timeline in headless mode
+ if (m_playPos[Mode_PlaySong].m_timeLine)
+ {
+ m_exportLoopBegin = m_playPos[Mode_PlaySong].m_timeLine->loopBegin() < m_exportSongEnd &&
+ m_playPos[Mode_PlaySong].m_timeLine->loopEnd() <= m_exportSongEnd ?
+ m_playPos[Mode_PlaySong].m_timeLine->loopBegin() : MidiTime(0,0);
+ m_exportLoopEnd = m_playPos[Mode_PlaySong].m_timeLine->loopBegin() < m_exportSongEnd &&
+ m_playPos[Mode_PlaySong].m_timeLine->loopEnd() <= m_exportSongEnd ?
+ m_playPos[Mode_PlaySong].m_timeLine->loopEnd() : MidiTime(0,0);
+ }
m_playPos[Mode_PlaySong].setTicks( 0 );
} |
Works well with patch. Thank you. |
I'll close this once this is correctly fixed in the mainstream. |
Patched version segfault in GUI startupappears randomly, more frequently without debugger. Not seen earlier. gdb stacktrace
|
That looks quite unrelated. Do you use a custom template project for the startup project? |
Tried some ancient project (reopened at startup) which 100% was not based on custom template, random crashes persists . |
version
LMMS 1.2.0.495
(Linux x86_64, Qt 5.11.3, GCC 9.1.0)
from git.
gdb session
No problems with GUI export.
The text was updated successfully, but these errors were encountered: