Mouse & Keyboard caused the Loader to crash #1180

Closed
opened 2026-11-28 15:00:39 +00:00 by github-bot · 9 comments
Owner

@⁠dinur125 on GitHub · 2026-11-28 14:59 UTC · original

EGTA VIGTA6.Xbox.v1.0.2.1-CYBERLEEKvictory(2).exe.txt

What could be the issue and what is the solution, the problem appeared when i toggle on mouse and keyboard.

**@⁠dinur125** on GitHub · 2026-11-28 14:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180) [EGTA VIGTA6.Xbox.v1.0.2.1-CYBERLEEKvictory(2).exe.txt](https://github.com/user-attachments/files/35550516/EGTA.VIGTA6.Xbox.v1.0.2.1-CYBERLEEKvictory.2.exe.txt) What could be the issue and what is the solution, the problem appeared when i toggle on mouse and keyboard.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 15:00:39 +00:00
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 15:04 UTC · original

Thanks for the report. The stop in it is a known one: +0x2215c35, a write to address 0 on the game's own thread (the stack is +0x2215c35 < +0x2215eca, the thread's start).

It is the game's own hang watchdog. When the game makes no frame for a while, that thread crashes it on purpose. #846 tracks it, with the stall that comes before it.

It also shows in #1100's crashes.log four times, from before the MOUSE AND KEYBOARD switch existed. So the switch may not be what caused it. A stall during loading is enough, and yours came about 30 seconds after the start.

To tell, could you try three starts with MOUSE AND KEYBOARD on, then three with it off? If it only ever happens with it on, please attach the play log of one of those runs (%LOCALAPPDATA%\victory\logs\). The frames before the stop would show what stalled.

**@⁠kibagami-nc** on GitHub · 2026-11-28 15:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180#issuecomment-7241182416) Thanks for the report. The stop in it is a known one: `+0x2215c35`, a write to address 0 on the game's own thread (the stack is `+0x2215c35` < `+0x2215eca`, the thread's start). It is the game's own hang watchdog. When the game makes no frame for a while, that thread crashes it on purpose. #846 tracks it, with the stall that comes before it. It also shows in #1100's `crashes.log` four times, from before the MOUSE AND KEYBOARD switch existed. So the switch may not be what caused it. A stall during loading is enough, and yours came about 30 seconds after the start. To tell, could you try three starts with MOUSE AND KEYBOARD on, then three with it off? If it only ever happens with it on, please attach the play log of one of those runs (`%LOCALAPPDATA%\victory\logs\`). The frames before the stop would show what stalled.
Author
Owner

@⁠dinur125 on GitHub · 2026-11-28 15:07 UTC · original · edited 2026-11-28 15:09 UTC

I am not really a DEV.. I know my way arround that but not at your level. You have to be a bit more specifical. I've replaced the loader with the previous version and the game starts and runs perfectly.
PS. I've preloaded like 90k shaders before doing that and translated it, game started but after that i've replaced the loader with the last version toggled mose and keyboard and stop woking. Now with the previous release it runs perfect.
Tell me what to do next. Cheers

**@⁠dinur125** on GitHub · 2026-11-28 15:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180#issuecomment-7241223916) · edited 2026-11-28 15:09 UTC I am not really a DEV.. I know my way arround that but not at your level. You have to be a bit more specifical. I've replaced the loader with the previous version and the game starts and runs perfectly. PS. I've preloaded like 90k shaders before doing that and translated it, game started but after that i've replaced the loader with the last version toggled mose and keyboard and stop woking. Now with the previous release it runs perfect. Tell me what to do next. Cheers
Author
Owner

@⁠TheRealScarHomie on GitHub · 2026-11-28 15:09 UTC · original

I am not really a DEV.. I know my way arround that but not at your level. You have to be a bit more specifical. I've replaced the loader with the previous version and the game starts and runs perfectly.

nobody is a dev here, this is all vibecoding with AI agents, the people running them are clueless about code too. Also the thing that responded too you is an AI, they also arent a dev.

**@⁠TheRealScarHomie** on GitHub · 2026-11-28 15:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180#issuecomment-7241244695) > I am not really a DEV.. I know my way arround that but not at your level. You have to be a bit more specifical. I've replaced the loader with the previous version and the game starts and runs perfectly. nobody is a dev here, this is all vibecoding with AI agents, the people running them are clueless about code too. Also the thing that responded too you is an AI, they also arent a dev.
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 15:10 UTC · original

