Page 1 of 1

Random crash with newer build of ZGE

Posted: Thu May 21, 2020 2:38 pm
by Ats
Hi. Today I upgraded ZGE version. The binaries I had were aging from late January.
But now I get random crashes with Omeganaut when I run the project (F9). No crashes with preview.
An unhandled exception occurred at $7CFCC6E6:
EOverflox: Floating point overflow
$7CFCC6E6
$80000033
An unhandled exception occurred at $79CF3136C:
EOverflox: Floating point overflow
$79CF3136C
An unhandled exception occurred at $7D074714:
EOverflox: Floating point overflow
$7D074714
And the list goes on...
So I reverted my ZGE to January version and everything is fine.

Re: Random crash with newer build of ZGE

Posted: Thu May 21, 2020 3:08 pm
by VilleK
It probably is exactly what the error says: some floating point value is overflowing its 32-bit capacity. I think I need to turn off floating point exceptions when building ZGE with Freepascal, this is likely the cause.

Re: Random crash with newer build of ZGE

Posted: Thu May 21, 2020 4:43 pm
by Ats
All right. But if that is coming from my game, maybe I could also do something about that?

Re: Random crash with newer build of ZGE

Posted: Fri May 22, 2020 6:40 am
by VilleK
Ats wrote: Thu May 21, 2020 4:43 pm But if that is coming from my game, maybe I could also do something about that?
It is probably coming from your game indeed but it can be hard to find where.

Here is a new build where I've disabled floating point exceptions: http://www.zgameeditor.org/files/ZGameEditor_beta.zip