monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
633 stars 147 forks source link

'SCRIPT ERROR: NO SCRIPT' after stop/start #540

Closed okyeron closed 6 years ago

okyeron commented 6 years ago

I'm seeing this pretty regularly since the new update.

I will do something that crashes part of norns and run stop.sh and start.sh. When norns comes back up it shows ### SCRIPT ERROR: NO SCRIPT (in maiden) or NONE (error: NO SCRIPT) on the norns display.

Second test. I just tried running stop.sh and start.sh again (not a crash situation) and had the same result.

Steps:

rross101 commented 6 years ago

Ah - I had assumed this was just normal behaviour - when resetting the software it doesn't load a script; and the message is letting you know that. Can still load a new script after this?

okyeron commented 6 years ago

Yes. No problem loading a script at that point. I think the "problem" here is that it forgets which script was loaded - which did not happen prior to the recent update.

tehn commented 6 years ago

this is correct behavior.

there's a "clean shutdown" flag that is set (to the system.lua file) when executing "sleep"

if matron is quite any other way, the shutdown is regarded as not clean, and the last script will not be reloaded. this is to protect from infinite-loop broken script loading after reboot.