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

#1 2010-04-16 15:29:26

RacerZmanx1
Scratcher
Registered: 2009-01-01
Posts: 54

How can I crash Scratch?

This is probably going too far in my love of destroying things, but I must know how to crash Scratch!  tongue

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?


Fight for what is good, fight against what is bad, and be as epic as the entire Pokemon series while doing so.

Offline

 

#2 2010-04-16 15:36:29

GurkinC
Scratcher
Registered: 2009-11-30
Posts: 100+

Re: How can I crash Scratch?

Why crash scratch anyway?

I know how to, and I`ve done it before, but I don`t see the point...


Try my latest game, Rolling 2, a 10-level platform game based around the gravity marble.

Offline

 

#3 2010-04-16 15:52:43

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: How can I crash Scratch?

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.


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#4 2010-04-16 16:46:34

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: How can I crash Scratch?

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

 

#5 2010-04-17 02:23:14

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: How can I crash Scratch?

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

Of course, you wouldn't expect Scratch to make a sprite that large.  tongue


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#6 2010-04-17 02:48:25

Common_Sense
Scratcher
Registered: 2009-12-21
Posts: 100+

Re: How can I crash Scratch?

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

Of course, you wouldn't expect Scratch to make a sprite that large.  tongue

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


http://i44.tinypic.com/6dvort.png

Offline

 

#7 2010-04-17 04:03:02

RacerZmanx1
Scratcher
Registered: 2009-01-01
Posts: 54

Re: How can I crash Scratch?

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.


Fight for what is good, fight against what is bad, and be as epic as the entire Pokemon series while doing so.

Offline

 

#8 2010-04-17 04:04:50

RacerZmanx1
Scratcher
Registered: 2009-01-01
Posts: 54

Re: How can I crash Scratch?

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


Fight for what is good, fight against what is bad, and be as epic as the entire Pokemon series while doing so.

Offline

 

#9 2010-04-17 04:06:23

RacerZmanx1
Scratcher
Registered: 2009-01-01
Posts: 54

Re: How can I crash Scratch?

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  tongue  but I think there are easier ways.....


Fight for what is good, fight against what is bad, and be as epic as the entire Pokemon series while doing so.

Offline

 

#10 2010-04-17 06:04:37

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: How can I crash Scratch?

I have another way.

http://imgur.com/1xIQ1.gif

Last edited by meew0 (2010-04-17 06:05:34)


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#11 2010-04-17 06:06:00

Phi_Lho
Scratcher
Registered: 2010-03-22
Posts: 75

Re: How can I crash Scratch?

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


http://i241.photobucket.com/albums/ff159/PhiLho/KM150.pnghttp://i241.photobucket.com/albums/ff159/PhiLho/PhiLhoLogo.png

Offline

 

#12 2010-04-17 06:08:04

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: How can I crash Scratch?

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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#13 2010-04-17 06:12:38

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: How can I crash Scratch?

meew0 wrote:

I have another way.

http://imgur.com/1xIQ1.gif

We have a winner.


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#14 2010-04-17 06:28:09

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

Re: How can I crash Scratch?

meew0 wrote:

I have another way.

http://imgur.com/1xIQ1.gif

lol

LOL!

It works sooooo well...  big_smile


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

 

#15 2010-04-17 06:41:38

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: How can I crash Scratch?

Stickman704 wrote:

meew0 wrote:

I have another way.

http://imgur.com/1xIQ1.gif

We have a winner.

I tested this, and i got my price: A CRASHED SCRATCH! NOTHING WORKS!

Last edited by meew0 (2010-04-17 06:42:46)


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#16 2010-04-17 12:24:31

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: How can I crash Scratch?

Divide 0 by 0 causes a rather good error...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#17 2010-04-17 15:24:20

RacerZmanx1
Scratcher
Registered: 2009-01-01
Posts: 54

Re: How can I crash Scratch?

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


Fight for what is good, fight against what is bad, and be as epic as the entire Pokemon series while doing so.

Offline

 

#18 2010-04-17 15:27:34

RacerZmanx1
Scratcher
Registered: 2009-01-01
Posts: 54

Re: How can I crash Scratch?

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.


Fight for what is good, fight against what is bad, and be as epic as the entire Pokemon series while doing so.

Offline

 

#19 2010-04-17 15:50:49

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How can I crash Scratch?

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)


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#20 2010-04-17 15:53:34

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: How can I crash Scratch?

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.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#21 2010-04-18 14:56:24

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: How can I crash Scratch?

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.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#22 2010-04-18 15:00:12

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How can I crash Scratch?

Have you tried this? http://scratch.mit.edu/projects/juststickman/993494
Just click on

[blocks]<broadcast[ [/blocks]

In the block palette.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#23 2010-04-18 15:55:52

AnonymousTom
Scratcher
Registered: 2010-03-19
Posts: 100+

Re: How can I crash Scratch?

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

 

#24 2010-04-18 16:10:57

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: How can I crash Scratch?

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.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#25 2010-04-18 16:15:10

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: How can I crash Scratch?

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

 

Board footer