Muse crashing badly...

MusE is a DAW for Linux with both MIDI and Audio editing. https://muse-sequencer.github.io

Moderators: MattKingUSA, khz, spamatica

Post Reply
garvalf
Established Member
Posts: 17
Joined: Mon Mar 02, 2020 9:10 am
Has thanked: 3 times
Been thanked: 1 time

Muse crashing badly...

Post by garvalf »

hello,

is there is way to prevent muse from crashing for a specific file? Like disabling effects?

I've tried with MusE-master-x86_64.AppImage, MusE-4.0.0-x86_64.AppImage and a muse4pre3 I've compiled myself, it's the same.

I've made a track with midi + audio. I was working fine, until I've added some effects on the audio tracks. I could use it without problem, until I closed my current muse session. After that, when I've loaded it again, my track loaded completely (I could see it in the main window), then Muse crashed. There is no way to recover this file or load it again, I don't know what to do now. I've also noticed the 5 minutes automatic backup didn't worked, the latest muse.backup file is 15 days old. By the way, if the file got corrupted by adding plugins, then saving over the latest one would still get the file corrupted. I should have made incremental backups.

EDIT: I've managed to recover my files, including the added plugins / effects. I've found in the xml a strange part:

<SynthI>
<name>ADLplug LV2-0</name>
<record>0</record>
/.../
<customData>
AAXccHic7Z1NjyTHcYbrIh0MHwzDB8GnNXXxgeJOVX9MjyDJpkkKprECDBgSDAjCeHa2lzvi9MxiPlbizf9O8NW/xD/BtV9kV8fbGRmdmZWZ1e8SpLSb1dk9ud0VT78R8UbTNP/WNM0/No/NXXPT/L
z5Y///Lpt1///um4fmov933fxLc9WvXfRXfNdf++vmVf+nD83r/pqn/T/XzZum63933T/ym+azd9c+7f+97/+7bv7cX/n03T63zab5afNF/+jHfvXbfqe/bpof/eV/f/dF9w//85cfNb/4/Mtnv/n6
y69/dv9w8bD+1S+eX9x8+6tf/O7zZ7/96snNxWb9y0/e/sknT95cXP/yk/aTp8O1t//9sPZ26en7Rzv3OPHb4+rm/uHucbO+eRhe/fL28e789vW+zV7frx9f3J4rVz2/dryey9ubtnMszuZ7f5Lbh/
/.../</customData>
the "customData" part was very long. I've removed it, and now I can load my file again :D

Here is the log when it crashed anyway:
Setting project path to /mnt/DATA/syncthing/musiques/muse/album_doom_stoner_01
jack connect <MusE:Out 1-0> - <alsa_pcm:hw:USB,0:in1> failed with err:17
jack connect <MusE:Out 1-1> - <alsa_pcm:hw:USB,0:in2> failed with err:17
jack connect <alsa_pcm:hw:USB,0:out1> - <MusE:Input 1-0> failed with err:17
jack connect <alsa_pcm:hw:USB,0:out2> - <MusE:Input 1-1> failed with err:17
jack connect <alsa_pcm:hw:USB,0:out3> - <MusE:Input 3-0> failed with err:17
jack connect <MusE:jack-midi-0_out> - <alsa_pcm:Midi-Through/midi_capture_1> failed with err:17
jack connect <a2j:Scarlett 18i8 USB [20] (capture): Scarlett 18i8 USB MIDI 1> - <MusE:jack-midi-0_in> failed with err:17
jack connect <MusE:jack-midi-2_out> - <MusE:jack-midi-0_in> failed with err:17
fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0]
MidiJackDevice::queueEvent() evTime:382 < syncFrame:13258240!!
MidiJackDevice::queueEvent() evTime:382 < syncFrame:13258240!!
MidiJackDevice::queueEvent() evTime:382 < syncFrame:13258240!!
MidiJackDevice::queueEvent() evTime:382 < syncFrame:13258240!!
MidiJackDevice::queueEvent() evTime:382 < syncFrame:13258240!!
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
unknown NRT Msg 0x01
dump 4
7e 7f 09 01
Tim E. Real
Established Member
Posts: 660
Joined: Sat Sep 15, 2012 12:36 am
Has thanked: 36 times
Been thanked: 105 times

Re: Muse crashing badly...

Post by Tim E. Real »

Can you tell me how did you get ADLPlug? Built yourself? With what options (found in the README.md)? OPL3 or CHIP?

The 'strange' part in the XML file is compressed custom state data that the plugin gives us and we store in our file,
to be restored later when opened again. We just dutifully use what is given to us :wink:
I'll check it out and try to recreate...

Thanks.
Tim E. Real
Established Member
Posts: 660
Joined: Sat Sep 15, 2012 12:36 am
Has thanked: 36 times
Been thanked: 105 times

Re: Muse crashing badly...

Post by Tim E. Real »

I compiled the plugin from latest git (not a release file) and found no trouble so far, saving and reloading files.
If possible, post the song file and I can take a look.
Thanks.
spamatica
Established Member
Posts: 573
Joined: Mon Feb 08, 2010 10:38 am
Has thanked: 80 times
Been thanked: 97 times

Re: Muse crashing badly...

Post by spamatica »

garvalf wrote: Wed Jun 30, 2021 1:21 pm I've also noticed the 5 minutes automatic backup didn't worked, the latest muse.backup file is 15 days old. By the way, if the file got corrupted by adding plugins, then saving over the latest one would still get the file corrupted. I should have made incremental backups.
Ack! I feel responsible, better check out the auto backup.

May I also point you to the 'Save New Revision' keyboard shortcut (shift+R) which increments a number at the end of the file name to make manual snapshots. This does work as I do it all the time. (:
MusE DAW
saturnin51
Established Member
Posts: 114
Joined: Sat Mar 02, 2019 5:10 am
Been thanked: 4 times

Re: Muse crashing badly...

Post by saturnin51 »

I find out also crashes during using effects on audio tracks. The crash occurs when by example, I set up a slider. I forgot what effect was concerned.
garvalf
Established Member
Posts: 17
Joined: Mon Mar 02, 2020 9:10 am
Has thanked: 3 times
Been thanked: 1 time

Re: Muse crashing badly...

Post by garvalf »

Tim E. Real wrote: Thu Jul 01, 2021 12:52 am I compiled the plugin from latest git (not a release file) and found no trouble so far, saving and reloading files.
If possible, post the song file and I can take a look.
Thanks.
The archive is quite huge, because I haven't cleaned up the folder, but here it is anyway, if you're curious to test: https://we.tl/t-o7gcCrizdJ (link valid for 7 days).
The doom_morceau_02b.med and doom_morceau_02d.med should work with latest MusE-master-x86_64.AppImage
doom_morceau_02.med is crashing.
Tim E. Real
Established Member
Posts: 660
Joined: Sat Sep 15, 2012 12:36 am
Has thanked: 36 times
Been thanked: 105 times

Re: Muse crashing badly...

Post by Tim E. Real »

Although the file did not crash here, I found some problems with it.
There are a lot of different routing connections in there, an several of them are
'midi through' connections. It is not advisable to use those 'midi through' ports and devices
unless you know what you are doing.

Here's why: When both midi through 'input' and 'output' are used in the same song, this forms
an undesirable infinite feedback loop. MusE sends something out on the through port, and immediately
receives the same information back from the through input port, then sends it back to the through output port
then receives it again on the through input port, and so on infinitely.

If you run MusE in a terminal and open this song, you will see an infinite series of messages warning of buffer overflows.
If you run with the -M and -m command-line switches, you will see the app is infinitely sending and receiving
messages on those through ports because of this feedback loop.

I have corrected your song file by removing all connections to and from midi through ports.
Maybe it won't stop the crashes but at least this will fix the feedback loop:
Here is the corrected file. Rename it or rename your original file or whatever, and try it.
https://www.dropbox.com/s/llf3dh3xca5wa ... m.med?dl=0

Some notes: There is a desire for MusE to automatically connect to various ports it finds when started,
so that things 'just work'. Unfortunately, 'midi through' ports are not desirable to auto-connect to because of the feedback loop.
Luckily, ALSA can tell us that a port is a through port, and we can ignore it and not auto-connect to it, as you can see in our ports dialog.
But with Jack Midi there is no such information and it is not possible to tell if a Jack Midi port is a through port.
Thus we cannot ignore the port and are forced to allow auto-connection to it.

Therefore have a good look at your songs and if you see Jack Midi connections to 'midi through' ports,
you will likely want to remove those connections or remove the MusE midi port that is using them,
or else at least make sure your song does not attempt to use those ports.

I think @spamatica also had some trouble with this recently.
Somehow several through ports crept into his songs. But he said the through ports persisted even when not running MusE.
I have a suspicion that hot-pluggable midi devices might be the cause but I'm still checking...
garvalf
Established Member
Posts: 17
Joined: Mon Mar 02, 2020 9:10 am
Has thanked: 3 times
Been thanked: 1 time

Re: Muse crashing badly...

Post by garvalf »

thank you. It doesn't crash with your corrections.

But about the midi through ports, I haven't connected anything myself. And even in my later versions of the file (which doesn't crash), there is no midi through connections: http://i.imgur.com/L0PIUud.png

But maybe in the version which crashed, it got connected automatically by Cadence / Claudia, and then it crashed after reload?

I'll take care of this anyway, and will look for this in the case it crashes again in another project, thank you for the tip.
Post Reply