monome / norns

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

sclang crash on system time sync #399

Open tehn opened 6 years ago

tehn commented 6 years ago

sclang crashes when time/date change by a substantial amount

tehn commented 5 years ago

short term solution.

sudo systemctl stop norns-crone
sudo systemctl start norns-crone
tehn commented 5 years ago

sudo systemctl stop norns-crone doesn't work.

we'll have to do

killall sclang
killall supernova
simonvanderveldt commented 5 years ago

sudo systemctl stop norns-crone doesn't work.

@tehn Why doesn't that work?

catfact commented 5 years ago

@simonvanderveldt @tehn it works for me

catfact commented 5 years ago

three more points:

tehn commented 5 years ago

oh indeed it works, i made a mistake in my launching earlier.

slick fadeout

!!!

would be nice on shutdown as well.

lazzarello commented 5 years ago

I've run into reproducible screen lock ups, button latency and audio drop outs when I turn on wifi. I'm worried that all these hard resets might make the filesystem on the eMMC get corrupt. So I've been doing a reboot via SSH, which doesn't actually reboot the screen or wifi.

I wonder if disabling NTP will fix this problem? Now that I have a shell, I'm tempted to do "normal linux stuff".

tehn commented 5 years ago

@lazzarello when you turn on wifi and NTP sync's you MUST reboot crone. otherwise you'll experience problems.

i'm preparing an update which disables crone on wifi connection, and implemented a menu option to reboot crone.

ngwese commented 5 years ago

fyi: i'm running into problems with the new wifi logic.

  1. power up, load earthsea
  2. go to SYSTEM > WIFI > NETWORK
  3. select the desired network, confirm password, OK ...at this point i'm immediately taken to the main SYSTEM menu again (not the WIFI sub menu as previous) ...the loaded script say AUDIO ERROR which is somewhat expected since the engine just got stopped.
  4. navigate to SYSTEM > WIFI > NETWORK again and the status reads failed
  5. select SYSTEM > RESET AUDIO ...when returned to the menu and select a script they don't load, i can only get as far the the script help screen
  6. attempt to enable wifi again and i always get "password fail"
  7. second attempt at RESET AUDIO appears to work
tehn commented 5 years ago

thanks for the report. i need to prioritize a wifi overhaul.

the only thing that changed is that upon wifi activation crone is shut down (to be manually re-activated after connection is established.) i should add a message when activating wifi that explains this.

i'm not sure why it would take two attempts, and why wifi is still saying failed, however.

simonvanderveldt commented 3 years ago

@tehn Why was this closed? I don't think we have a solution for this yet, right?

tehn commented 3 years ago

this was closed in the great-ticket-purge at the march meetup. likely as it wasn't reported as a problem for some time.

have there been issues with this? (AFAIK, no?)

simonvanderveldt commented 3 years ago

It still happens every now and then that someone runs into this. Maybe we should keep this open keep track of it? Although realistically there isn't much we'll be able to do about it ourselves.

antonhornquist commented 3 years ago

Mentioned by @lazzarello: ” I wonder if disabling NTP will fix this problem? ”

This is probably one way to address this. Or have people manually sync upon confirming that the script/engine is restarted or something (weird ”fix” but would probably work anyhow).

antonhornquist commented 3 years ago

And this is messy still - any engine and script using a high rate polls stall upon time change. I think there’s reason to reopen this.

tehn commented 3 years ago

ah, i forgot about the poll-heavy crash on startup w/ wifi attached.