[06 Apr 2010] Hollywood/hw4cubic with stack problems -> crash?
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 06 Apr 2010 15:20:06 -0000
Hi all,
I recently observed in my application some weird crashes (currently on OS3.x/AmigaForever). My first guess was, that i maybe don't have enough video memory, because i start in e-uae first workbench (800x600x32), then cubicIDE (1024x768x32) and then my application opens a display at 640x480, 800x600 or 1024x768 via hw4cubic and then a brush/Layer of double the size of the chosen display is opend by some keyboard event. The crash happens always when I open a display with 1024x768, sometimes at 800x600 and it seems there's no crash with 640x480.
The crash at 1024x768 causes a immediately crash of Hollywood/AOS3 and even euae.
The same crash happens also at 800x600 but often only when I quit my application by pressing ESC and not (always) when the huge brush/layer is opend/displayed due to the keyboard event! Weird! If I don't cause the keyboard event, then there's no crash (also not at 1024x768), so the huge layer is definitely the reason for the problem.
To see, if my assumption about low video mem is true (euae is configured to use 8 MB Picasso video mem), i started my application from shell without starting cubicIDE. After raising the stack to some high value, my application starts and and there's no crash for all resolutions. But then, i started also cubicIDE before I started my application from shell and then there was also no crash. So, low video mem is not the reason for the crashes.
Finally, i lowered the stack to some small value (4kb) and started my application from shell again. Then hollywood complains that there's not enough memory left and then AOS3 crashes.
So, it seems the stack is the problem, not the video mem.
Does someone know how to raise the stack for an application started via CubicIDE/hw4cubic?
Thanks! Tom
Hi all,
I recently observed in my application some weird crashes (currently on OS3.x/AmigaForever). My first guess was, that i maybe don't have enough video memory, because i start in e-uae first workbench (800x600x32), then cubicIDE (1024x768x32) and then my application opens a display at 640x480, 800x600 or 1024x768 via hw4cubic and then a brush/Layer of double the size of the chosen display is opend by some keyboard event. The crash happens always when I open a display with 1024x768, sometimes at 800x600 and it seems there's no crash with 640x480.
The crash at 1024x768 causes a immediately crash of Hollywood/AOS3 and even euae.
The same crash happens also at 800x600 but often only when I quit my application by pressing ESC and not (always) when the huge brush/layer is opend/displayed due to the keyboard event! Weird! If I don't cause the keyboard event, then there's no crash (also not at 1024x768), so the huge layer is definitely the reason for the problem.
To see, if my assumption about low video mem is true (euae is configured to use 8 MB Picasso video mem), i started my application from shell without starting cubicIDE. After raising the stack to some high value, my application starts and and there's no crash for all resolutions. But then, i started also cubicIDE before I started my application from shell and then there was also no crash. So, low video mem is not the reason for the crashes.
Finally, i lowered the stack to some small value (4kb) and started my application from shell again. Then hollywood complains that there's not enough memory left and then AOS3 crashes.
So, it seems the stack is the problem, not the video mem.
Does someone know how to raise the stack for an application started via CubicIDE/hw4cubic?
Thanks! Tom