If you are continually getting the infinite "Loading" message when running Scratch projects on the web, you may need to increase your Java Heap Memory settings.
To verify that this is the problem, Right-click on the Java icon in the system tray (while looking at a project) and select "Open Console". Then, try and open a large project that you are having trouble with and see if an error message is being generated indicating that the heap memory is being exceeded.
If it is, Right-click on the Java icon again and select "Open Control Panel". You may have to give permission to the computer to run a few things if you are using a paranoid operating system like Vista. Once you have the Control Panel running, go to the Java tab. Then click on the View button for the Java Applet Runtime Settings. Then, click on the Java Runtime Parameters field and type in "-Xmx128m". Don't type the quotes. This will set your Java heap to 128 megs which should be enough for most Scratch projects. I suppose you can try higher values but don't go overboard.
I don't think the new settings take effect until you restart your browser so do that too.
For a very nice illustrated description of this same procedure, see this posting
http://scratch.mit.edu/forums/viewtopic.php?id=13963
Offline
I think this is the same problem I have, how to fix on Mac OS X?
EDIT: I can access preferences but there is no "Heap Size" option...
EDIT2: -Xmx128m
I see now.
Last edited by osama777 (2008-11-18 22:23:21)
Offline
Oh wow it worked! This should have been posted in the FAQ ages ago. Thanks a ton Paddle2See
Maybe this should be renamed to "why doesn't the loading bar go away?"
I don't think that a ton of people know what Java Heap Memory is.
Last edited by archmage (2008-11-18 22:32:18)
Offline
archmage wrote:
Oh wow it worked! This should have been posted in the FAQ ages ago. Thanks a ton Paddle2See
Maybe this should be renamed to "why doesn't the loading bar go away?"
I don't think that a ton of people know what Java Heap Memory is.
and thanks for the Son Of String Art
Offline
its brilliant
Offline
i don't understand what your saying. Could you please put it in English for me. I'm just a kid
Offline
Wow, that is incredibly useful......seriously, that should have its own page with a link in the footer of the site!
Offline
Great work P2S! It works
Since you seem to know your stuff, I wonder if you could help me. While playing a game called Runescape (online mmporg) every now and then when i switch windows, and then switch back to the Runescape window, I think Java crashes as game window turns all white and I get a Read Me file called Hs Error
This is a bit of what it contains:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d06fe52, pid=1812, tid=2492
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode, sharing windows-x86)
# Problematic frame:
# C [awt.dll+0x6fe52]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Any idea how to stop this?
Offline
Sorry Dan01 - I have no idea what is causing your Runescape problem with Java. I'm not all that experienced with Java - I just know enough to be dangerous! Have you tried the Runescape forums to see if anybody there has a solution? Have you tried just running multiple browser instances so you don't have to switch windows?
Offline
Paddle2See wrote:
Sorry Dan01 - I have no idea what is causing your Runescape problem with Java. I'm not all that experienced with Java - I just know enough to be dangerous! Have you tried the Runescape forums to see if anybody there has a solution? Have you tried just running multiple browser instances so you don't have to switch windows?
I have asked on the forums but they just said reinstall Java and it should work. I'll ask again anyway. Also, it happens even if I switch tabs in the same internet window (using Internet Explorer 7 I think)
Anyway, thanks for trying.
Offline
Good tip! If I can remember it (lol, I think i'm going senile early) I will try it!
Offline
Doesn't work for me! the Java Runtime Parameters field isnt there! it just isnt there!
Last edited by theevilone-mwhaha (2008-12-28 06:16:47)
Offline
Hopefully this'll work but ill have to ask my dad cause I dont have admin rights after I got over 100 items of spyware and a virus.
Offline
Great thanks for the help paddle2see, you are a great member of scratch
Offline
Thank you Mark, but I agree with Archmage that the title could be something better because I think the many people here don't know what Java Heap Memory
, so they don't look at this topic.
Offline
How do you do this on Mac OS 10.6.1?
[blocks]<think[ GAAH! This is crazy! ]for( infinite )secs>[/blocks]
Last edited by timothymh (2009-10-04 17:56:50)
Offline
That space that you enter the number in is blank on my CPU
Offline
Open applications.
Go to utilities.
Open "Java Preferences"
Go to the "Network" tab
Set compression level to "High"
Set the value to 1000mb
Hope this helped
Worked for me at least.
Offline
MrWhiskers wrote:
i don't understand what your saying. Could you please put it in English for me. I'm just a kid
Hey im a kid too
Offline
Lanie wrote:
Thanks Paddle2See your a genius lol, im going to go do this right now. I never knew that the reason of them not loading was because of the Java settings
I think I have to increase the BBcode heap space too, your signature won't load ^^
Offline