Jump to content
jordi

MacOs Ventura and NaN

Recommended Posts

Hello, I've very extrange errors when executing my application on MacOs Ventura. On previous MacOs all is ok.

In next example, how can it be that w=NaN, when dw and dpi variables are not NaN? 

Using Delphi 11.3

 

 

Sense títol.jpg

Edited by jordi

Share this post


Link to post

Can you post code that reproduces the issue? It'll save having to type out the code, and work out the cut off parts, if they're important.

Share this post


Link to post

If I create a new test application and I put this simple code, it works. But in my big and complex application this NaNs problems happens in many parts of the code, even in embarcadero delphi source code units.

The app was working until Ventura. And I don't know why simple aritmethic operations can result in NaN as result.

Share this post


Link to post

Sounds like this here to me:

Quote

It appears that somewhere along the way the process memory gets corrupted (to the extent that even hard-coded global constants, like const Foo = 15.0, become NaN
(...)

As a result of the above, NaN is loaded into the top of FP stack, instead of the original value.
This NaN raises another exception in Round function.

https://quality.embarcadero.com/browse/RSP-40939

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×