ShardBrowser icon indicating copy to clipboard operation
ShardBrowser copied to clipboard

[Bug] Running profiles not marked as running in UI (Windows) — process tracker drops live browsers

Open barbaramedi764-maker opened this issue 1 month ago • 1 comments

Hello ShardX team,

I'm reporting a bug in ShardX Launcher v2.0.3 on Windows.

What happens: When I click Start on a profile, the browser window opens and works fine, but the profile's STATUS stays "Idle" and the RUNNING counter at the top stays 0. The UI never marks the profile as running.

Steps to reproduce:

Open ShardX Launcher v2.0.3 on Windows. Go to Browsers and click Start on any profile. The browser window opens. The profile row still shows "Idle" with a Start button; the RUNNING counter stays 0.

Expected: The profile should show "Running" while its browser is open, and return to Idle only when the browser is actually closed.

My setup: ShardX Launcher v2.0.3 (x64-setup.exe), Windows 10 64-bit, 108 profiles.

Technical note (from your source, src-tauri/src/process.rs): running browsers are tracked in an in-memory HashMap and the entry is removed as soon as the spawned child process's wait() completes. On Windows the spawned Chromium process can hand off/exit while the real browser window keeps running, so the entry is dropped early and the UI flips back to Idle. The tracker never re-scans the OS, so it can't self-correct. Re-launching an already-tracked profile also orphans the previous browser without killing it.

Suggested fix: verify liveness against the OS (check the tracked PID is still alive, or re-scan the process list for the profile's --user-data-dir) instead of relying only on the spawned handle's wait().

Regards, abbas

barbaramedi764-maker avatar Oct 14 '26 13:10 barbaramedi764-maker

in 2.1.0

Kr1tos avatar Oct 22 '26 11:10 Kr1tos