Flattening of water bodies CTD's

Version: 1.4.14.4

Frequency: Consistently

Severity: Blocker

Marketplace package name: Not applicable

Context: w_n40e49.xml // When editing…

Similar MSFS 2020 issue: Not applicable

Bug description:

When working in Dev Mode, the simulator crashes unexpectedly, after some operations.
It happens with a .XML file that contains water polygons. The file in question is about 9 Mbytes large. With files of the same type but up to 5 Mbytes in size, no CTD.

Repro steps:

During the visual verification phase of the water polygons in the Scenario Editor, some, even if correctly excluded in QGis and then transferred to .SHP format do not apply the exclusion correction.
The verification is done to find a solution … but I can not complete the verification process, because the CTD arrives.

Note: The attached . XML file (make a backup) every time they are loaded in the Scenario Editor the “Force elevation” attribute is added which is not necessary as it causes a further unwanted flattening in the final scenario

To overcome this, I clean the .XML file of this attribute every time and compile with fspackagetool.exe from outside of DEV Mode.

Attachments:
CTD_waterXML.zip (5.3 KB)

Private attachments: In addition to the attachments in @PrivateContent see also the discussion at this link

Hello @ClevererElm8055,

The CTDs were caused by a polygon containing 70519 vertices, while the maximum supported limit is 13107.

In SU3, polygons exceeding this limit will simply not be displayed to prevent crashes.

I’ll make sure this is properly documented.

Regards,
Boris

3 Likes

Hi Boris,

I wanted to thank you for the time and effort you put into investigating the issue. Your work was really valuable and I really appreciate your analysis.

Thank you for your professionalism and support!

Regards,
Giovanni

1 Like

Hello,

This is now the case in the SU3 (currently in flighting).
Can you confirm you no longer have a ctd ?

Regards,
Boris

Hello @Boris,
SU3 Beta 1.5.2.0

Unfortunately, from my tests the problem persists.
Tried on the same project that I shared with the team. When you select the polygon (Caspian Sea) and only that polygon the CTD arrives.
I tried another project that previously the big polygon I had divided into several parts so that it was not greater than 65536 no CTD.

Eccezione non gestita in 0x00007FF7579DE9E7 in FlightSimulator2024.exe: 0xC00000FD: Stack overflow (parametri: 0x0000000000000001, 0x000000A483403000).

Unhandled exception at 0x00007FF7579DE9E7 in FlightSimulator2024.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000A483403000).

In C:\Users\User\AppData\Local\Packages\Microsoft.Limitless_8wekyb3d8bbwe\LocalState no other file is recorded except crashdata.txt

Report.zip (8.9 KB)

Regards,
Giovanni

Hello,

In fact, this wasn’t exactly the same crash, but it is related.
I’ll let you know once the issue is fixed.

Thank you,

Regards,
Boris

1 Like

Helloi,

This time it should be fixed in the last SU3 flighting :slight_smile:
Can you test and confirm ?

Thank you

Regards,
Boris

Hello,

I can confirm that with the latest SU3 flighting, handling polygons with more than 65,000 vertices no longer causes crashes (CTD).
Also, the warning message about the polygon having too many vertices is useful for debugging.

If I’m not mistaken, there was talk of 65536 vertices maximum supported.

Anyway, I recompiled the entire project including the two polygons exceeding the maximum number of vertices allowed without receiving an error from the compiler.

I hope this is integrated into the SDK documentation.

Regards,
Giovanni

1 Like