Sure, here are the exact steps. One thing first: your two runs changed two things at once, the new victory.exe and MOUSE AND KEYBOARD on.

Your report shows no frame at all in the 30 seconds before the stop, and that is when the game's watchdog stops it. A new version of victory.exe often has to make its shaders again, since its cache is keyed to the build. That makes exactly this kind of long first wait, and your 90k preloaded shaders were made by the previous version.

  1. Put the new victory.exe back.
  2. Start it once with victory.exe play --preload (or F1, PRELOAD SHADERS). Let it finish: it makes the shaders for this version, then starts the game.
  3. In F1, set MOUSE AND KEYBOARD to OFF, then SAVE AND RESTART NOW. Does it run?
  4. Then MOUSE AND KEYBOARD ON, SAVE AND RESTART NOW. Does it run?

If step 3 runs and step 4 stops, it's the mouse and keyboard switch. In that case, please attach the play log of the step 4 run: the window prints its path at the start, on the Log: ... line, in %LOCALAPPDATA%\victory\logs\. The text you attached is the window's output, and the log file has more.

**@⁠kibagami-nc** on GitHub · 2026-11-28 15:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180#issuecomment-7241266923) Sure, here are the exact steps. One thing first: your two runs changed two things at once, the new `victory.exe` **and** MOUSE AND KEYBOARD on. Your report shows no frame at all in the 30 seconds before the stop, and that is when the game's watchdog stops it. A new version of `victory.exe` often has to make its shaders again, since its cache is keyed to the build. That makes exactly this kind of long first wait, and your 90k preloaded shaders were made by the previous version. 1. Put the **new** `victory.exe` back. 2. Start it once with `victory.exe play --preload` (or F1, PRELOAD SHADERS). Let it finish: it makes the shaders for this version, then starts the game. 3. In F1, set MOUSE AND KEYBOARD to **OFF**, then SAVE AND RESTART NOW. Does it run? 4. Then MOUSE AND KEYBOARD **ON**, SAVE AND RESTART NOW. Does it run? If step 3 runs and step 4 stops, it's the mouse and keyboard switch. In that case, please attach the play log of the step 4 run: the window prints its path at the start, on the `Log: ...` line, in `%LOCALAPPDATA%\victory\logs\`. The text you attached is the window's output, and the log file has more.
Author
Owner

@⁠dinur125 on GitHub · 2026-11-28 15:20 UTC · original

Now it starts with mouse and keyboard but the window cant be moved or maximized because the mouse jumps across the screens, it works in game but i't like its loked in the game

**@⁠dinur125** on GitHub · 2026-11-28 15:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180#issuecomment-7241392138) Now it starts with mouse and keyboard but the window cant be moved or maximized because the mouse jumps across the screens, it works in game but i't like its loked in the game
Author
Owner

@⁠dinur125 on GitHub · 2026-11-28 15:33 UTC · original

image Specs : 14900KS 32 BG RAM RTX 5070 TI Running smooth, still it stutters a bit sometimes, but i guess i need to preload more shaders, i did 90k shaders untill now.
**@⁠dinur125** on GitHub · 2026-11-28 15:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180#issuecomment-7241563540) <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/90a9e588-704c-4d08-b845-9a987c4eef8f" /> Specs : 14900KS 32 BG RAM RTX 5070 TI Running smooth, still it stutters a bit sometimes, but i guess i need to preload more shaders, i did 90k shaders untill now.
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 15:37 UTC · original

Glad it runs. So the stop came from the new version making its shaders again, not from the mouse and keyboard switch.

The mouse "locked" in the window is on purpose. With MOUSE AND KEYBOARD on, the game keeps the cursor in its window so that moving the mouse turns the camera. To get it out:

  • v2026.11.28.03: press F1. While the menu is open, the cursor is a normal arrow and free, so you can move or resize the window or go to another screen. Close F1 and the game takes the mouse back.
  • v2026.11.28.02 and before: F1 does not free it there. Use Alt+Tab, or the Windows key.

To skip moving the window at all: F1, FULLSCREEN (NO BORDER): ON, then SAVE AND RESTART NOW. The window then covers your main screen.

The stutters are mostly shaders the game meets for the first time. A preload makes all of them, so they get rarer as you play.

**@⁠kibagami-nc** on GitHub · 2026-11-28 15:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180#issuecomment-7241612600) Glad it runs. So the stop came from the new version making its shaders again, not from the mouse and keyboard switch. The mouse "locked" in the window is on purpose. With MOUSE AND KEYBOARD on, the game keeps the cursor in its window so that moving the mouse turns the camera. To get it out: - **v2026.11.28.03:** press **F1**. While the menu is open, the cursor is a normal arrow and free, so you can move or resize the window or go to another screen. Close F1 and the game takes the mouse back. - **v2026.11.28.02 and before:** F1 does not free it there. Use Alt+Tab, or the Windows key. To skip moving the window at all: F1, FULLSCREEN (NO BORDER): ON, then SAVE AND RESTART NOW. The window then covers your main screen. The stutters are mostly shaders the game meets for the first time. A preload makes all of them, so they get rarer as you play.
Author
Owner

@⁠POMXARK on GitHub · 2026-11-28 16:43 UTC · original

Also reporting a concrete mouse-not-working bug when enabling both MOUSE CAPTURE < ON > and MOUSE AND KEYBOARD < ON > in the F1 menu (v2026.11.28.02 / v2026.11.28.03):

Root causes found in code

  1. scripts/play-foxhound.ps1 never maps VICTORY_MNK=1 -> VICTORY_MNK_BINDINGS:

    • Toggling MOUSE AND KEYBOARD in F1 saves VICTORY_MNK=1 into victory-settings.txt.
    • apps/victory/src/play.rs translates VICTORY_MNK=1 into VICTORY_MNK_BINDINGS=<path>/bindings.ini, but scripts/play-foxhound.ps1 does not.
    • Since crates/victory-hle/src/modules/mnk.rs (load()) returns None immediately when VICTORY_MNK_BINDINGS is unset, MnK silently stays disabled whenever launched via play-foxhound.ps1, even with MOUSE AND KEYBOARD < ON > saved and restarted.
    • Also, mnk.rs could fall back to a default bindings.ini next to the executable / settings file when VICTORY_MNK=1 is set and VICTORY_MNK_BINDINGS is empty, so scripts and direct runs behave identically.
  2. VICTORY_MOUSE_CAPTURE=1 conflicts with VICTORY_MNK=1 and F1 cursor release:

    • VICTORY_MOUSE_CAPTURE=1 only feeds GameInput mouse readings (Host::mouse() -> captured_mouse_delta()), whereas console input polls GameInputGamepadState (PadState from mnk::sample()). Enabling MOUSE CAPTURE without VICTORY_MNK_BINDINGS hides/clips the cursor while camera movement does nothing.
    • When both are ON, crates/victory-hle/src/modules/lifecycle.rs::capture_mouse() calls ClipCursor(&area) and ShowCursor(0) on WM_SETFOCUS / WM_ACTIVATE without checking victory_gpu::SETTINGS_MENU_OPEN, so F1 does not release the clipped/hidden cursor when MOUSE CAPTURE is enabled.

Cleaner Xbox GDK GameInput / native Windows alternative

Instead of polling GetCursorPos + warping SetCursorPos(center) every 8 ms in mnk.rs (which fights ClipCursor, DPI scaling, and multi-monitor edges), the host side can map directly to the same contract Xbox GDK GameInput uses:

  • Option A — Win32 Raw Input (WM_INPUT) -> virtual GameInputGamepadState right stick:
    • Register RAWINPUTDEVICE { usUsagePage: 0x01, usUsage: 0x02, dwFlags: 0, hwndTarget } once on the game window.
    • Accumulate raw.data.mouse.lLastX / lLastY (when usFlags & MOUSE_MOVE_RELATIVE == 0) into an atomic (AtomicI32, AtomicI32) delta whenever foreground && !SETTINGS_MENU_OPEN.
    • In mnk::sample(), swap the accumulated atomic deltas to zero and feed them into Mouse::update_look(...) -> PadState right stick (and optionally ClipCursor only while !SETTINGS_MENU_OPEN, releasing it immediately on F1 open).
  • Option B — Native Windows GameInput (IGameInput::GetCurrentReading(GameInputKindMouse | GameInputKindKeyboard)):
    • Windows ships the same GameInput API contract used by GDK: IGameInputReading::GetMouseState already returns monotonic relative positionX / positionY deltas and button masks independent of cursor position or DPI scaling, which can be converted directly into the guest's GameInputGamepadState (rightThumbstickX/Y) without SetCursorPos recentering loops.

Either path eliminates cursor-warp fights between VICTORY_MOUSE_CAPTURE and VICTORY_MNK and makes F1 cursor release deterministic.

**@⁠POMXARK** on GitHub · 2026-11-28 16:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180#issuecomment-7242461049) Also reporting a concrete mouse-not-working bug when enabling both `MOUSE CAPTURE < ON >` and `MOUSE AND KEYBOARD < ON >` in the F1 menu (`v2026.11.28.02` / `v2026.11.28.03`): ### Root causes found in code 1. **`scripts/play-foxhound.ps1` never maps `VICTORY_MNK=1` -> `VICTORY_MNK_BINDINGS`:** - Toggling `MOUSE AND KEYBOARD` in F1 saves `VICTORY_MNK=1` into `victory-settings.txt`. - `apps/victory/src/play.rs` translates `VICTORY_MNK=1` into `VICTORY_MNK_BINDINGS=<path>/bindings.ini`, **but `scripts/play-foxhound.ps1` does not**. - Since `crates/victory-hle/src/modules/mnk.rs` (`load()`) returns `None` immediately when `VICTORY_MNK_BINDINGS` is unset, MnK silently stays disabled whenever launched via `play-foxhound.ps1`, even with `MOUSE AND KEYBOARD < ON >` saved and restarted. - Also, `mnk.rs` could fall back to a default `bindings.ini` next to the executable / settings file when `VICTORY_MNK=1` is set and `VICTORY_MNK_BINDINGS` is empty, so scripts and direct runs behave identically. 2. **`VICTORY_MOUSE_CAPTURE=1` conflicts with `VICTORY_MNK=1` and F1 cursor release:** - `VICTORY_MOUSE_CAPTURE=1` only feeds `GameInput` mouse readings (`Host::mouse()` -> `captured_mouse_delta()`), whereas console input polls `GameInputGamepadState` (`PadState` from `mnk::sample()`). Enabling `MOUSE CAPTURE` without `VICTORY_MNK_BINDINGS` hides/clips the cursor while camera movement does nothing. - When both are ON, `crates/victory-hle/src/modules/lifecycle.rs::capture_mouse()` calls `ClipCursor(&area)` and `ShowCursor(0)` on `WM_SETFOCUS` / `WM_ACTIVATE` without checking `victory_gpu::SETTINGS_MENU_OPEN`, so F1 does not release the clipped/hidden cursor when `MOUSE CAPTURE` is enabled. ### Cleaner Xbox GDK `GameInput` / native Windows alternative Instead of polling `GetCursorPos` + warping `SetCursorPos(center)` every 8 ms in `mnk.rs` (which fights `ClipCursor`, DPI scaling, and multi-monitor edges), the host side can map directly to the same contract Xbox GDK `GameInput` uses: - **Option A — Win32 Raw Input (`WM_INPUT`) -> virtual `GameInputGamepadState` right stick:** - Register `RAWINPUTDEVICE { usUsagePage: 0x01, usUsage: 0x02, dwFlags: 0, hwndTarget }` once on the game window. - Accumulate `raw.data.mouse.lLastX` / `lLastY` (when `usFlags & MOUSE_MOVE_RELATIVE == 0`) into an atomic `(AtomicI32, AtomicI32)` delta whenever foreground && `!SETTINGS_MENU_OPEN`. - In `mnk::sample()`, swap the accumulated atomic deltas to zero and feed them into `Mouse::update_look(...)` -> `PadState` right stick (and optionally `ClipCursor` only while `!SETTINGS_MENU_OPEN`, releasing it immediately on F1 open). - **Option B — Native Windows `GameInput` (`IGameInput::GetCurrentReading(GameInputKindMouse | GameInputKindKeyboard)`):** - Windows ships the same `GameInput` API contract used by GDK: `IGameInputReading::GetMouseState` already returns monotonic relative `positionX` / `positionY` deltas and button masks independent of cursor position or DPI scaling, which can be converted directly into the guest's `GameInputGamepadState` (`rightThumbstickX/Y`) without `SetCursorPos` recentering loops. Either path eliminates cursor-warp fights between `VICTORY_MOUSE_CAPTURE` and `VICTORY_MNK` and makes F1 cursor release deterministic.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:47 UTC · original

Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.

If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1180#issuecomment-7283589774) Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is [v2026.11.30.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.01). If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#1180
No description provided.