Page 1 of 2

v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Mon Oct 18, 2021 5:59 pm
by emilio
Hello, I've recently started using LMMS with Ubuntu 20.04.3 LTS.
I downloaded the 1.2.2 .AppImage file and configured it to use JACK.
I have no problems with the creation of tracks, but when I run an export, LMMS crashes unexpectedly. I've tried reducing the number of tracks, but even with only one track the program crashes without any message that might help to understand the problem. I can only export the project using ALSA.
I'm not currently using any VST.

My environment:
- Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 8GB RAM
- Ubuntu 20.04.3 LTS (Kernel 5.11.0-37-generic, KXStudio repos + extras enabled)
- JACK v.2:1.9.19~git20210705~focal2 (user in audio group: YES, realtime: YES)

Ubuntu repositories only contain LMMS 1.2.1, and version 1.2.1 seems not to work with CARLA (which I would like to use in the future).

Thank you very much for your help.

Re: v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Tue Oct 19, 2021 3:27 pm
by musikbear
emilio wrote:
Mon Oct 18, 2021 5:59 pm
Hello, I've recently started using LMMS with Ubuntu 20.04.3 LTS.
Hi, Welcome to the Forum emilio !
Here are all important links:
http://lmms.io/forum/viewtopic.php?f=1&t=4740
-A few rules and useful forum instructions
If you like to introduce yourself, to the community, go here:
http://lmms.io/forum/viewtopic.php?f=4&t=4480
I downloaded the 1.2.2 .AppImage file and configured it to use JACK.
when I run an export, LMMS crashes unexpectedly. I can only export the project using ALSA.
I'm not currently using any VST.
I would like you to open an empty project, the browse to
projects\demos\Greippi - Krem Kaakkuja (SecondFlight Remix).mmpz
load it and export that
Does that fail too?

My environment:
- Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 8GB RAM
- Ubuntu 20.04.3 LTS (Kernel 5.11.0-37-generic, KXStudio repos + extras enabled)
- JACK v.2:1.9.19~git20210705~focal2 (user in audio group: YES, realtime: YES)
Ubuntu repositories only contain LMMS 1.2.1, and version 1.2.1 seems not to work with CARLA (which I would like to use in the future).
Yes, and you should disregard Ubuntu-repos, and only use the appImage from our page.

Re: v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Tue Oct 19, 2021 9:03 pm
by emilio
Hello musikbear,

thank you for your reply.

I tried to open the suggested demo and play the tracks (using JACK).
The CPU utilization was very high and the scrolling was not perfectly smooth.

The export (.wav, 44100 Hz, 24 Bit, Sinc Medium, no oversampling) failed at 4%.
Even with ALSA the export didn't work.

I tried to export the demo from the command line (lmms render Greippi\ -\ Krem\ Kaakkuja\ \(Second\ Flight\ Remix\).mmpz -i sincmedium -a), using version 1.2.1, and the .wav file was saved. However, during the export, the message "!!!Not enough samples" appeared several times (and the CPU usage was intense).

Re: v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Wed Oct 20, 2021 8:52 am
by fedyarov
emilio wrote:
Mon Oct 18, 2021 5:59 pm
Hello, I've recently started using LMMS with Ubuntu 20.04.3 LTS.
I downloaded the 1.2.2 .AppImage file and configured it to use JACK.
I have no problems with the creation of tracks, but when I run an export, LMMS crashes unexpectedly. I've tried reducing the number of tracks, but even with only one track the program crashes without any message that might help to understand the problem. I can only export the project using ALSA.
I'm not currently using any VST.

My environment:
- Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 8GB RAM
- Ubuntu 20.04.3 LTS (Kernel 5.11.0-37-generic, KXStudio repos + extras enabled)
- JACK v.2:1.9.19~git20210705~focal2 (user in audio group: YES, realtime: YES)

Ubuntu repositories only contain LMMS 1.2.1, and version 1.2.1 seems not to work with CARLA (which I would like to use in the future).

Thank you very much for your help.
I've experienced some problems with LMMS 1.2.2 export too. Like it freezes or produces zero length files. I solved it by using the command lines like 'lmms render music.mmpz -f wav' and 'lmms rendertracks music.mmpz -f wav -o my_dir' or by exporting via LMMS 1.3.0-alpha. The alpha version is not super stable generally, but it exports okay. Hope this helps.

Re: v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Wed Oct 20, 2021 1:21 pm
by emilio
fedyarov wrote:
Wed Oct 20, 2021 8:52 am
I've experienced some problems with LMMS 1.2.2 export too. Like it freezes or produces zero length files. I solved it by using the command lines like 'lmms render music.mmpz -f wav' and 'lmms rendertracks music.mmpz -f wav -o my_dir' or by exporting via LMMS 1.3.0-alpha. The alpha version is not super stable generally, but it exports okay. Hope this helps.
Hello fedyarov,
thank you for your reply.

LMMS 1.3.0-alpha didn't solve the problem for me.
I thought my machine had enough resources, but something doesn't work properly.

