Page 2 of 2

Re: Bugs and regressions

Posted: Sat Feb 22, 2014 12:55 am
by ghp
Hello,

system freeze when using multiple sounds and stopping sounds.
Version is raspbian scratch.

Difficult to reproduce. The application plays two sounds; now and then the app 'stop all sounds'.
Happened quite often on one system of six, the only difference in the scratch app was the usage of sounds. In the scratch application, there is a button which stops/restarts sounds. As I remembered current sound problems in new scratch Tim Rowledge works on, I removed the second sound and the stop sounds.
From this point on, the system was stable for the next two hours. Before, it crashed every five minutes.

Regards,
Gerhard

Re: Bugs and regressions

Posted: Mon Feb 24, 2014 6:47 pm
by timrowledge
I'm having a lot of problems with sound too; see the http://www.raspberrypi.org/forum/viewto ... 77&t=70204 thread. It's not just with the NuScratch though - I've found a lot of reports of ALSA (at least) related lockups.

Re: Bugs and regressions

Posted: Tue Apr 08, 2014 2:53 am
by krett12
Well, you can also use the forum on Scratch. (scratch.mit.edu/discuss/3)

Also, why not just give the original copy of Scratch 1.4

Keep in mind that the latest version of Scratch is based in Flash, so you can't run it on the Pi.

My ACCOUNT is new, but I've had my device for a long time, so please treat me like I've got just as much experience as you do.

Re: Bugs and regressions

Posted: Tue Apr 08, 2014 2:55 am
by krett12
Scratch is always frozen when I choose 'Help page', 'Help screens' and 'Go To Scratch Website'. All of those menus send ScratchPlugin class>>primOpenURL:. Something might be wrong with primitiveOpenURL.
Thank you for your help.

What do you know about the underlying Squeak? (That's not a challenge, I mean literally)

utf8 in remote sensor protocol

Posted: Thu May 01, 2014 8:08 pm
by ghp
bug or feature ?

Hello,
starting from a thread http://www.raspberrypi.org/forums/viewt ... 77&t=76056 I did some examinations on the handling of code pages in remote sensor protocol.

I send a 'broadcast "test_äöüÄÖÜß"' from remote to scratch which uses popular german umlaut characters. Basic is the encoding nneded which is utf-8 for these chars. In scratch, these chars are not decoded correctly, but same in windows scratch 1.4.
I double checked the bytes sent on the socket by a simple socket server implementation.

The scratch wiki page says:
Words and strings are encoded in UTF-8. ...
Here are the two most useful message types:
broadcast <string>
The other way round from scratch to scratchClient, the special chars are encoded correctly.

Regards,
Gerhard

Re: Bugs and regressions

Posted: Fri Apr 24, 2015 12:25 pm
by mob-i-l
I discovered a bug that exists in scratch, but not in scratch.old. I upgraded Raspbian today before testing using

Code: Select all

sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
I include a file that demonstrates the bug. It should play the pop-sound and then wait 3 seconds, and then play the pop-sound again. In about every fifth press of the green flag there is only one sound -- sometimes the first pop, sometimes the second. It always works in scratch.old. I start using:

Code: Select all

scratch poppop.sb

Code: Select all

scratch.old poppop.sb
I noticed one other strange thing. If I save the project in scratch.old and open it in scratch then it says that the sensors are enabled and one has to confirm this. It seems as if the project saved in scratch.old works with the pop-sounds in scratch (new), but I have not investigated this so it might be a wrong conclusion. I also noted that after you play a sound in scratch.old there is a noise that only ends when you close scratch.old.

I tested this on Raspberry Pi 1 B+ with analog sound.

Re: Bugs and regressions

Posted: Sun Oct 04, 2015 11:21 pm
by mob-i-l
mob-i-l wrote:I discovered a bug that exists in scratch, but not in scratch.old.
Now I tested this file poppop.sb with Scratch 1.4 (Linux) of 2015-09-15 in Raspbian Jessie on Raspberry Pi 2 B using analog sound, and now it works even less times. Most of the times there is no sound at all.

Re: Bugs and regressions

Posted: Mon Oct 05, 2015 4:16 am
by ghp
Hello, can reproduce this in my environment. Other sounds work. See https://github.com/raspberrypi/scratch/issues/150

Re: Bugs and regressions

Posted: Tue Oct 06, 2015 7:09 pm
by timrowledge
Some experiments imply that it might be a combination of the very small amount of data in the 'pop' and code that tries to suspend the sound player process when possible to save cpu cycles. We'll see what we can do about that.

Re: Bugs and regressions

Posted: Sun Mar 06, 2016 10:43 am
by magoeny
Hello

I am workin out scratch gpio projects for students (weather station, word clock). now I can't import my saved projects after reinstalling raspbian. --> MessageNotUnderstood: ObjectStream >>unused

Is this a bug?
Cold it be, because I didn't give default values to my variables?
How can I fix this, without rewriting the whole programs?

Thanks for any help,

Mathew

Re: STICKY: Bugs and regressions

Posted: Sat Sep 15, 2018 10:13 pm
by boomonster
Hi,
I have a Pi 2 that I make games on. I use Scratch 1.4.
I am making my own version of space invaders, and when I tried
to import sound, or play it in the sounds palette on any sprite, I
got no errors or anything that I could see - but the sounds wouldn't
play. Then I ran scratch from a terminal, and when I tried
importing/playing any sounds, I got this wierd error in the terminal-here's
the full error:

Code: Select all

sound_Start(default)
soundStart: snd_add_pcm_handler:Function not Implemented
And I get that error twice. Am I just missing a package, or
does scratch need a patch there?

Boomonster

Re: STICKY: Bugs and regressions

Posted: Tue Sep 18, 2018 6:41 pm
by timrowledge
That suggests that the VM tried to connect to the sound driver and couldn’t find it.
First thing is to check that you ran ‘/usr/bin/nuscratch’ in order to run the latest version. If that still fails, try ‘sudo nano /usr/bin/nuscratch’ and it ought to be including something like ‘-vmsound alsa’ (I’ll try to check that later) and if that is still correct perhaps something has changed in the sound driver world?

Re: STICKY: Bugs and regressions

Posted: Wed Sep 19, 2018 2:06 am
by boomonster
I'll check this weekend. I have also installed Audacity, and a few PulseAudio gimicks. Would any of those interfere?

Re: STICKY: Bugs and regressions

Posted: Wed Sep 26, 2018 1:11 am
by boomonster
I checked /usr/bin/nuscratch, but when I used nano to check the file, nano said there was no such file. I checked, and there is a
/usr/bin/scratch file, which I checked, and it has the "-vm-sound alsa" option for sound, but I am still getting that error, and no sound. :(
Otherwise could I go into /usr/share/scratch and find the newest Squeak Image file and run it via the "squeak imagefile" command?