ghp
Posts: 1146
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: 1068
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: 1146
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: 204
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook 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 225 times
Raspberry Pi0&1A&1B2&1B+&2B&3B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… http://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://www.youtube.com/MOBiL4u/ https://twitter.com/mobluse/

mob-i-l
Posts: 204
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook 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… http://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://www.youtube.com/MOBiL4u/ https://twitter.com/mobluse/

ghp
Posts: 1146
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: 1068
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

Return to “Scratch”

Who is online

Users browsing this forum: No registered users and 1 guest