[fixed rns 3.5.1] Tool action crashing Renoise 3.5

As reported in this thread; New Tool (3.1-3.5): Paketti - new features for Automation,SampleEditor,MIDI,PatternEditor,PhraseEditor,Mixer,KeyBinds,MenuEntries - #369 by Jonas

I’ve been able to crash Renoise using the paketti tools phrase script generator. At first I got a bug notice from the script, then I continued using the still open tool window and pressed the unison option and renoise crashed saving a back up version in the process. From the log;

KeyEventHandler: Acquire in foreground mode failed with error 0x80070005

ScriptingEngine: .\PakettiPhraseGenerator.lua:1167: attempt to index local 'note_col' (a nil value)
stack traceback:
	.\PakettiPhraseGenerator.lua:1167: in function 'ensure_pattern_trigger'
	.\PakettiPhraseGenerator.lua:2891: in function 'update_note_count'
	.\PakettiPhraseGenerator.lua:507: in function 'note_count_slider_notifier'
	.\PakettiPhraseGenerator.lua:2074: in function <.\PakettiPhraseGenerator.lua:2074>


Error Message: 'C:\Users\pluge\AppData\Roaming\Renoise\V3.5.0\Scripts\Tools\org.lackluster.Paketti.xrnx\main.lua' failed in one of its notifiers.
Error Message: Please contact the author (lackluster | esaruoho@icloud.com) for assistance...
Error Message: .\PakettiPhraseGenerator.lua:1167: attempt to index local 'note_col' (a nil value)
Error Message: stack traceback:
Error Message: 	.\PakettiPhraseGenerator.lua:1167: in function 'ensure_pattern_trigger'
Error Message: 	.\PakettiPhraseGenerator.lua:2891: in function 'update_note_count'
Error Message: 	.\PakettiPhraseGenerator.lua:507: in function 'note_count_slider_notifier'
Error Message: 	.\PakettiPhraseGenerator.lua:2074: in function <.\PakettiPhraseGenerator.lua:2074>

KeyEventHandler: Unknown DirectInput key pressed. ScanCode:'0xB7'

KeyEventHandler: Unknown DirectInput key pressed. ScanCode:'0xB7'

CrashLog: Handling Exception! Code : C0000005
CrashLog: 0000000140CB84A6: sprintf +2715BE
CrashLog: 0000000140CEDE0A: sprintf +2A6F22
CrashLog: 000000014061729B: fprintf +BD6DB
CrashLog: 0000000140B1A5D3: sprintf +D36EB
CrashLog: 0000000140B1A618: sprintf +D3730
CrashLog: 0000000140B1A618: sprintf +D3730
CrashLog: 0000000140B1A618: sprintf +D3730
CrashLog: 0000000140B1A83F: sprintf +D3957
CrashLog: 0000000140597002: fprintf +3D442
CrashLog: 000000014059726B: fprintf +3D6AB
CrashLog: 0000000140DE56CB: sprintf +39E7E3
CrashLog: 0000000140E11907: sprintf +3CAA1F
CrashLog: 0000000140DE56CB: sprintf +39E7E3
CrashLog: 0000000140E1147E: sprintf +3CA596
CrashLog: 0000000140D0C78A: sprintf +2C58A2
CrashLog: 0000000140D09360: sprintf +2C2478
CrashLog: 000000014051DD53: wprintf +10F537
CrashLog: 00000001404C2235: wprintf +B3A19
CrashLog: 00000001404B20FB: wprintf +A38DF
CrashLog: 0000000140002CB0: ??? +00000
CrashLog: 0000000140F1836A: printf +3714A
CrashLog: 0000000140F84EE8: wscanf_s +67788
CrashLog: 0000000140BDE210: sprintf +197328
CrashLog: 0000000140BDA2AB: sprintf +1933C3
CrashLog: 0000000140C00E92: sprintf +1B9FAA
CrashLog: 0000000140BFB084: sprintf +1B419C
CrashLog: 0000000140DE56CB: sprintf +39E7E3
CrashLog: 0000000140534EA3: wprintf +126687
CrashLog: 0000000140BCC3B5: sprintf +1854CD
CrashLog: 0000000140BA98AC: sprintf +1629C4
CrashLog: 0000000140BA5137: sprintf +15E24F
CrashLog: 0000000140002CB0: ??? +00000
CrashLog: 0000000140F7FD8C: wscanf_s +6262C
CrashLog: 0000000140002CB0: ??? +00000
CrashLog: 0000000140F1836A: printf +3714A
CrashLog: 0000000140F84EE8: wscanf_s +67788
CrashLog: 0000000140BDE210: sprintf +197328
CrashLog: 0000000140BDA2AB: sprintf +1933C3
CrashLog: 0000000140C00E92: sprintf +1B9FAA
CrashLog: 0000000140BF9F34: sprintf +1B304C
CrashLog: 0000000140DE56CB: sprintf +39E7E3
CrashLog: 0000000140534EA3: wprintf +126687
CrashLog: 0000000140BC9E85: sprintf +182F9D
CrashLog: 0000000140BA8D68: sprintf +161E80
CrashLog: 0000000140BA4B2B: sprintf +15DC43
CrashLog: 0000000140002CB0: ??? +00000
CrashLog: 0000000140F7FD8C: wscanf_s +6262C
CrashLog: 0000000140002CB0: ??? +00000
CrashLog: 0000000140F1836A: printf +3714A
CrashLog: 0000000140F84EE8: wscanf_s +67788
CrashLog: 000000014053BC8A: wprintf +12D46E
CrashLog: 000000014053538F: wprintf +126B73
CrashLog: 0000000140E1487B: sprintf +3CD993
CrashLog: 0000000140DE56CB: sprintf +39E7E3
CrashLog: 0000000140CACD7D: sprintf +265E95
CrashLog: 0000000140CAA097: sprintf +2631AF
CrashLog: 00000001404BE278: wprintf +AFA5C
CrashLog: 00000001404AFEB7: wprintf +A169B
CrashLog: 0000000140002CB0: ??? +00000
CrashLog: 0000000140F7FD8C: wscanf_s +6262C
CrashLog: 0000000140002CB0: ??? +00000
CrashLog: 0000000140F1836A: printf +3714A
CrashLog: 0000000140F84EE8: wscanf_s +67788
CrashLog: 000000014053BC8A: wprintf +12D46E
CrashLog: 000000014053538F: wprintf +126B73
CrashLog: 0000000140C00C5F: sprintf +1B9D77
CrashLog: 0000000140BF88F6: sprintf +1B1A0E
CrashLog: 0000000140B29277: sprintf +E238F
CrashLog: 0000000140B2CF37: sprintf +E604F
CrashLog: 0000000140B1C124: sprintf +D523C
CrashLog: 0000000140B70ECD: sprintf +129FE5
CrashLog: 0000000140BF20B7: sprintf +1AB1CF
CrashLog: 0000000140B35F0C: sprintf +EF024
CrashLog: 0000000140C0FECA: sprintf +1C8FE2
CrashLog: 0000000140C3D8C3: sprintf +1F69DB
CrashLog: 0000000140C0B657: sprintf +1C476F
CrashLog: 0000000140C089D8: sprintf +1C1AF0
CrashLog: 00007FFD687F81D6: CallWindowProcW +006A6
CrashLog: 00000000000A0562: ??? +00000

Application: Caught an unhandled fatal exception (Thread: GUI)!
Application: Saving a backup...

Error Message: A fatal error or crash occurred (unhandled exception in thread: GUI).
Error Message: A backup of the current document was saved at
Error Message: 'C:\Users\pluge\AppData\Roaming\Renoise\V3.5.0\CrashBackups\Untitled_7_10_2025__12_11_crash.xrns'...
Error Message: This either happened because of a bug in Renoise, or because of a bug in one of its loaded components (plugins). Please contact <bug@renoise.com> and report this problem, so that it can be fixed.
Error Message: Note: It's very important that we know exactly what has happened (what you were doing before this message popped up), or the problem cannot be replicated/analyzed. Please include a description of what you were doing and which components were being used...

ScriptingEngine: Script execution terminated by user.
stack traceback:
	.\PakettiPhraseGenerator.lua:1574: in function <.\PakettiPhraseGenerator.lua:1574>


Application: Terminating...

windows 11

Could not replicate this yet, but did an attempt to fix that blindly by making the error handling a bit more robust here. please let me know if you still can replicate this - then I’ll dig deeper…

1 Like

thanks I´ve been able to crash the latest github paketti version in 3.5.1 doing similar antics, but not Renoise (yet ;))

hi @taktik
i addressed the note_col issue a little before you probably hit Paketti - i believe @Jonas was trying to have it write to a track type that isn’t capable of having note_columns, such as master track, send track or group track.

@Jonas is there any chance you could record a video of the antics you’re doing so i could see what you’re talkin about, cos it might help me figure out steps to replicate and how to tweak them out of the mix :slight_smile:

No i’m definitely not on a send or master track (knowingly) when I’m a using paketti phrase script generator, but perhaps your tool has a function where it outputs to another track and this happened to be the master track when randomly jamming?

there’s a feature that adds a new track. if you happened to be on a send track and pressed duplicate, yes, it’ll go “duplicate this current track”. i can write protection against that…
ok, it’s on github now

1 Like

A post was merged into an existing topic: New tool (3.4.3): Piano Roll Studio v6.3 build 564 (May 2024)