[Gambas-devel] signal 6 upon use of Blur method

Benoît Minisini gambas at ...1...
Tue Feb 22 19:20:48 CET 2011


> The code:
> 
> Public image1 As Image
> 
> Public Sub Form_Open()
>    image1 = New Image(96, 96, Color.RGB(0, 0, 0, 127), 1)
>    image1.Blur(1)
> End
> 
> crashes with signal 6.
> 
> I'm using gb3 revision 3574 on Ubuntu 10.10 ia64. Components being used
> are gb, gb.gtk, gb.image, gb.image.effect, gb.image.imlib, gb.net and
> gb.sdl.sound. The backtrace and project are attached.

It seems that the Blur and Sharpen methods of the imlib library free the image 
data, whereas they should not, as the original image data is owned by the 
gb.image component.

Here is the solution: Blur and Sharpen will create a new image, and won't try 
to work on the current data!

Stay tuned...

-- 
Benoît Minisini




More information about the Devel mailing list