I think I've found the root cause of the `I/O Operation Failed` errors (same as #2185 and #828).
維護者通常 1 天內回覆
@LionelColaso 已經在處理了。
開始於 2026年10月16日。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 15/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- powershell, python
- 領域
- desktop-dev
研究方向
The bug sits where RimSort creates the steam\steamapps\workshop\content\294100 junction for SteamCMD and where it prompts "Re-create Symlink?". Start by reproducing the report: run RimSort, check the Redirection Guard state with the PowerShell snippet in the issue, then run SteamCMD's workshop download. Done means the link stays traversable when the guard is on, or the trigger that enables the guard is identified. The reporter's untrusted-mount-point evidence is the main lead, so verify it before changing link creation.
由索引模型根據 Issue 內容生成。
描述
Release Type
Compiled (Windows x86-64)
Version
RimSort v1.15.1-edge2
Operating System
Windows 11 Pro build 26200
Relevant logs
No response
Describe the bug
During a session, RimSort.exe can end up with Windows' Redirection Guard process mitigation (ProcessRedirectionTrustPolicy) switched on. SteamCMD is started as a child of RimSort and therefore inherits it. With Redirection Guard on, Windows 11 won't follow junctions or symlinks created by non-admins, so SteamCMD cannot get through the steam\steamapps\workshop\content\294100 link that RimSort creates. SteamCMD's logs\workshop_log.txt shows the error:
Update canceled: Install folder not writable (Disk write failure) "...\steamapps\workshop/content/294100"
Download item xxxx result : I/O Operation Failed
Normal shells don't have this mitigation, therefore running the script by hand in a prompt works. Reinstalling SteamCMD doesn't help, as the symlink is still created by a non-admin. Running RimSort as admin will work, as the link would be created by an admin and therefore trusted.
How I confirmed it
GetProcessMitigationPolicy(ProcessRedirectionTrustPolicy)on the running RimSort.exe returnedEnforceRedirectionTrust = 1. explorer.exe and a normal PowerShell returned 0.- In a separate PowerShell process with the policy switched on via
SetProcessMitigationPolicy, listing through the junction fails withERROR_UNTRUSTED_MOUNT_POINT(448): "The path cannot be traversed because it contains an untrusted mount point." Child processes started from it also reportEnforceRedirectionTrust = 1, so the policy is inherited. - Running
steamcmd.exe +runscriptwith the same script RimSort writes, from that process, reproducesI/O Operation Failedexactly. The same command from a normal shell succeeds. - A directory symlink created by a non-admin (Developer Mode on) is blocked the same way, so switching from a junction to a symlink wouldn't help.
- After recreating the junction from an elevated prompt with
mklink /J(owner becomesBUILTIN\Administrators), it can be traversed with the policy on, and SteamCMD downloads succeed.
To check a running RimSort (prints 1 if the guard is on):
Add-Type @"
using System; using System.Runtime.InteropServices;
public static class RGCheck {
[DllImport("kernel32.dll")] public static extern IntPtr OpenProcess(uint a, bool i, int p);
[DllImport("kernel32.dll")] public static extern bool GetProcessMitigationPolicy(IntPtr h, int p, out uint v, UIntPtr l);
}
"@
$h = [RGCheck]::OpenProcess(0x1000, $false, (Get-Process RimSort).Id)
$v = [uint32]0; [RGCheck]::GetProcessMitigationPolicy($h, 16, [ref]$v, [UIntPtr]4) | Out-Null
"EnforceRedirectionTrust = $($v -band 1)"
Unsure as to what switches it on
Sometimes, a RimSort session will load with the policy disabled (EnforceRedirectionTrust = 0), preventing the bug. Sessions with the bug report (``EnforceRedirectionTrust = 1). RimSort's code never calls SetProcessMitigationPolicy`, and there's no IFEO/Exploit Protection entry for RimSort.exe.
Workaround for users
Close RimSort, then run these in an administrator Command Prompt. These will just remove the existing symlink, not the mods.
rmdir "<SteamCMD folder>\steam\steamapps\workshop\content\294100"
mklink /J "<SteamCMD folder>\steam\steamapps\workshop\content\294100" "<RimWorld folder>\Mods"
Afterwards, decline RimSort's "Re-create Symlink?" prompt, or it will replace the trusted link with an untrusted one.
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct
Duplicate Issue Check
I've checked for similar issues and didn't find anything
Wiki/FAQ Check
I've checked the Wiki for a solution and didn't find a solution
- 主要語言
- Python
- 星號
- 1.2k
- 分支
- 155
- 平均合併
- 1 天 22 小時
- 30 天內合併 PR
- 71
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
RimSort/RimSort 的其他 Issue
-
bugs 🪲
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
feature/improvement 🆕
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
bugs 🪲
難度 2/5 1-3 小時 新手友好度 58/100
維護者通常 1 天內回覆
-
feature/improvement 🆕
難度 2/5 1-3 小時 新手友好度 55/100
維護者通常 1 天內回覆
-
bugs 🪲
難度 4/5 3-5 天 新手友好度 45/100
RimSort/RimSort#2668 · 1 則留言 ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
hugohe3/ppt-master#366 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 89/100
維護者通常 2 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
521xueweihan/HelloGitHub#4716 ·
-
難度 1/5 1 小時以內 新手友好度 84/100
pcqpcq/open-source-android-apps#619 ·
維護者通常 1 天內回覆
-
contribution Windows 主机
難度 2/5 1-3 小時 新手友好度 72/100
Lee-xeo/Claude-Cage#1519 ·
維護者通常 1 天內回覆