Phone photos are black in the gallery (shader-written texture the title's CPU reads is not copied back?) #1388

Closed
opened 2026-11-28 18:45:34 +00:00 by github-bot · 2 comments
Owner

@⁠tippythetaidum on GitHub · 2026-11-28 18:43 UTC · original

PC: RTX 5080 16 GB (driver 621.14), Ryzen 7 9800X3D, 32 GB, Windows 11 26200.
Build: main 63b902f plus #393, release. Series X 2560x1440, DLSS Quality, frame generation 4x.

What happens

A photo taken with the in-game phone's camera (a selfie, in the world, daytime, on a boat) is saved: the camera app showed "GALLERY 1/32". But viewing it in the phone's gallery shows a black image. The camera's viewfinder showed the picture live. The save menu's thumbnail of the game, made in the same session, is not black.

What I think it is (not verified yet)

On the console the CPU and the GPU share memory, so a texture a shader writes is in title memory for the title's CPU code to read. Here a texture that shaders write stays in its host copy. crates/victory-gpu/src/texback.rs copies such textures back into title memory only for the kinds in VICTORY_TEXTURE_BACK, by default the four the ocean needs (256x256f41, 256x256f16, 64x64f16, 128x128f36). If the photo path renders the shot into a texture and the title's CPU code then reads it (to encode or store it), it reads memory nothing wrote, so the photo comes out black. The black fits that.

What would confirm it: a diagnostics build with VICTORY_READ_WATCH=1, taking a photo, and seeing which texture kind the title's CPU reads that no one wrote. That kind added to VICTORY_TEXTURE_BACK should then give a real photo. I haven't run this yet.

Searched: no open or closed issue here about phone photos, the gallery or the camera roll. #545 is the phone screen in the diner (another cause).

**@⁠tippythetaidum** on GitHub · 2026-11-28 18:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1388) **PC:** RTX 5080 16 GB (driver 621.14), Ryzen 7 9800X3D, 32 GB, Windows 11 26200. **Build:** main `63b902f` plus #393, release. Series X 2560x1440, DLSS Quality, frame generation 4x. ### What happens A photo taken with the in-game phone's camera (a selfie, in the world, daytime, on a boat) is saved: the camera app showed "GALLERY 1/32". But viewing it in the phone's gallery shows a black image. The camera's viewfinder showed the picture live. The save menu's thumbnail of the game, made in the same session, is not black. ### What I think it is (not verified yet) On the console the CPU and the GPU share memory, so a texture a shader writes is in title memory for the title's CPU code to read. Here a texture that shaders write stays in its host copy. `crates/victory-gpu/src/texback.rs` copies such textures back into title memory only for the kinds in `VICTORY_TEXTURE_BACK`, by default the four the ocean needs (`256x256f41, 256x256f16, 64x64f16, 128x128f36`). If the photo path renders the shot into a texture and the title's CPU code then reads it (to encode or store it), it reads memory nothing wrote, so the photo comes out black. The black fits that. What would confirm it: a diagnostics build with `VICTORY_READ_WATCH=1`, taking a photo, and seeing which texture kind the title's CPU reads that no one wrote. That kind added to `VICTORY_TEXTURE_BACK` should then give a real photo. I haven't run this yet. Searched: no open or closed issue here about phone photos, the gallery or the camera roll. #545 is the phone screen in the diner (another cause).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 18:45:34 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 18:43 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-28 18:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1388#issuecomment-7244006243) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:43 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:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1388#issuecomment-7283487412) 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#1388
No description provided.