Vulkan crash with custom textures + async loading + 2× speedup during cold PC Box asset loads in Pokemon Ultra Sun
Is there an existing issue for this?
- I have searched the existing issues
Affected Build(s)
2125.1.3
Description of Issue
Azahar intermittently crashes in Pokémon Ultra Sun while browsing the PC Box when all of the following are enabled:
- Vulkan renderer
- Custom textures
- Async Custom Loading
- 2× speedup
The crash is most likely to occur soon after a fresh game launch, while moving the cursor across Pokémon in a PC Box. It has occurred while hovering different Pokémon, including Araquanid and Torracat, so it does not appear tied to one Pokémon or one save-data entry.
The same Box interactions are stable with Custom Textures disabled. They are also stable in testing with Async Custom Loading disabled, although that introduces substantial stutter when using 2× speedup.
After leaving the area and returning, the same Box interaction can sometimes succeed with 2× speedup enabled. This suggests the issue may be related to an initial/cold burst of asynchronous custom-texture loading or upload activity rather than a specific malformed texture.
I performed a clean reinstall of the texture pack into a newly created texture folder rather than merging it with prior files. The issue persisted.
The third-party HD texture pack is an Azahar-adapted Pokémon Ultra Sun HD texture pack to increase resolution.
Texture-pack SHA-256: C51B989B2C7EA8A49FFA62604138EB158F9BFD5BC4AFFD0664C3B442037CBCF4
I can provide the pack source or a minimal reproducing subset privately/on request if that would help investigate the issue.
Expected Behavior
Browsing PC Boxes and loading Pokémon/menu assets should remain stable when using Vulkan, custom textures, Async Custom Loading, and 2× speedup.
Speedup may reasonably increase loading stutter, but it should not cause Azahar to terminate or lose the Vulkan device.
Reproduction Steps
- Launch Pokémon Ultra Sun using Vulkan.
- Enable Custom Textures and Async Custom Loading.
- Leave Custom Texture Preload disabled.
- Enable 2× speedup.
- Load a save, preferably immediately after a fresh Azahar launch.
- Open a PC Box.
- Move the cursor across several Pokémon entries or open their summary screens.
Observed result: Azahar may crash abruptly during Box/menu asset loading.
Notes:
- The crash is intermittent but has reproduced multiple times.
- It is more likely shortly after a fresh launch.
- Moving away/flying elsewhere and returning can sometimes make the same interaction succeed, consistent with textures having already been loaded or cached at 1x speed.
- With Custom Textures disabled, I have not been able to reproduce the crash in the PC Box.
- With Async Custom Loading disabled, I have not reproduced the crash, but 2× speedup causes noticeable stutter.
- OpenGL was also tested, but it crashed while loading the save, so Vulkan is the only usable renderer in this setup.
Log File
System Configuration
Azahar version: 2125.1.3 | HEAD-b42d091
CPU: AMD Ryzen 7 9800X3D GPU/Driver: NVIDIA GeForce RTX 3080 / Vulkan driver 591.86.0.0 RAM: 32 GB (Azahar reports 31.10 GiB available) OS: Windows 11 25H2, Build 26200.8655
Game: Pokémon Ultra Sun Title ID: 00040000001B5000
Renderer: Vulkan Internal resolution: Native / resolution factor 0 Custom Textures: Enabled Custom Texture Preload: Disabled Async Custom Loading: Enabled Speedup: 2× during reproduction
Source: azahar-emu/azahar