-
-
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
Segmentation fault with JACK output #5954
Comments
These are the JACK logs
|
@Queatz Could you try launching LMMS with |
Is there a debug AppImage I can download? Edit: Hmm, it doesn't crash when I build it from source. Confirmed JACK is working. Supported audio interfaces -------------------------- * ALSA : OK * JACK : OK (weak linking enabled) * OSS : OK * Sndio : * PortAudio : OK * libsoundio : not found, please install libsoundio if you require libsoundio support * PulseAudio : OK * SDL : OK, using SDL1.2 Supported MIDI interfaces ------------------------- * ALSA : OK * OSS : OK * Sndio : * JACK : OK (weak linking enabled) * WinMM : * AppleMidi : Supported file formats for project export ----------------------------------------- * WAVE : OK * FLAC : OK * OGG/VORBIS : OK * MP3/Lame : OK Optional plugins ---------------- * Lv2 plugins : not found, install it or set PKG_CONFIG_PATH appropriately * SUIL for plugin UIs : not found, install it or set PKG_CONFIG_PATH appropriately * ZynAddSubFX instrument : OK * Carla Patchbay & Rack : OK (weak linking enabled) * SoundFont2 player : OK * Stk Mallets : OK * VST-instrument hoster : not found, please install (lib)wine-dev (or similar) - 64 bit systems additionally need gcc-multilib and g++-multilib * VST-effect hoster : not found, please install (lib)wine-dev (or similar) - 64 bit systems additionally need gcc-multilib and g++-multilib * CALF LADSPA plugins : OK * CAPS LADSPA plugins : OK * CMT LADSPA plugins : OK * TAP LADSPA plugins : OK * SWH LADSPA plugins : OK * GIG player : OK |
@Queatz it may not have crashed, but |
With valgrind I see this 1,000 times and then it stops reporting errors. |
You can google how to suppress valgrind stopping at 1000. Also, there are valgrind suppression files to suppress this particular "???" jump. |
Here is the output with that error suppressed:
Here is the output with that error suppressed and |
Thanks, the output with leak check enabled "randomly" seems to show the error. A
Next question is why this thread is still running when |
I am using QjackCtl, so maybe this is a bug in QjackCtl (that could possibly be handled better in LMMS)?
|
OK, I was slightly wrong, there is no Jack QThread. The log shows that one of the There are two questions:
As to 2: AudioDevice does it like this: if( !thread->wait( 30000 ) )
{
fprintf( stderr, "Terminating audio device thread\n" );
thread->terminate();
if( !thread->wait( 1000 ) )
{
fprintf( stderr, "Thread not terminated yet\n" );
}
} Mixer.cpp does only: for( int w = 0; w < m_numWorkers; ++w )
{
m_workers[w]->quit();
}
MixerWorkerThread::startAndWaitForJobs();
for( int w = 0; w < m_numWorkers; ++w )
{
m_workers[w]->wait( 500 );
}
// XXX @Queatz can you please append the following code where I marked for( int w = 0; w < m_numWorkers; ++w )
{
m_workers[w]->terminate();
if( !m_workers[w]->wait( 1000 ) )
{
fprintf( stderr, "Thread not terminated yet\n" );
}
}
for( int w = 0; w < m_numWorkers; ++w )
{
m_workers[w]->wait( 500 );
} |
That definitely seems to have worked. I also added
|
OK, this is ALSA, so you just switched to ALSA? |
Back to the other question:
Can you please again let it fail with valgrind (undo your fix), but this time connect valgrind to gdb before, and when valgrind hangs at the issue, do |
The ALSA error I was seeing is unrelated (I am using the ALSA Sequencer for MIDI since I wasn't able to get Jack MIDI working.) Sure, I will do that. |
Can't seem to get QT to be able to connect to the display when launching valgrind with vgdb. Will look more into it later today. |
I am not able to reproduce this bug on Debian 10 with (jackd is stopped before): |
@JohannesLorenz I havn't got back to this yet. Will update if I get the chance. |
Bug Summary
LMMS crashes on launch when Jack is selected as output.
Steps to reproduce
Switch to JACK output
Relaunch LMMS
Expected behavior
No crash
Actual behavior
Crash
Affected LMMS versions
1.2.2
1.3.0 Alpha 1
Logs
Click to expand
The text was updated successfully, but these errors were encountered: