Random crash with newer build of ZGE

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
Ats
Posts: 603
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Random crash with newer build of ZGE

Post 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.
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Random crash with newer build of ZGE

Post 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.
User avatar
Ats
Posts: 603
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Random crash with newer build of ZGE

Post by Ats »

All right. But if that is coming from my game, maybe I could also do something about that?
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Random crash with newer build of ZGE

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