timrowledge
Posts: 1158
Joined: Mon Oct 29, 2012 8:12 pm
Location: Vancouver Island
Contact: Website

NuScratch: Does your system lock-up when sounds are used?

Sat Feb 22, 2014 1:57 am

I've been having really annoying problems with sounds; playing a sound almost always completely and utterly locks up my pi. No cursor movement, no response via any remote shell (from my iMac for example), nothing. I have to power-off and restart. This seems finally to have buggered my SD card, leaving me to rebuild a new one and find all those packages I had installed.

I'm interested to know if it is just my machine, indicating some possible file corruption before-hand, or if it happens to anyone else, indicating some sound related software issue. Or indeed anything else that might help work out what on earth is going wrong.

I have good evidence it isn't anything to do with my Scratch code changes since the system works perfectly well on OSX & RISC OS. That almost certainly rules out corruption of the sound samples for example since the same project files are used.

Of course, hints for a way of avoiding the impolite power-off-power-on cycle would be welcome too. Is there some magic key I ought to be pressing to kill my errant process?
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: NuScratch: Does your system lock-up when sounds are used

Sat Feb 22, 2014 2:20 am

everybody take note: this is how topic titles should be made. I'm sorry I have nothing useful to contribute :/
note: I may or may not know what I'm talking about...

timrowledge
Posts: 1158
Joined: Mon Oct 29, 2012 8:12 pm
Location: Vancouver Island
Contact: Website

Re: NuScratch: Does your system lock-up when sounds are used

Sat Feb 22, 2014 3:53 am

Small update; after building a completely new SD card I tried the system again.
Not good; attempting to make sounds freezes up everything as before.
If I run Scratch with the -vm-sound-null option to not make any actual sounds then all is well, if a bit quiet. (duh!)

So, what could make the sound system so catastrophically terminal?
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

ghp
Posts: 1244
Joined: Wed Jun 12, 2013 12:41 pm
Location: Stuttgart Germany
Contact: Website

Re: NuScratch: Does your system lock-up when sounds are used

Sat Feb 22, 2014 9:28 am

Hello Tim,

found system freezes with scratch-rasp-rel3 on various sd-cards.
But found freezes also (see bug list thread) on scratch-rasp-1.4 for some use cases. Occurred also on fresh cards.

regards,
Gerhard

timrowledge
Posts: 1158
Joined: Mon Oct 29, 2012 8:12 pm
Location: Vancouver Island
Contact: Website

Re: NuScratch: Does your system lock-up when sounds are used

Mon Feb 24, 2014 7:13 pm

Well I did a rpi-update and on my pi, with my setup, today - it isn't locking up immediately.

I've seen quite a bit of reportage about similar issues though, so it probably isn't anything I, or any other Squeak/Scratch dev has caused. Maybe the latest updates have improved things?

Please, keep reporting any sound issues on this thread.
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

mob-i-l
Posts: 216
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

Re: NuScratch: Does your system lock-up when sounds are used

Sat Mar 21, 2015 1:46 pm

Scratch locked up when I was testing the sound, and I can't kill it even by using sudo kill -9 <process id of squeak>. The whole system didn't lock up, just Scratch. My sound-system for alsa might have crashed before this because I tried text-to-speech software, but omxplayer still works. I succeeded to kill all alsa-related processes except squeak.

Code: Select all

$ sudo ps aux | grep alsa
pi        1637  0.0  0.4   4100  1812 pts/10   S+   13:12   0:00 grep --color=auto alsa
pi        9662  0.1  7.0 176540 27024 tty1     D    02:18   0:53 /usr/bin/../lib/squeak/4.0-3145/squeak -memory 128M -vm-sound-alsa /usr/share/scratch/NuScratch140115.image 
$ sudo kill -9 9662
$ sudo ps aux | grep alsa
pi        1912  0.0  0.4   4100  1836 pts/10   S+   13:13   0:00 grep --color=auto alsa
pi        9662  0.1  7.0 176540 27024 tty1     D    02:18   0:53 /usr/bin/../lib/squeak/4.0-3145/squeak -memory 128M -vm-sound-alsa /usr/share/scratch/NuScratch140115.image
Raspberry Pi0&1A&1B2&1B+&2B&3B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… https://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://twitter.com/mobluse/ https://YouTube.com/MOBiL4u/

timrowledge
Posts: 1158
Joined: Mon Oct 29, 2012 8:12 pm
Location: Vancouver Island
Contact: Website

Re: NuScratch: Does your system lock-up when sounds are used

Mon Mar 23, 2015 5:02 pm

That doesn't look happy. Alsa is causing enough pain in various dimensions that we may have to bite the pullet and chicken out. Maybe pulseaudio is less problematic? Anyone expert enough on linux sound stuff to have a good opinion of any particular system we might use?
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

Return to “Scratch”