Did you compile LMMS 1.2.2 from source code and installed it, in order to use 'lmms render' command from CLI?

I have noticed that the interaction with the graphic environment sometimes causes glitches in the sound.
I have an integrated GPU (Skylake GT2 [HD Graphics 520]): could this be a problem for LMMS?

Re: v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Wed Oct 20, 2021 3:48 pm
by musikbear
emilio wrote:
Wed Oct 20, 2021 1:21 pm
I have an integrated GPU (Skylake GT2 [HD Graphics 520]): could this be a problem for LMMS?
I doubt that. Your HW looks fine.

Your issue with the demos export is worrying..
LINUX is difficult to troubleshoot, because all kind of 'stuff' can be added, and any could be causing trouble..
What i would suggest is to make a 100% cleanout!
Bacup your own things!
Remove everything that has to do with LMMS -incl. WINE!
When you are sure nothing related to LMMS from any repo -including KX and Ubuntu exists:
* Install WINE that is the correct one for your Ubuntu
* Download our AppImage for 1.2.2 and make it executable
Nothing else!
Then retry to export the Demo-project
Let us know the outcome

Re: v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Wed Oct 20, 2021 3:51 pm
by fedyarov
emilio wrote:
Wed Oct 20, 2021 1:21 pm
fedyarov wrote:
Wed Oct 20, 2021 8:52 am
I've experienced some problems with LMMS 1.2.2 export too. Like it freezes or produces zero length files. I solved it by using the command lines like 'lmms render music.mmpz -f wav' and 'lmms rendertracks music.mmpz -f wav -o my_dir' or by exporting via LMMS 1.3.0-alpha. The alpha version is not super stable generally, but it exports okay. Hope this helps.
Hello fedyarov,
thank you for your reply.

LMMS 1.3.0-alpha didn't solve the problem for me.
I thought my machine had enough resources, but something doesn't work properly.

Did you compile LMMS 1.2.2 from source code and installed it, in order to use 'lmms render' command from CLI?

I have noticed that the interaction with the graphic environment sometimes causes glitches in the sound.
I have an integrated GPU (Skylake GT2 [HD Graphics 520]): could this be a problem for LMMS?
That's weird. No, I haven't compiled, unpacked or set up anything. Everything works fine right out of the box. Can't say my laptop is new and fast either. My Debian 10 comes with the old LMMS 1.1.3 that I can still run, but I mostly use an additional directory called '/home/ruslan/lmms_1.2.2' where I put those two .AppImage files that are available for download here on lmms.io.

So in that directory I can literally use commands like

./lmms-1.2.2-linux-x86_64.AppImage --help

or

./lmms-1.2.2-linux-x86_64.AppImage render music.mmpz -f wav

Scrolling of the tracks in the song editor window may occasionally cause tiny sound glitches. You can turn the auto-scroll off with the "right arrow" button there. Not sure about the GPU, sorry.

BTW, one can also capture the output of most JACK-friendly programs, including LMMS, with the JACK Timemachine application, connecting it properly in QjackCtl ('Connect' button), Patchage or similar. When the button is pressed, it stores non-standard WAV files in your home directory. You can open them later in Audacity, trim the initial silence and export elsewhere as "normal" WAV, FLAC or other. I use this method for recording MIDI files played with pmidi + Qsynth.

Re: v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Wed Oct 20, 2021 9:56 pm
by emilio
Hello,

thank you for your replies.

In a clean Ubuntu 20.04.3 LTS + wine-5.0 (Ubuntu 5.0-3ubuntu1) installation (no KXStudio repos, no Carla, no JACK, ...) I launched LMMS 1.2.2 from a terminal (./lmms-1.2.2-linux-x86_64.AppImage).

The first messages were:

Carla does not appear to be installed. That's OK, please ignore any related library errors.
Jack appears to be installed on this system, so we'll use it. (*)
Notice: could not set realtime priority.
Cannot load library /tmp/.mount_lmms-10NHuio/usr/lib/lmms/libcarlabase.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)
Cannot load library /tmp/.mount_lmms-10NHuio/usr/lib/lmms/libcarlarack.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)
Cannot load library /tmp/.mount_lmms-10NHuio/usr/lib/lmms/libcarlapatchbay.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)


(*) I didn't install JACK, but I realized that 'libjack-jackd2-0/focal,now 1.9.12~dfsg-2ubuntu2 amd64' was already installed.

I checked which audio interface was selected: SDL.
I didn't change the configuration and tried to export the suggested demo: the wav file has been saved.
During the export many !!!Not enough samples alerts/exceptions were thrown. I don't know what they exactly mean.
Once the export was finished, the message QMetaMethod::invoke: Unable to handle unregistered datatype 'MidiTime' was logged.

I then tried to change the audio interface and set it to ALSA. The export of the demo worked. Again during the export many !!!Not enough samples alerts/exceptions were logged.

I tried to export my song and it worked as well. Two messages were logged: QtXmlWrapper::loadXMLfile(): empty data and QMetaMethod::invoke: Unable to handle unregistered datatype 'MidiTime'.

Re: v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Thu Oct 21, 2021 6:27 am
by fedyarov
emilio wrote:
Wed Oct 20, 2021 9:56 pm
Hello,

thank you for your replies.

In a clean Ubuntu 20.04.3 LTS + wine-5.0 (Ubuntu 5.0-3ubuntu1) installation (no KXStudio repos, no Carla, no JACK, ...) I launched LMMS 1.2.2 from a terminal (./lmms-1.2.2-linux-x86_64.AppImage).

The first messages were:

Carla does not appear to be installed. That's OK, please ignore any related library errors.
Jack appears to be installed on this system, so we'll use it. (*)
Notice: could not set realtime priority.
Cannot load library /tmp/.mount_lmms-10NHuio/usr/lib/lmms/libcarlabase.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)
Cannot load library /tmp/.mount_lmms-10NHuio/usr/lib/lmms/libcarlarack.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)
Cannot load library /tmp/.mount_lmms-10NHuio/usr/lib/lmms/libcarlapatchbay.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)


(*) I didn't install JACK, but I realized that 'libjack-jackd2-0/focal,now 1.9.12~dfsg-2ubuntu2 amd64' was already installed.

I checked which audio interface was selected: SDL.
I didn't change the configuration and tried to export the suggested demo: the wav file has been saved.
During the export many !!!Not enough samples alerts/exceptions were thrown. I don't know what they exactly mean.
Once the export was finished, the message QMetaMethod::invoke: Unable to handle unregistered datatype 'MidiTime' was logged.

I then tried to change the audio interface and set it to ALSA. The export of the demo worked. Again during the export many !!!Not enough samples alerts/exceptions were logged.

I tried to export my song and it worked as well. Two messages were logged: QtXmlWrapper::loadXMLfile(): empty data and QMetaMethod::invoke: Unable to handle unregistered datatype 'MidiTime'.
I also get those Carla and sometimes samples messages too (seems to depend on the project). But not "MidiTime". Found this explanation:

"As 1.2.2 was released before MidiTime was renamed to TimePos, it does not seem to be related."
(https://github.com/LMMS/lmms/issues/5919 ).

Not sure what it means exactly, probably it has something to do with version mismatch. You may want to try using ./lmms-1.3.0-alpha.1.102+g89fc6c9-linux-x86_64.AppImage in the command line instead. Do the resulting WAV files sound right?

Re: v.1.2.2 App crashes on export - Ubuntu 20.04.3 LTS + JACK

Posted: Thu Oct 21, 2021 1:37 pm
by emilio
Hello fedyarov,

thank you for your reply.

Exported .wav files are ok.

I've tried to launch ./lmms-1.3.0-alpha.1.102+g89fc6c9-linux-x86_64.AppImage from a terminal.

Startup messages:

Carla does not appear to be installed. That's OK, please ignore any related library errors.
Jack appears to be installed on this system, so we'll use it.
Gtk-Message: 14:49:44.347: Failed to load module "atk-bridge"
Gtk-Message: 14:49:44.534: Failed to load module "canberra-gtk-module"
Notice: could not set realtime priority.
Lv2 plugin SUMMARY: 0 of 0 loaded in 0 msecs.
Cannot load library /tmp/.mount_lmms-1s4e14k/usr/lib/lmms/libcarlarack.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)
Cannot load library /tmp/.mount_lmms-1s4e14k/usr/lib/lmms/libcarlapatchbay.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)
Cannot load library /tmp/.mount_lmms-1s4e14k/usr/lib/lmms/libcarlabase.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)


Messages logged while LMMS was rendering suggested demo (to .wav file):

Many SampleBuffer::decodeSampleOGGVorbis(): not an Ogg Vorbis file messages
Many !!!Not enough samples messages
One PERFLOG | Project Render | 183.22user, 6.24system 70.41elapsed message
Many SampleBuffer::decodeSampleOGGVorbis(): not an Ogg Vorbis file messages

Messages logged while LMMS was opening my song:

QtXmlWrapper::loadXMLfile(): empty data
Starting using X11Embed protocol.
log path:'C:\users\emilio\Desktop\Zebra2.log'
checking deskTopFile at: C:\users\emilio\Desktop\Zebra2.log
unique ID: SMD3
RemotePlugin::DebugMessage: inputs: 0 output: 2
RemotePlugin::DebugMessage: creating editor
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
RemotePlugin::DebugMessage: editor successfully created
QObject::connect: Cannot connect (null)::subWindowActivated( QMdiSubWindow* ) to SubWindow::focusChanged( QMdiSubWindow* )
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile


Messages logged while LMMS was performing the export of my song:

HostPlaying changed: inQuarter: 0.011610, lastQuarter 0.000000 currentQuarter 917.199819
PERFLOG | Project Render | 26.11user, 2.39system 13.23elapsed


I'm currently NOT using JACK (with ALSA audio driver); what will happen when I install jack?... To be continued...

Question: do you have KXStudio repos enabled? Which version of JACK are you running? Ubuntu repos are often not up to date, whilst KXStudio's ones are (and contain many utilities - like cadence, catia, ...).