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

#1 2009-12-20 23:23:40

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Squeak error - "Buffer too small for compressed data"

I was trying to compress some images in a project at 100% and ended up with this error:
http://i319.photobucket.com/albums/mm470/nefermaatkare/Error2.jpg

Normally I don't end up with this error when compressing images at 100%, it's the first time I've ever encountered it. I suspected the issue was due to the fact that the compression percentage was 100%, so, as a test, I made a copy of the file and tried compressing it at 95% (which, technically worked, although I just ended up with the window saying 'images compressed: 0'); but because I've compressed images at 100% before and never received this error, I'm not quite sure if the 100% value is the full cause of the problem.

Out of curiosity, had anyone else seen this error during image compression? Any ideas what could be the cause, and for future reference, is there any way to avoid it?


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#2 2009-12-21 01:57:28

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

My_Inner_Voice wrote:

well the image ratio is the percentage shown there it is like when u compress 100% it only does compression on the pixels so that they do not pixelate a lot. If i could see the image u compressed i might be able to tell what happened.

or it might be a so complex image which didnt allowed a buffer value that could be compressable.

Read this for more http://en.wikipedia.org/wiki/JPEG

well the remedy is I dunno try using a 3rd party compressor.


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#3 2009-12-21 03:08:33

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

Just as in the other thread, it means Scratch tries to compress the images but they are too small to do so.  smile


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#4 2009-12-21 07:19:16

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

JSO: I think Cheddar already knew about that. Otherwise I don't think she would be reporting this bug. This is very different from other bugs when compressing. Or at least a different error message.

Offline

 

#5 2009-12-21 17:38:50

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

Magnie wrote:

JSO: I think Cheddar already knew about that. Otherwise I don't think she would be reporting this bug. This is very different from other bugs when compressing. Or at least a different error message.

Yep, that's it. It's a very different compression bug because I've never encountered a buffer error during manual image compression, and as compared to the typical buffer error that some people encounter during the upload process, this buffer error looks completely different. Which is why I'm asking about it here in the forums.  tongue


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#6 2009-12-21 21:41:17

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

Was my suggestion helpful or i need to search this in the source code and find you guys why this bug occured.


sorry for the rude language

Last edited by fanofcena (2009-12-21 21:41:57)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#7 2009-12-21 21:48:08

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

wait it says buffer too small for compressed data isnt it trying to say that the image compressed is too big to be saved in the buffer file


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#8 2009-12-21 21:59:22

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

Re: Squeak error - "Buffer too small for compressed data"

*squeak*

Offline

 

#9 2009-12-21 22:37:09

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

Yeah, instead of *bump* it should be *squeak* that would be hilarious.

Anyway, Fanofcena, if you read closely to the post, she can change it to 95% and it will work, but 100% won't.

Cheddar: I think you may have compressed it so it's to small to compress again, but I still don't understand why it works for 95% instead of 100%... Maybe cause 95% is just right but 100% is to much to compress. Very odd.

Offline

 

#10 2009-12-22 08:22:11

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

Re: Squeak error - "Buffer too small for compressed data"

99%?

Offline

 

#11 2009-12-22 11:42:12

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

I believe Cheddar has tried it at 99%, 98%, 97%, and 96% and they didn't work.

Offline

 

#12 2009-12-22 11:55:04

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

ThePCKid wrote:

99%?

Hmm, let me try that...

Looks like 99% doesn't bring up the error, just compression at 100%. So something about the 100% causes Scratch to go slightly haywire for this particular project.

fanofcena wrote:

well the image ratio is the percentage shown there it is like when u compress 100% it only does compression on the pixels so that they do not pixelate a lot. If i could see the image u compressed i might be able to tell what happened.

or it might be a so complex image which didnt allowed a buffer value that could be compressable.

well the remedy is I dunno try using a 3rd party compressor.

The problem isn't that I can't compress the image, it's more of question as to why a Squeak error occurs during compression at 100% when it usually does not.

I've managed to isolate the problem a bit and figured out which sprite was causing the problem - it's the image of a small customized text button 8D

Let me finish my Christmas shopping first, I'll upload the image later so you can take a look at it.  wink


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#13 2009-12-22 17:09:05

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

Re: Squeak error - "Buffer too small for compressed data"

99.99%?

Offline

 

#14 2009-12-22 21:20:15

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

Merry Christmas All


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#15 2009-12-23 05:27:00

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

