Random crash with newer build of ZGE

All topics about ZGameEditor goes here.

Moderator: Moderators

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

Random crash with newer build of ZGE

Post by Ats » Thu May 21, 2020 2:38 pm

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: 2064
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Random crash with newer build of ZGE

Post by VilleK » Thu May 21, 2020 3:08 pm

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: 268
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Random crash with newer build of ZGE

Post by Ats » Thu May 21, 2020 4:43 pm

All right. But if that is coming from my game, maybe I could also do something about that?

User avatar
VilleK
Site Admin
Posts: 2064
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Random crash with newer build of ZGE

Post by VilleK » Fri May 22, 2020 6:40 am

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