Wonder if anyone has a moment to help. Two of the scripts on my stock norns Granchild and Colourwheel are throwing up init errors. Norns is all up to date, below is the readout from matron for both…
COLOURWHEEL
# script load: /home/we/dust/code/colorwheel/colorwheel.lua
including /home/we/dust/code/colorwheel/lib/notes.lua
including /home/we/dust/code/colorwheel/lib/algebra.lua
creating group meta with 17 params
adding 17 params
creating group track 1 with 36 params
adding 36 params
creating group track 2 with 36 params
adding 36 params
creating group track 3 with 36 params
adding 36 params
creating group track 4 with 36 params
adding 36 params
creating group steps 1 with 240 params
adding 240 params
creating group steps 2 with 240 params
adding 240 params
creating group steps 3 with 240 params
adding 240 params
creating group steps 4 with 240 params
adding 240 params
including /home/we/dust/code/colorwheel/lib/pset_sequencer.lua
calling: gridkeys-script-pre-init
calling: arcify
# script run
>> reading PMAP /home/we/dust/data/colorwheel/colorwheel.pmap
m.read: /home/we/dust/data/colorwheel/colorwheel.pmap not read.
Engine.register_commands; count: 0
___ engine commands ___
___ polls ___
amp_in_l
amp_in_r
amp_out_l
amp_out_r
cpu_avg
cpu_peak
pitch_in_l
pitch_in_r
# script init
mod - gridkeys - TOGGLE_GRID_KEY = false
mod - gridkeys - TOGGLE_GRID_KEY -> NO CHANGE
mod - gridkeys - script init
mod - gridkeys - mod init
mod - gridkeys - OFF as grid bound by script
pset >> read: /home/we/dust/data/colorwheel/colorwheel-01.pset
pset :: /home/we/dust/data/colorwheel/colorwheel-01.pset not read.
mod - gridkeys - TOGGLE_GRID_KEY = false
mod - gridkeys - TOGGLE_GRID_KEY -> NO CHANGE
pset >> read: /home/we/dust/data/colorwheel/colorwheel-00.pset
pset :: /home/we/dust/data/colorwheel/colorwheel-00.pset not read.
### SCRIPT ERROR: init
/home/we/dust/code/colorwheel/lib/pset_sequencer.lua:250: attempt to call a nil value (global 'set_pset_exclusion_lfast')
stack traceback:
/home/we/norns/lua/core/norns.lua:146: in global 'set_pset_exclusion_lfast'
/home/we/dust/code/colorwheel/lib/pset_sequencer.lua:250: in field 'action'
/home/we/norns/lua/core/params/number.lua:56: in function 'core/params/number.bang'
/home/we/norns/lua/core/params/number.lua:43: in function 'core/params/number.set'
(...tail calls...)
/home/we/dust/code/colorwheel/lib/pset_sequencer.lua:219: in global 'set_pset_exclusion_first'
/home/we/dust/code/colorwheel/lib/pset_sequencer.lua:249: in field 'action'
/home/we/norns/lua/core/params/number.lua:56: in function 'core/params/number.bang'
/home/we/norns/lua/core/paramset.lua:510: in function 'core/paramset.bang'
/home/we/norns/lua/core/paramset.lua:503: in function 'core/paramset.default'
/home/we/dust/code/arcify_dev/lib/mod.lua:108: in global 'init'
/home/we/norns/lua/core/script.lua:126: in function 'core/script.init'
[C]: in function 'xpcall'
/home/we/norns/lua/core/norns.lua:147: in field 'try'
/home/we/norns/lua/core/engine.lua:91: in function </home/we/norns/lua/core/engine.lua:89>
and for GRANCHILD:
# script run
loading engine: ZGlut
>> reading PMAP /home/we/dust/data/granchild/granchild.pmap
m.read: /home/we/dust/data/granchild/granchild.pmap not read.
Engine.register_commands; count: 26
___ engine commands ___
cutoff if
delay_damp f
delay_diff f
delay_fdbk f
delay_mod_depth f
delay_mod_freq f
delay_size f
delay_time f
delay_volume f
density if
envscale if
gain if
gate ii
jitter if
overtones if
pan if
pitch if
q if
read is
seek if
send if
size if
speed if
spread if
subharmonics if
volume if
___ polls ___
amp_in_l
amp_in_r
amp_out_l
amp_out_r
cpu_avg
cpu_peak
phase_1
phase_2
phase_3
phase_4
pitch_in_l
pitch_in_r
# script init
mod - gridkeys - TOGGLE_GRID_KEY = false
mod - gridkeys - TOGGLE_GRID_KEY -> NO CHANGE
mod - gridkeys - script init
sample -
sample -
sample -
sample -
grid columns: 16
mod - gridkeys - mod init
mod - gridkeys - OFF as grid bound by script
pset >> read: /home/we/dust/data/granchild/granchild-01.pset
pset :: /home/we/dust/data/granchild/granchild-01.pset not read.
mod - gridkeys - TOGGLE_GRID_KEY = false
mod - gridkeys - TOGGLE_GRID_KEY -> NO CHANGE
sample -
set_steps for voice 1:
sample -
set_steps for voice 1:
sample -
set_steps for voice 1:
sample -
set_steps for voice 2:
sample -
set_steps for voice 2:
sample -
set_steps for voice 2:
sample -
set_steps for voice 3:
sample -
set_steps for voice 3:
sample -
set_steps for voice 3:
sample -
set_steps for voice 4:
sample -
set_steps for voice 4:
sample -
set_steps for voice 4:
### SCRIPT ERROR: init
/home/we/dust/code/granchild/granchild.lua:166: attempt to concatenate a nil value (global 'i')
stack traceback:
/home/we/norns/lua/core/norns.lua:146: in metamethod '__concat'
/home/we/dust/code/granchild/granchild.lua:166: in field 'action'
/home/we/norns/lua/core/params/option.lua:52: in function 'core/params/option.bang'
/home/we/norns/lua/core/paramset.lua:510: in function 'core/paramset.bang'
/home/we/norns/lua/core/paramset.lua:503: in function 'core/paramset.default'
/home/we/dust/code/arcify_dev/lib/mod.lua:108: in global 'init'
/home/we/norns/lua/core/script.lua:126: in function 'core/script.init'
[C]: in function 'xpcall'
/home/we/norns/lua/core/norns.lua:147: in field 'try'
/home/we/norns/lua/core/engine.lua:91: in function </home/we/norns/lua/core/engine.lua:89>
# script load: /home/we/dust/code/cheat_codes_2/cheat_codes_2.lua
pset last used: 1
including /home/we/dust/code/midigrid/lib/midigrid.lua
including /home/we/dust/code/midigrid/lib/vgrid.lua
including /home/we/dust/code/midigrid/lib/supported_devices.lua
including /home/we/dust/code/cheat_codes_2/lib/cc_pattern_time.lua
including /home/we/dust/code/cheat_codes_2/lib/main_menu.lua
including /home/we/dust/code/cheat_codes_2/lib/encoder_actions.lua
including /home/we/dust/code/cheat_codes_2/lib/arc_actions.lua
including /home/we/dust/code/cheat_codes_2/lib/zilchmos.lua
including /home/we/dust/code/cheat_codes_2/lib/start_up.lua
including /home/we/dust/code/cheat_codes_2/lib/grid_actions.lua
including /home/we/dust/code/cheat_codes_2/lib/easing.lua
including /home/we/dust/code/cheat_codes_2/lib/arp_actions.lua
including /home/we/dust/code/cheat_codes_2/lib/rnd_actions.lua
including /home/we/dust/code/cheat_codes_2/lib/cc_musicutil.lua
including /home/we/dust/code/cheat_codes_2/lib/delay.lua
including /home/we/dust/code/cheat_codes_2/lib/euclid.lua
including /home/we/dust/code/cheat_codes_2/lib/midicheat.lua
including /home/we/dust/code/cheat_codes_2/lib/macros.lua
including /home/we/dust/code/cheat_codes_2/lib/transport.lua
including /home/we/dust/code/cheat_codes_2/lib/speed_dial.lua
Default 64 layout init
vgrid init with layout: 64
4 core midi devices
Scanning for supported midigrid devices:
virtual -- Not supported
NTS-1 digital kit -- Not supported
Launchpad Mini MK3 1 -- Not supported
launchpad_minimk3 -- Supported
mounted_devices
4 launchpad_minimk3
Loading midi device type:launchpad_minimk3 on midi port 4
including /home/we/dust/code/midigrid/lib/devices/launchpad_minimk3.lua
including /home/we/dust/code/midigrid/lib/devices/launchpad_rgb.lua
including /home/we/dust/code/midigrid/lib/devices/generic_device.lua
Attaching devices:
calling: broadcast mod init
pset seq init
# script run
loading engine: PolyPerc
>> reading PMAP /home/we/dust/data/cheat_codes_2/cheat_codes_2.pmap
Engine.register_commands; count: 7
___ engine commands ___
amp f
cutoff f
gain f
hz f
pan f
pw f
release f
___ polls ___
amp_in_l
amp_in_r
amp_out_l
amp_out_r
cpu_avg
cpu_peak
pitch_in_l
pitch_in_r
# script init
pset >> read: /home/we/dust/data/cheat_codes_2/cheat_codes_2-01.pset
pset >> read: /home/we/dust/data/cheat_codes_2/cheat_codes_2-01.pset
pset >> read: /home/we/dust/data/cheat_codes_2/cheat_codes_2-01.pset
### SCRIPT ERROR: init
/home/we/dust/code/cheat_codes_2/lib/start_up.lua:644: attempt to index a nil value (global 'selected')
stack traceback:
/home/we/norns/lua/core/norns.lua:145: in metamethod '__index'
/home/we/dust/code/cheat_codes_2/lib/start_up.lua:644: in field 'action'
/home/we/norns/lua/core/params/number.lua:56: in function 'core/params/number.bang'
/home/we/norns/lua/core/params/number.lua:43: in function 'core/params/number.set'
/home/we/norns/lua/core/paramset.lua:422: in function 'core/paramset.read'
/home/we/dust/code/pset_seq/lib/mod.lua:256: in field 'action'
/home/we/norns/lua/core/params/number.lua:56: in function 'core/params/number.bang'
/home/we/norns/lua/core/paramset.lua:452: in function 'core/paramset.bang'
/home/we/dust/code/cheat_codes_2/cheat_codes_2.lua:1291: in global 'init'
/home/we/norns/lua/core/script.lua:126: in function 'core/script.init'
[C]: in function 'xpcall'
/home/we/norns/lua/core/norns.lua:146: in field 'try'
/home/we/norns/lua/core/engine.lua:91: in function </home/we/norns/lua/core/engine.lua:89>
[details="Summary"]
This text will be hidden
[/details]
replace "Summary" with a summarizing statement (optional)
replace This text will be hidden with your text
@ligou + @Ravel , could you please generate + attach your log file (drag + drop the file into your reply) for additional troubleshooting? thank you so much!
Thanks so much for the pointers, and willingness to help!
i went to do as you suggested and the system.log reads like 3000 lines of code, is that correct? i can’t seem to share in anycase as lines says ‘Body is limited to 40000 characters; you entered 306435.’
no worries! you can simply attach it to your post with drag + drop.
if copying from maiden, just paste it into a .txt file on your computer and share that – otherwise the system.log file downloaded via SSH or SMB will be good thank you for diggin in!
I’ve had similar errors with some scripts with Gridkeys mod enabled when MIDIGrid is installed (I think grandchild was one of them) try to remove MIDIGrid and also deactivating gridkeys
unfortunately, we’ll need the script init errors to be reproduced in the logs in order to nail things down a bit better.
in the log text itself, you can do a search for # script to confirm that it includes script loading – could you please try pulling logs again to grab the info from the error: init issues?
and generally, it’d be good to know if you’re able to reproduce these issues with the mods disengaged as well? thank you!!
looks like arcify_dev is rousing some sleeping giants when it calls params:default (or more specifically the params:bang() that params:default() calls) – i was also able to reproduce the same error on a fresh load of granchild, just changing the PARAMETERS > delay > scene value.
for granchild it looks like a simple misplaced variable, so i put in a PR for granchild, so if you can reliably jack up colorwheel on a fresh load by executing params:bang() on the maiden command line (which should simply seed the current parameter values to the different parameter actions), then it might be good to report that trouble out to its thread
super interesting to consider that a component of ‘final testing’ for script releases might be just making sure params:bang() doesn’t error out – rad rad rad, good to know!