cheddargirl wrote:

Magnie wrote:

JSO: I think Cheddar already knew about that. Otherwise I don't think she would be reporting this bug. This is very different from other bugs when compressing. Or at least a different error message.

Yep, that's it. It's a very different compression bug because I've never encountered a buffer error during manual image compression, and as compared to the typical buffer error that some people encounter during the upload process, this buffer error looks completely different. Which is why I'm asking about it here in the forums.  tongue

Oh. Sorry  smile


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#16 2009-12-23 13:48:13

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

A small customised button caused such an error? That's crazy!

Offline

 

#17 2009-12-23 14:31:09

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

Here's the image that's apparently triggering the error:

http://i319.photobucket.com/albums/mm470/nefermaatkare/costume1.gif

I was making an animation and I wanted the give users the option to watch the project with or without subtitles.  tongue

Last edited by cheddargirl (2009-12-23 14:34:14)


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#18 2009-12-23 15:25:49

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

Re: Squeak error - "Buffer too small for compressed data"

http://i45.tinypic.com/x4kxus.jpg

Code:

FastJPEG class(Object)>>error:
FastJPEG class>>compress:quality:progressive:
FastJPEG class>>compress:quality:
ImageMedia>>jpegCompressIfPossibleQuality:
ImageMedia>>jpegCompressIfPossibleQuality:saveOriginal:
[] in ScratchFrameMorph>>canonicalizeImagesQuality:saveOriginal:
OrderedCollection>>do:
ScratchFrameMorph>>canonicalizeImagesQuality:saveOriginal:
ScratchFrameMorph>>compressImages
CustomMenu(SelectionMenu)invokeOn:at:

Last edited by ThePCKid (2009-12-23 15:32:58)

Offline

 

#19 2009-12-23 21:58:50

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

cheddargirl wrote:

Here's the image that's apparently triggering the error:

http://i319.photobucket.com/albums/mm47 … stume1.gif

I was making an animation and I wanted the give users the option to watch the project with or without subtitles.  tongue

I m more confused now


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#20 2009-12-24 13:29:00

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

fanofcena wrote:

cheddargirl wrote:

Here's the image that's apparently triggering the error:

http://i319.photobucket.com/albums/mm47 … stume1.gif

I was making an animation and I wanted the give users the option to watch the project with or without subtitles.  tongue

I m more confused now

Well, whenever you import this image and try to compress at 100% in Scratch, the Squeak error appears (ThePCKid put the whole Squeak error so you can see it).

So... anybody here know how to debug a Squeak error?  tongue


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#21 2009-12-24 14:16:51

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

Re: Squeak error - "Buffer too small for compressed data"

cheddargirl wrote:

fanofcena wrote:

cheddargirl wrote:

Here's the image that's apparently triggering the error:

http://i319.photobucket.com/albums/mm47 … stume1.gif

I was making an animation and I wanted the give users the option to watch the project with or without subtitles.  tongue

I m more confused now

Well, whenever you import this image and try to compress at 100% in Scratch, the Squeak error appears (ThePCKid put the whole Squeak error so you can see it).

So... anybody here know how to debug a Squeak error?  tongue

I dunno.
Press debug and type

Code:

Prenfrences enableProgrammerFacilities

Close the error
shift-click the R in the logo
Click disable fillscreen
?????????????????

Offline

 

#22 2009-12-24 18:36:43

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

Cheddar: Have you tried remaking the image, or changing it and retry the 100% compress?

Offline

 

#23 2009-12-24 20:50:54

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

Ah cheddar the only persons who can debug this error is the SCRATCH team and Jens i dunno squeak that much i m learining it but i m too new to debug such thing why dont u make a try asking it to JENS or SCRATCH TEAM


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#24 2009-12-27 01:13:58

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

fanofcena wrote:

Ah cheddar the only persons who can debug this error is the SCRATCH team and Jens i dunno squeak that much i m learining it but i m too new to debug such thing why dont u make a try asking it to JENS or SCRATCH TEAM

Actually, I've seen some Scratchers who have some experience in Squeak, so I thought I'd post this error in here. I'll probably leave this error up here for a while to see if I get any more replies before directly going to the Scratch Team for help.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#25 2009-12-27 01:37:04

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Squeak error - "Buffer too small for compressed data"

i too know some about squek but cant debug kinda thing glad to know if someone gets it


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

Board footer