#2576·azahar

[CRITICAL] Azahar hangs on startup (no window, empty log) when a wired PS5 DualSense controller is connected

Author: ThomasPixelsOfCreated Sep 21, 2026Updated Sep 29, 2026
Labelsbug

Is there an existing issue for this?

  • I have searched the existing issues

Affected Build(s)

2126.0-rc4, 2126.0-rc5, 2126.0, 2126.1, 2126.1.1, and probably 2126.1.2 too (its changelog only mentions libretro fixes, so the PC/Qt build should be the same as 2126.1.1)

Description of Issue

When I have my PS5 DualSense connected via USB and launch Azahar, the main window just never shows up. The process is running fine in the background though - Task Manager's wait chain analysis says it's running normally, CPU usage barely moves, so it's not stuck in a loop or anything. It's just... nothing happens. No window, and azahar_log.txt stays completely empty even after waiting well over a minute.

Expected Behavior

Azahar should open normally regardless of what controller is plugged in.

Reproduction Steps

  1. Plug in a PS5 DualSense via USB
  2. Launch azahar.exe
  3. Nothing happens, no window, just hangs
  4. Unplug the controller, launch again -> opens instantly, works fine
  5. Plug it back in, launch again -> hangs again

Did this back and forth several times to make sure it wasn't a fluke, same result every time.

Log File

Log stays at 0 bytes, which was actually a useful clue - even the very first line Azahar normally logs on startup never gets written, so whatever's blocking happens really early, before anything else.

Some things I tried that didn't change anything: switching between OpenGL and Software renderer, disabling all Vulkan implicit layers with VK_LOADER_LAYERS_DISABLE=all, and blocking the app's network access entirely through the firewall. Steam wasn't running during any of this either.

Went digging in the source a bit and it looks like InputCommon::Init() -> SDL::Init() (src/input_common/main.cpp) runs during GMainWindow::InitializeWidgets(), before the window shows up. Might be related to #2026 (same kind of hang but with a Switch Pro controller), though that one got closed without anyone actually finding what fixed it.

Also bisected which version broke this: everything from 2124.3 up to 2126.0-rc3 works fine with the same controller. Starts hanging exactly at 2126.0-rc4.

Comparing the two (https://github.com/azahar-emu/azahar/compare/2126.0-rc3...2126.0-rc4), the change that stands out is in src/input_common/sdl/sdl_joystick.cpp from PR #2328 ("BUGFIX: Legacy joystick triggers on linux"). It adds a new SDLJoystick::CalibrateJoystickAxes() that runs in the constructor for every controller found at startup and calls SDL_JoystickGetAxis() right away. My guess is this hangs on Windows if SDL's HID polling thread hasn't gotten a report yet from a controller that takes longer to negotiate, like the DualSense does for its lightbar/haptics. Would explain why it's controller-specific and why it happens before the window even shows.

SDL version in this build is 2.32.10 if that helps (pinned at commit 5d24957 in the sdl2 submodule).

System Configuration

CPU: Intel Core i7-9700K @ 3.60GHz GPU/Driver: NVIDIA GeForce RTX 2060 (driver from August 2026) RAM: 16GB OS: Windows 11, Build 26200 (25H2)