FloodFill crash on AROS

Report any Hollywood bugs here
Post Reply
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

FloodFill crash on AROS

Post 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?
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: FloodFill crash on AROS

Post 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.
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

Re: FloodFill crash on AROS

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