Project

General

Profile

Actions

Emulator Issues #13892

open

Failed to load Retroachievements integration

Emulator Issues #13892: Failed to load Retroachievements integration

Added by emuletal 11 months ago. Updated 1 day ago.

Status:
New
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

Any game. (it have nothing to do with the game, it cant connect to RA even before loading game).

What's the problem? Describe what went wrong.

I was playing some games with Retroachievements, and then, it stopped working without reason (RA login works, the same game, etc).
Whe I enable logs, we can see the RA integration cant load, it logs HTTP error.

What steps will reproduce the problem?

Open Dolphin (latest stable AND dev version 2509-49), tested both.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

Yes. 2509-49

Is the issue present in the latest release? For future reference, please also write down the version number of the latest release.

Yes, 2509

What are your PC specifications? (CPU, GPU, Operating System, more)

Ive teste on 3 enviroments:
Desktop PC:
Win 11 version, Ryzen 5, connected on my Router via cable.

Portable PC (Asus Rog Ally), connected via Wifi.

Portable PC (Asus Rog Ally), connected to another router/Internet provider, on friends house.


Files

log2.PNG (45.3 KB) log2.PNG emuletal, 09/24/2025 05:26 PM
log1.PNG (35.6 KB) log1.PNG emuletal, 09/24/2025 05:26 PM
log3.PNG (6.75 KB) log3.PNG emuletal, 09/24/2025 05:26 PM

Updated by jpiermarini 1 day ago Actions #1

Can confirm this issue

Here is my writeup

Summary

RetroAchievements login fails intermittently in standalone Dolphin with "Login failed" / no-internet-connection-style error, despite confirmed working network connectivity (DNS, IPv4, IPv6, and TLS all verified functional at the OS level at the exact time of failure). Log shows the failure is a DNS resolution timeout inside Dolphin's HTTP client, not an actual network outage.

This appears to be the same issue described in #13892.

Environment
Platform: Batocera Linux 43.1 (2026/05/28 build)
Dolphin build: Batocera-packaged standalone Dolphin, version scheme 2606 (commit pinned ~Jun 25, 2026 on batocera.linux dolphin-emu.mk; installed binary dated May 28, 2026)
Build config confirms: -DUSE_RETRO_ACHIEVEMENTS=ON, linked against system libcurl.so.4.8.0 (curl 8.12.1, OpenSSL 3.4.0, AsynchDNS feature enabled)
Backend: OpenGL (GFXBackend = OGL)
RetroArch on the same system connects to RetroAchievements without issue, using the same physical network path.
Steps to Reproduce
Launch standalone Dolphin on Batocera.
Go to Tools → Achievements.
Attempt to log in with valid RetroAchievements credentials.
Login fails, UI reports it as a connectivity/no-internet-connection style failure.
Issue is intermittent — sometimes fails with no specific reason logged, sometimes fails with an explicit DNS resolve timeout (see log below).
Actual Behavior

Console log (via View → Show Log Configuration → Write to Console, verbosity Warning, Core/Common/Achievements log types enabled) captured during two consecutive login attempts, same session:

54:57:642 Core/AchievementManager.cpp:78 I[RetroAchievements]: Attempting to log in jpiermarini (with password)
55:00:692 Core/AchievementManager.cpp:78 I[RetroAchievements]: Login failed: Failed HTTP request.
55:00:692 Core/AchievementManager.cpp:930 W[RetroAchievements]: Failed to login jpiermarini to RetroAchievements server.

56:30:209 Core/AchievementManager.cpp:78 I[RetroAchievements]: Attempting to log in jpiermarini (with password)
56:33:251 Common/HttpRequest.cpp:283 E[COMMON]: Failed to POST https://retroachievements.org/dorequest.php: Resolving timed out after 3002 milliseconds
56:33:251 Core/AchievementManager.cpp:78 I[RetroAchievements]: Login failed: Failed HTTP request.
56:33:251 Core/AchievementManager.cpp:930 W[RetroAchievements]: Failed to login jpiermarini to RetroAchievements server.
Expected Behavior

Login to RetroAchievements should succeed reliably, consistent with the fact that DNS resolution and connectivity to retroachievements.org are confirmed working via direct testing at the OS level (see diagnostics below), including tests run within seconds of a failed Dolphin login attempt.

Diagnostics Performed (all ruling out external/network causes)
curl -v --max-time 5 https://retroachievements.org/dorequest.php — succeeds instantly and reliably, every attempt, both immediately before and after Dolphin login failures.
Same test forced to IPv4 only (curl -4) and IPv6 only (curl -6) — both succeed instantly.
DNS-over-HTTPS lookups for both A and AAAA records for retroachievements.org — return immediately with valid records.
Confirmed Dolphin is dynamically linked against the exact same system libcurl.so.4.8.0 used by the successful CLI curl tests (ldd /usr/bin/dolphin-emu).
Confirmed Dolphin's process runs in the same network namespace as the shell (readlink /proc//ns/net identical).
Confirmed Dolphin's process environment is effectively identical to the shell's (no proxy variables, no DNS overrides) via /proc//environ diff.
Waited 60+ seconds after launch before attempting login, to rule out startup-time network contention — issue still occurred.
Confirmed RetroArch, on the same machine/network, logs into RetroAchievements successfully every time.

Given the above, the DNS resolve timeout appears to originate specifically from Dolphin's own HttpRequest/curl call for the RA login request, rather than from any actual system-level DNS or network issue.

Actions

Also available in: PDF Atom