Page 1 of 1

FloodFill crash on AROS

Posted: Mon Jan 28, 2013 6:42 pm
by Mazze
If I run the following example on AROS with few stack (e.g. 20000) it crashes (not always).

Code: Select all

CreateBrush(1, 800, 600)
SelectBrush(1)
Cls(#WHITE)

For x = 0 to 800 step 50
    Line(x, 0, x, 600, #RED,{ Thickness = 10})
Next

For y = 0 to 600 step 50
    Line(0, y, 600, y, #RED, { Thickness = 10})
Next

EndSelect
DisplayBrush(1, 0, 0)

FloodFill(1, 50, 50, #WHITE, #BLUE)

DisplayBrush(1, 0, 0)

WaitLeftMouse()
Shouldn't Hollywood check if stack limits are exceeded?

Re: FloodFill crash on AROS

Posted: Tue Jan 29, 2013 5:08 pm
by airsoftsoftwair
Hollywood currently doesn't check for enough stack space but it runs with a default stack of 256kb. I need to investigate why this still crashes on AROS. Maybe AROS doesn't support the __stack symbol.

Re: FloodFill crash on AROS

Posted: Tue Jan 29, 2013 8:39 pm
by Mazze
Andreas wrote:Maybe AROS doesn't support the __stack symbol.
I'm not aware of any stack protection on AROS except some "mung wall" feature when AROS is compiled with debug support.