ShardBrowser icon indicating copy to clipboard operation
ShardBrowser copied to clipboard

Engine ignores --fingerprint-profile when the path contains non-ASCII characters (Windows)

Open angeloathayde opened this issue 2 months ago • 1 comments

Environment: ShardX Launcher 2.0.1, engine Chromium 152.0.7977.65 build 2, Windows 11 x64 (10.0.26200). Windows user profile path contains a non-ASCII character (C:\Users\Ängelo ...).

Symptom: a profile launches normally but pages see the host hardware (real GPU renderer, hardwareConcurrency, deviceMemory) instead of the profile's fingerprint. No error anywhere; browserscan.net shows the real GPU.

Root cause (isolated): the engine fails to open fingerprint.json when its path contains a non-ASCII character and silently falls back to real values.

Reproduction (same chrome.exe, same fingerprint.json, only the path differs):

  1. Launcher default data root, so the launcher passes --fingerprint-profile=C:\Users\Ängelo Athayde\AppData\Roaming\shardx-launcher\user-data\<id>\fingerprint.json → Runtime.evaluate on https://example.com: renderer RTX 5090 (host), cores 8, memory 32.
  2. Copy the same file to C:\Temp\fp.json and launch manually: chrome.exe --fingerprint-profile=C:\Temp\fp.json --user-data-dir=C:\Temp\ud --remote-debugging-port=0 → renderer RTX 4060 Ti (profile), cores 6, memory 16.

Tested on a real https origin, not on chrome:// pages.

Workaround: move the data root to an ASCII-only path (Settings → Data root, e.g. C:\ShardX). --shardx-profile-icon still points into %APPDATA% (non-ASCII) and the per-profile window icon is affected the same way.

Suggested fixes:

  • Engine: read the switch value as UTF-16 (base::CommandLine::GetSwitchValuePath → FilePath) instead of a narrow string.
  • Launcher (independent mitigation): pass the 8.3 short path (GetShortPathNameW) for --fingerprint-profile and --shardx-profile-icon on Windows, or fail loudly when the fingerprint is not applied.

Any Windows account whose username has an accent (very common outside en-US) is affected, and the failure is silent — the launcher reports success while every profile leaks the real hardware.

angeloathayde avatar Sep 11 '26 18:09 angeloathayde

in v2.0.3

ProxyShard avatar Sep 13 '26 12:09 ProxyShard