audio engine fail after update, sometimes #799
Comments
|
i have a vague suspicion that this is somehow related to the way we add SC include paths (with that is:
|
|
if thus is indeed what's happening, we could a) run |
|
how about removing |
|
I guess alternatively we could just have a fixed |
|
that seems dangerous, since the .yaml can be blasted by sclang any time |
|
My experience over the last day or two - reboot I get the screen showing A start/stop or RESET and I'm usually back in business. FWIW - I had killed the .yaml file the other day, but all the paths seem valid right now |
|
@catfact only if |
|
i have not dug deep into whats up w/ the .yaml lifecycle, but yea - paths should be valid after running sclang a couple times, no matter what you do. is there any actual objection to symlinks? (i know i made an objection to them at some long-ago time, but i was being an idiot - my problem is that when i use emacs to edit |
|
i don't like symlinking every sc file, but symlinking to the directories i'm totally fine with |
|
@antonhornquist i'm sure you're right. my understanding is pretty vague. |
|
(it was a bit of a hassle to run |
|
Further data point - this error happens for me on every boot so far today. So I don't think its related to updating. EDIT - Not sure what logs would be helpful to look at here. Any pointers would be appreciated. |
@antonhornquist yea we don't need to do that at all. sorry about that.
ok @okyeron ok that's.. very weird. that's not happening to me or (AFAIK) anyone in the dev group. |
|
@okyeron what's the output of sclang in those occurences? i have had zero errors like these recently |
|
How can I get the sclang output on reboot? (I am on RasPi so maybe it's something not showing on norns hardware) |
|
@okyeron i believe |
|
nada
|
Just checked the sources and seems to indeed only happen when calling |
|
@okyeron |
|
@okyeron If you get this reliably on every boot you could disable/mask I'm afraid it's output is getting eaten by the ws-wrapper/interactive terminal interaction [edit] Sorry masking won't work, you'll have to move the unit
And then restart. Once done move it back using
|
Now I'm getting NONE on reboot, but when I try to load a script - no audio and lots of these:
I'm going to get my second device updated to today's and see if I can reproduce |
|
FWIW - Pi-norns number 2 is not reproducing the error. Not sure what's happening. So I probably need to do more research/digging. Apologies if that was a false alarm |
|
btw the |
|
One more weird anecdote - i just tried removing all my 3rd party scripts - leaving only current versions for awake, mlr, ash and we (pulled from git within the last hour) - and reboot went just fine (a couple times in a row) Going to try re-installing these from github and see if any one causes my error (fwiw - none of those include an engine, so... ¯_(ツ)_/¯ ). |
|
@okyeron Sorry, my initial instructions were incorrect, updated the comment #799 (comment) |
|
|
Followup... I found a difference between my setups: in problematic PI has this: non-problematic Pi has older version of the jack service with: |
|
This may be entirely a RasPi problem, but I thought I should share this possible solution: older pi still This had beed edited for RasPi and the only thing it was doing is this: The newer install did not have I added this back in and my boot problems have gone away. |
|
Hmm, strange. That would seems to indicate a problem with the order in which the components are being started. Still in that case sclang should fail and you should see that when looking at its logs or status. Regarding the governor: If you look at |
|
can we close this? |
|
that quote from @tehn was the entirety of my information. @okyeron report seemed related. my theory was about the classpaths / yaml / &c because tehn's report was in the beta while we were still messing with this - i don't even know which update scripts were referred to. by all means, let's keep it open if mysterious jack failures on boot are still a thing. |
|
@okyeron Are you still able to reproduce this issue? |
|
@simonvanderveldt I've not had it happen again since adding that norns-init file back into my startup. I can try reversing that process and see what happens. I'm wondering if this is something that's has been set on most people's devices over time, but happens with a completely fresh build? So - I took away norns-init.service and change scaling_governor to "powersave" which I believe is the default with the stock stretch install. Reboot and I get the error: Audio Engine. If I then SYSTEM>RESET, things startup just fine. Here's some systemctl status dumps after boot (with the error on screen)
|
|
FWIW - adding the norns-init.service back (with scaling_governor set to performance) and things work Ok again - But... the jack startup looks a little bit different. Here's a comparison of the two First this is
Second is
|
|
@okyeron regarding the governor: This is different for the norns kernel vs the default raspberry kernel, you probably want to make sure you're using the Regarding the issue with JACK, I don't really understand it tbh. It doesn't really make sense that it's caused by the difference in CPU performance because of a different governor since Any chance you could produce the charts I linked above? |
|
@simonvanderveldt Since I'm building a kernel for the Raspi install, I'd like to get it as close to the norns kernel as possible. I did some comparisons of the I tried making the FWIW - I don't think jack_wait is involved here - when I looked at the While trying to get a a few other people installed we're seeing some issues with the systemd units causing an audio engine error at boot - I think because crone is not properly getting a local network?* *we need to skip using network manager for wifi until the very end of the install process - and with network/interfaces set to use wpa_supplicant we get that error. Still working on that process to hopefully make it better/smoother. |
We don't really do anything specific with the kernel at the moment apart from removing stuff we're never going to need and add the drivers for norns hardware. It's your time but I wouldn't waste my time on building a kernel specifically for the RPi for this ;)
Sorry, I should've probably been slightly more specific.
Tbh I don't know if that would matter. Even without NetworkManager or wpa_supplicant running you should be able to just run the norns components and they should just work. Unless I'm misunderstanding you. |
Depending on what stock kernel we start with on Raspi, we need to compile in the ssd1322 display driver module. There's also a setting in the config to default to the performance governor. (I've also been testing with the realtime kernel that PatchboxOS is using) FWIW - I need to re-test with the full release version of the norns kernel. In previous betas it would not boot on a regular pi3b+. Perhaps the tweaks for the CM3+ have fixed that for pi3b+ as well.
I think there might be something going on where localhost is not yet available to crone and that might be causing the audio engine error. as an example - if you added |
|
@simonvanderveldt @catfact Hey ya know what... I think I know what the cause is for the original issue here... In building a install script for the raspi, we need to run So if a user has a brand new install, it's likely they will have this error. The trick we came up with in our install script was to run |
|
can we close this? i'm saying yes, provisionally. it seems like it would only matter if an update changes include paths for sclang. this is not a common occurence. if we need to do that, then there are a couple ways for the update script to perform a workaround. even if we did nothing, it's not much of a problem since a soft RESET will also fix it. if it needs more attention, maybe we can open a more focused issue explaining why, with a clean slate. |

quoting @tehn:
note: i’ve sometimes seen a fresh startup with “audio engine fail” after update. either reboot or RESET through the menu and everything will be happy. trying to locate the reason for the first-up error (that then goes away)
The text was updated successfully, but these errors were encountered: