Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
telephono opened this issue May 31, 2024 · 12 comments
Open

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

telephono opened this issue May 31, 2024 · 12 comments

Comments

@telephono
Copy link

telephono commented May 31, 2024

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
Copy link

emiliovfx commented May 31, 2024 via email

@telephono
Copy link
Author

telephono commented May 31, 2024

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
Copy link

emiliovfx commented May 31, 2024 via email

@shred86
Copy link

shred86 commented May 31, 2024

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
Copy link
Author

telephono commented May 31, 2024

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
Copy link

shred86 commented May 31, 2024

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
Copy link
Author

telephono commented May 31, 2024

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

@CyberGuerro
Copy link
Contributor

CyberGuerro commented Jun 1, 2024

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
Copy link

w8sl commented Jun 4, 2024

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?

@w8sl w8sl mentioned this issue Jul 18, 2024
@shred86
Copy link

shred86 commented Sep 19, 2024

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
Copy link
Author

telephono commented Sep 19, 2024

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...

@m-mcqueen
Copy link

Can confirm imprint_masks_to_dds=False solved the VLDE for me as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants