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

Re: Bugs and regressions

Sat Feb 22, 2014 12:55 am

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

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

Re: Bugs and regressions

Mon Feb 24, 2014 6:47 pm

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.
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

krett12
Posts: 2
Joined: Tue Apr 08, 2014 2:48 am

Re: Bugs and regressions

Tue Apr 08, 2014 2:53 am

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.

krett12
Posts: 2
Joined: Tue Apr 08, 2014 2:48 am

Re: Bugs and regressions

Tue Apr 08, 2014 2:55 am

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)

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

utf8 in remote sensor protocol

Thu May 01, 2014 8:08 pm

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

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

Re: Bugs and regressions

Fri Apr 24, 2015 12:25 pm

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.
Attachments
poppop.zip
Contains sb-file reproducing bug.
(2.59 KiB) Downloaded 326 times
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/

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

Re: Bugs and regressions

Sun Oct 04, 2015 11:21 pm

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.
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/

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

Re: Bugs and regressions

Mon Oct 05, 2015 4:16 am

Hello, can reproduce this in my environment. Other sounds work. See https://github.com/raspberrypi/scratch/issues/150

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

Re: Bugs and regressions

Tue Oct 06, 2015 7:09 pm

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.
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

magoeny
Posts: 1
Joined: Sun Mar 06, 2016 10:11 am

Re: Bugs and regressions

Sun Mar 06, 2016 10:43 am

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

User avatar
boomonster
Posts: 61
Joined: Fri May 11, 2018 11:18 pm

Re: STICKY: Bugs and regressions

Sat Sep 15, 2018 10:13 pm

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

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

Re: STICKY: Bugs and regressions

Tue Sep 18, 2018 6:41 pm

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?
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

User avatar
boomonster
Posts: 61
Joined: Fri May 11, 2018 11:18 pm

Re: STICKY: Bugs and regressions

Wed Sep 19, 2018 2:06 am

I'll check this weekend. I have also installed Audacity, and a few PulseAudio gimicks. Would any of those interfere?

User avatar
boomonster
Posts: 61
Joined: Fri May 11, 2018 11:18 pm

Re: STICKY: Bugs and regressions

Wed Sep 26, 2018 1:11 am

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?

Return to “Scratch”

Who is online

Users browsing this forum: No registered users and 1 guest