Crashes on trying to use certain converted instruments

Hi!

I’m experiencing crashes with renoise 3.1 64bit on xubuntu 16.04.

To reproduce them for me is pretty simple.

I load the Instrument “BassoonSus.xrni” from here: http://forum.renoise.com/index.php/topic/49286-instruments-vsco-chamber-orchestra-community-edition-xrni-version/ , hit a few notes in quick progression on the midi keyboard, and bang - renoise goes to crash mode saving a backup. There’s some buffer glitching when it happens while using jack.

Other Instruments from that collection seem to also trigger crashes. Not all though, and not all as quickly as the bassoon.

I first thought the crash was maybe inside libjack, downgraded jack from the kxstudio to distributor version, to no avail. Running renoise in alsa mode will also crash, with a different log.

I sometimes received similar crashes since long, though very seldom, and I never managed to reproduce them. Now with some of the vsco instruments it seems to trigger them quickly and reliable.

Traceback from log when using jack:

Click to view contents

GUI: Creating the Document GUI…
GUI: Successfully constructed

Application: A new document was created.

CrashLog: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f059bc77390]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa62765]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa62b75]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa565da]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa56c7d]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa5287f]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa53057]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa535d6]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa28dc0]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0x9e4b25]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0x9e59b7]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xeb7b8d]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xee24dc]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xde196f]
CrashLog: /usr/lib/x86_64-linux-gnu/libjack.so.0(+0x130cd) [0x7f0598bff0cd]
CrashLog: /usr/lib/x86_64-linux-gnu/libjack.so.0(+0x127c8) [0x7f0598bfe7c8]
CrashLog: /usr/lib/x86_64-linux-gnu/libjack.so.0(+0x2ea50) [0x7f0598c1aa50]
CrashLog: /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7f059bc6d6ba]
CrashLog: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f059acf682d]
CrashLog: [(nil)]
CrashLog: [(nil)]

Application: Caught an unhandled fatal exception (Thread: Audio)!
Application: Saving a backup…

Application: Terminating…

Jack: Deactivate…

CrashLog: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f059bc77390]
CrashLog: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7f059ac25428]
CrashLog: /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f059ac2702a]
CrashLog: /lib/x86_64-linux-gnu/libc.so.6(+0x777ea) [0x7f059ac677ea]
CrashLog: /lib/x86_64-linux-gnu/libc.so.6(__libc_fatal+0x1e) [0x7f059ac6780e]
CrashLog: /lib/x86_64-linux-gnu/libpthread.so.0(__pthread_unwind+0) [0x7f059bc76030]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xeb7bc9]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xee24dc]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xde196f]
CrashLog: /usr/lib/x86_64-linux-gnu/libjack.so.0(+0x130cd) [0x7f0598bff0cd]
CrashLog: /usr/lib/x86_64-linux-gnu/libjack.so.0(+0x127c8) [0x7f0598bfe7c8]
CrashLog: /usr/lib/x86_64-linux-gnu/libjack.so.0(+0x2ea50) [0x7f0598c1aa50]
CrashLog: /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7f059bc6d6ba]
CrashLog: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f059acf682d]
CrashLog: [(nil)]
CrashLog: [(nil)]

Closing log file…

Using alsa:

Click to view contents

GUI: Creating the Document GUI…
GUI: Successfully constructed

Application: A new document was created.

CrashLog: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7efd0d378390]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa62765]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa62b75]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa565da]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa56c7d]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa5287f]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa53057]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa535d6]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xa28dc0]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0x9e4b25]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0x9e59b7]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xeb7b8d]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xee24dc]
CrashLog: /home/nerd/Music/Renoise/rns_3_1_0_linux_x86_64/renoise() [0xde7bb5]
CrashLog: /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7efd0d36e6ba]
CrashLog: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7efd0c3f782d]
CrashLog: [(nil)]
CrashLog: [(nil)]

Application: Caught an unhandled fatal exception (Thread: Audio)!
Application: Saving a backup…

Application: Terminating…

ALSA: Stopping ALSA playback…

ALSA: Timeout while waiting for ALSA to shut down!!
ALSA: Trying to shut down ALSA from the audio thread. Bailing out…

MIDI: Shut down: Closing all acquired MIDI devices…

Threads: Timeout while waiting for Thread2 to finish its commands!!

MIDI: Shutting down MIDI server…

MIDI-IO: Closing MIDI in device ‘Renoise MIDI In Port A’…
MIDI-IO: Closing MIDI in device ‘Renoise MIDI In Port B’…
MIDI-IO: Closing MIDI in device ‘Renoise MIDI In Sync’…
MIDI-IO: Closing MIDI in device ‘Axiom 49 MIDI 1’…
MIDI-IO: Closing MIDI out device ‘Renoise MIDI Out Sync’…
MIDI-IO: Shutting down the MIDI sequencers…

Is this a renoise bug, or system (I see libc in there…), is there any fix or workaround known? I’d really like to work with these instruments. I’d be happy to crash renoise some more if you need more traces or other info.

Hi, I just found another interesting thing about it.

The crash happens when renoise tries to play back a certain sample from that instrument (BassoonSus). It is the last one in the list, “psbassoon_g2_v2_1” - just hitting a midi key with right velocity so that this sample gets played will instantly crash my renoise. I’ve then noticed that it is, unlike the other samples in that instrument, not associated with a mod set - I mapped it to set one, and the instrument won’t crash anymore.

But still it shouldn’t crash renoise, so something is going on there, either in the instrument file, but definately also in renoise not handling things gracefully enough even if they are broken.

Yep, I noticed this too with the VSCO Orchestral samples. In my case, no crashlog or backup is taken - Renoise just closes.

Something weird is going on with those (otherwise excellent) instruments.

When I checked the XML for the instruments, it seems they are formatted slightly differently than the standard Renoise instrument.

But I couldn’t find anything downright wrong with them, and in any case, Renoise should never crash just like that.

Taktik has been notified :ph34r:

And to the circle - Answer is in the instruments there are some samples indexing a modulation set that doesn’t exist. Renoise doesn’t seem to like it when you try to play those samples.

To be honest I think this can be simplified :slight_smile:

I’ve attached a small instrument. As soon as you try to load it, it will crash Renoise (well it does here anyway.) All I did is save out a fairly blank instrument and modify line 116 of the Instrument.xml file from:

<ModulationSetIndex>0</ModulationSetIndex>

To:

<ModulationSetIndex>1</ModulationSetIndex>

Maybe it seems as though that sfz2xrni might be doing that in some cases?

Yes, that is what I meant. In the linked lib - always the last sample in list, though not for all instruments, and the percussion instrument has multiple modsets so the broken index was shifted I think (didn’t look at the xml though).

I’m glad at least it is something simple like this and no major renoise breakage, and fixing the broken mod set indexes makes the library usable for me.