This is probably going too far in my love of destroying things, but I must know how to crash Scratch!
I tried telling Scratch to do the calculations tan 90 (which equals infinity) and #/0 (I don't actually know why this is an impossible calculation). They didn't work. Any other ideas?
Offline
meew0 wrote:
The calculation of sqrt(-1) or 0^1 doesn't work.
Maybe this:
[blocks]
<when green flag clicked>
<forever>
<change{ variable }by( 1
<end>
[/blocks]
Or download BYOB and make an infinity recursion.
I've done that script HUNDREDS of times. Did it crash? Nuh-uh.
If you want to crash Scratch in a different way, take out the hard drive, somehow-impossibly cut out ONLY the parts with the Scratch program in it, glue those microscopic pieces together, and attach it to 4 tiny wheels and make it go down a hill.
Offline
Hmmmm... there was something about trying to expand the Scratch Cat to a large size to get Squeak almost out of memory. I just tried it (with "9999999999"), and Scratch just froze...
Of course, you wouldn't expect Scratch to make a sprite that large.
Offline
Jonathanpb wrote:
Hmmmm... there was something about trying to expand the Scratch Cat to a large size to get Squeak almost out of memory. I just tried it (with "9999999999"), and Scratch just froze...
![]()
Of course, you wouldn't expect Scratch to make a sprite that large.![]()
Well, of course. The single cat takes up 3 kilobytes of memory by itself, a sprite that big would use 29,999,999,997 kilobytes of memory... 30,000,000 megabytes, 30,000 gigabytes, 30 terrabytes. Even my hard drive only has half a terrabyte...
Offline
GurkinC wrote:
Why crash scratch anyway?
I know how to, and I`ve done it before, but I don`t see the point...
I have a passion for breaking things.
Offline
If I try the super enormous cat trick, all it does is limit it to 486. I still think the answer lies in impossible calculations....
Offline
BWOG wrote:
meew0 wrote:
The calculation of sqrt(-1) or 0^1 doesn't work.
Maybe this:
[blocks]
<when green flag clicked>
<forever>
<change{ variable }by( 1
<end>
[/blocks]
Or download BYOB and make an infinity recursion.I've done that script HUNDREDS of times. Did it crash? Nuh-uh.
If you want to crash Scratch in a different way, take out the hard drive, somehow-impossibly cut out ONLY the parts with the Scratch program in it, glue those microscopic pieces together, and attach it to 4 tiny wheels and make it go down a hill.
Hahaha! I get it but I think there are easier ways.....
Offline
RacerZmanx1 wrote:
I have a passion for breaking things.
Take the Scratch.image file and open it with an hex editor. Change a few bytes at random places. Try to run Scratch...
The sqrt(-1), division by zero, variable overflow won't crash Scratch (or shouldn't) as they are well known limitations that must be gracefully handled by the program, particularly in a beginner friendly language like Scratch... :-)
If you want to test memory bounds, you can also loop on adding a char to a string variable...
Offline
Phi_Lho wrote:
If you want to test memory bounds, you can also loop on adding a char to a string variable...
Don't steal me the idea!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Look 3 posts up ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Offline
meew0 wrote:
I have another way.
http://imgur.com/1xIQ1.gif
We have a winner.
Offline
Divide 0 by 0 causes a rather good error...
Offline
Phi_Lho wrote:
RacerZmanx1 wrote:
I have a passion for breaking things.
Take the Scratch.image file and open it with an hex editor. Change a few bytes at random places. Try to run Scratch...
The sqrt(-1), division by zero, variable overflow won't crash Scratch (or shouldn't) as they are well known limitations that must be gracefully handled by the program, particularly in a beginner friendly language like Scratch... :-)
If you want to test memory bounds, you can also loop on adding a char to a string variable...
Sorry guys, but I use Scratch at programming Scratch genius level, not all-round programming genius level. As a result, I have no idea what you just said....
Offline
And I'm sorry, but none of these (at least the ones that I can understand) worked. Yes, Scratch slowed down, but it hasn't crashed.
Offline
RacerZmanx1 wrote:
And I'm sorry, but none of these (at least the ones that I can understand) worked. Yes, Scratch slowed down, but it hasn't crashed.
Use every method with 13 variables.
(use the method 13 times)
Offline
RacerZmanx1 wrote:
Phi_Lho wrote:
RacerZmanx1 wrote:
I have a passion for breaking things.
Take the Scratch.image file and open it with an hex editor. Change a few bytes at random places. Try to run Scratch...
The sqrt(-1), division by zero, variable overflow won't crash Scratch (or shouldn't) as they are well known limitations that must be gracefully handled by the program, particularly in a beginner friendly language like Scratch... :-)
If you want to test memory bounds, you can also loop on adding a char to a string variable...Sorry guys, but I use Scratch at programming Scratch genius level, not all-round programming genius level. As a result, I have no idea what you just said....
That is like saying you can read Dr Seuss books at a genius level but not real novels at a genius level...
Anyways, scratch is designed to not crash. One way to make typically programs crash is to create an infinite loop but since scratch adds time delays to some blocks and it is never given more than it can handle.
You can't really crash scratch and make it freeze up (especially in the online player) but you can make it go slowly and run out of memory.
Try making a script that has over 1000 blocks in a forever loop that add a randomly generated number to a list.
Offline
Oh, i just thought a good one, make a block in the scratch code that will work, but basicaly do a whole load a bad things, no idea what but it might work. You can leave the contents of that block to the squeak programmers.
Offline
Have you tried this? http://scratch.mit.edu/projects/juststickman/993494
Just click on
[blocks]<broadcast[ [/blocks]
In the block palette.
Offline
The best way to crash scratch is to make a project with tons of scripts containing lists and variables. Not that I am suggesting anyone to do so.
Offline
make a 1 pixel sprite, add another costume that is a scratch cat, then switch to the 1 pixel costume, set size to 99999999999999 then switch it to the second costume.
Offline
meew0 wrote:
I have another way.
http://imgur.com/1xIQ1.gif
That didn't work.
All I got was this:
Slow Scratch
Squeak is almost out of memory error
Offline