Fatal crashes with paint tools (engines 3.0 and higher)

Wilhelm Sanke sanke at hrz.uni-kassel.de
Tue Mar 17 17:16:48 EDT 2009


I had looked at an older stack developed with engine 2.6.1 (the fastest 
engine so far when it comes to image processing) where I had 
experimented using the paint tools to create color gradient shapes. My 
idea was to integrate worthwhile scripts from there into my upcoming 
"Gradientology" stack.

The report number of the bug database is 7812.

I encountered two kinds of bugs:  (see: 
<http://www.sanke.org/Software/PaintToolRev3CrashTest.zip>)

1. When an image has been resized before the rect or oval tools are 
applied (using the drag command) or the image is being resized inside 
the script creating the gradient, then Rev experiences a total crash, 
meaning it disappears at once from the screen without any prior error 
messages.  I tested this on Windows XP and MacOS 10.5 with engines 3.0 
and higher.

The remedy here is to "set the imagedata of img "x" to the imagedata of 
img "x" immediately after the resizing has taken place. This is *not* 
necessary with engine versions 2.9 and earlier.

You can test this bug by commenting out the "set the imagedata...." line 
in the scripts of the three gradient buttons on the bottomleft of the 
test stack.

2. When an image has been masked and thereby changed its dimensions, 
applying the gradient-creating scripts with the rect and oval tools 
crashes Rev even with the "set the imagedata..." workaround.

You can test this by converting the test image to a beveled roundrect 
image with a shadow (button "create roundrect shadow bevel") and then 
trying to build the gradients.

This second bug also appears in engine 2.9, but not in versions 2.8 or 
2.6.1. I did not find a workaround to avoid this bug - other than, of 
course, by removing the mask before creating gradients.

Best regards,

Wilhelm Sanke
<http://www.sanke.org/MetaMedia>







More information about the use-livecode mailing list