This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-07-26 11:51:58

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Squeak running out of memory.

I get a red box saying that Squeak is running out of memory. Then the whole program stops and I have to open task manager to close Scratch (the close button doesn't work). Is there are way to prevent this?


http://i46.tinypic.com/ao03lk.png

Offline

 

#2 2012-07-26 12:04:50

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Squeak running out of memory.

Save often -- If you dont save, the likelihood of running out of memory increases.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-07-26 12:14:14

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Squeak running out of memory.

I do. After the first time it happened I saved every 5 minutes. I can't really do much before I get the message. (move only one or two blocks).


http://i46.tinypic.com/ao03lk.png

Offline

 

#4 2012-07-26 12:54:55

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Squeak running out of memory.

Also make sure there aren't other programs running that use a lot of memory like Firefox, antivirus, email, etc

other than that, there isn't much else you can do, maybe try re-installing.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#5 2012-07-26 13:56:04

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Squeak running out of memory.

Ok, thanks I'll try that.


http://i46.tinypic.com/ao03lk.png

Offline

 

#6 2012-07-27 01:57:43

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Squeak running out of memory.

Are you building long scripts? Scratch can die if you're doing a mighty 1s1s project or something, there are sometimes people complaining about it in Troubleshooting  tongue

Last edited by Chrischb (2012-07-27 01:58:59)


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#7 2012-07-27 05:48:18

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Squeak running out of memory.

Chrischb wrote:

Are you building long scripts? Scratch can die if you're doing a mighty 1s1s project or something, there are sometimes people complaining about it in Troubleshooting  tongue

Yes, they are quite long. Do you think single stepping would slow it? I've used that a lot.

Also, when you say that the scripts are too long, does that mean that there are too many scripts for one sprite or that one continuous script goes for too long? What I mean is, If I broke down the scripts in one sprite (using multiple "when I receive [message]" blocks), would that save memory?


http://i46.tinypic.com/ao03lk.png

Offline

 

#8 2012-07-27 05:54:04

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Squeak running out of memory.

Lots of c blocks and long scripts really makes this problem worse. More broadcasts can help, and quitting other open applications can help as well, up to a limit.

The real problem is that scratch is a 32bit application, and cannot utilize all available memory on 64 bit operating systems.

How much ram do you have installed?


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#9 2012-07-27 06:15:25

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Squeak running out of memory.

jji7skyline wrote:

Lots of c blocks and long scripts really makes this problem worse. More broadcasts can help, and quitting other open applications can help as well, up to a limit.

The real problem is that scratch is a 32bit application, and cannot utilize all available memory on 64 bit operating systems.

How much ram do you have installed?

the real problem is that scratch is limiting itself -> the vm won't use more memory than amount set at the start, even if your computer has more.

Offline

 

Board footer