oscarpilote / Ortho4XP

A scenery generator for the X-Plane flight simulator
504 stars 205 forks source link

Vulkan device loss error with `water_tech=XP12` in X-Plane 12 #260

Open telephono opened 5 months ago

telephono commented 5 months ago

I tested the current Ortho4XP with the 4 tiles around Faroe Islands.

When I use water_tech=XP12, I reliably get a Vulkan device loss error in X-Plane 12.1.0 a few seconds after I load into Vagar airport EKVG. As long as I use water_tech=XP11+bathy everything work as expected.

I also opened a bug report at LR since a few knowledgeable people recommended this. If I hear something back from LR, I will share relevant information here.

Windows 11 Python 3.10.11

(.venv) PS X:\Ortho4XP> python -m pip list
Package            Version
------------------ --------
certifi            2024.2.2
chardet            5.2.0
charset-normalizer 3.3.2
GDAL               3.8.5
idna               3.7
numpy              1.26.4
pillow             10.3.0
pip                24.0
pyproj             3.6.1
requests           2.32.2
Rtree              1.2.0
scikit-fmm         2023.4.2
setuptools         70.0.0
shapely            2.0.4
urllib3            2.2.1
emiliovfx commented 5 months ago

Are you using embedded masks? Try using the separated masks option. It works fine for me.

On Fri, May 31, 2024 at 8:58 AM telephono @.***> wrote:

I tested the current Ortho4XP with the 4 tiles around Faroe Islands.

When I use water_tech=XP12, I reliably get a Vulkan device loss error in X-Plane 12.1.0 a few seconds after I load into Vagar airport EKVG. As long as I use water_tech=XP11+bathy everything work as expected.

I also opened a bug report at LR since a few knowledgeable people recommended this. If I hear something back from LR, I will share relevant information here.

— Reply to this email directly, view it on GitHub https://github.com/oscarpilote/Ortho4XP/issues/260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQNAM76NNNDYZWTTGJN74VTZFBXX5AVCNFSM6AAAAABISYV3UGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZDONZYGYYTSMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

telephono commented 5 months ago

Are you using embedded masks? Try using the separated masks option. It works fine for me.

Do you mean imprint_masks_to_dds? It is currently set to True... After rebuilding the tiles with imprint_masks_to_dds=False it seems to work.

I'll try and rebuild a larger area (Iceland or New Zealand) for further testing.

emiliovfx commented 5 months ago

Yes, set this option to FALSE and give it a try.

On Fri, May 31, 2024 at 11:18 AM telephono @.***> wrote:

Are you using embedded masks? Try using the separated masks option. It works fine for me.

Do you mean imprint_masks_to_dds? It is currently set to True...

— Reply to this email directly, view it on GitHub https://github.com/oscarpilote/Ortho4XP/issues/260#issuecomment-2142486107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQNAM7ZSPY77UUE6F2TMKRDZFCIDVAVCNFSM6AAAAABISYV3UGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBSGQ4DMMJQG4 . You are receiving this because you commented.Message ID: @.***>

shred86 commented 5 months ago

Hm, I'm running Ortho4XP 1.40 on macOS and have imprint_masks_to_dds=True in my Ortho4XP.cfg and everything appears to be working fine. Is this specific to certain areas of the world? So far I've built the western part of the U.S.

telephono commented 5 months ago

Hm, I'm running Ortho4XP 1.40 on macOS and have imprint_masks_to_dds=True in my Ortho4XP.cfg and everything appears to be working fine. Is this specific to certain areas of the world? So far I've built the western part of the U.S.

I get the Vulkan device loss error, if I use water_tech=XP12 (default is water_tech=XP11+bathy) and imprint_masks_to_dds=True. Affected areas seem to be coastal areas, obviously. My test area was Faroe Islands.

shred86 commented 5 months ago

Interesting. I don’t seem to have any issues with those same settings on the west coast of the U.S. I wonder what specifically is causing it.

telephono commented 5 months ago

I took me a while to get replicatable results... It may be even hardware dependent (Vendor, VRAM, ...).

CyberGuerro commented 5 months ago

Same symptoms here on XP12.1.0 beta 5 under Linux with

imprint_masks_to_dds=True
water_tech=XP12

building tiles (remove ".txt" if you want to test them) Ortho4XP_+30+031.cfg.txt Ortho4XP_+59+017.cfg.txt

w8sl commented 5 months ago

Do we miss something without mask imprinted to DDS? There are also artifacts on water when different ZL are used alongside coastline. Still visible on 12.1 No problem at all without masks in DDS.

From description: imprint_mask_to_DDS results in 2x bigger textures, but actual VRAM usage is less. Was it the reason for use it as a default setting?

shred86 commented 1 month ago

Looks like this issue might be fixed with 12.1.2-RC1. The release notes mention “Fixed device loss errors when using Ortho4XP tiles”.

telephono commented 1 month ago

I'll try and rebuild some tiles with imprint_masks_to_dds=True but using imprint_masks_to_dds=False was the fix for this problem. Maybe it's time to close this issue, after all...