File-operation failures can return success and leave the GUI reporting Complete
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start in CompactGUI.Core/Compactor.cs and Uncompactor.cs at the failure-count branches, then follow the caller in CompactGUI/Services/CompressableFolderService.vb to see how its return value affects the GUI. Reproduce the locked-file compression and decompression cases described in the issue and trace the resulting status. Done means failures are surfaced accurately in the operation result and GUI, including the affected file details.
由索引模型根据 Issue 内容生成。
描述
Tested on official v4.0.0-beta.12, Windows 11 25H2 (26200.9711), ASUS Vivobook S 15 / Snapdragon X Elite X1E-78-100 / 16 GB RAM, .NET 10.0.13. Both the native ARM64 application and the official x64 application were tested directly on this ARM laptop. Additional component checks used unchanged libraries extracted from the x64 release, with the release's embedded manifest. No Intel/AMD PC was tested. Only disposable files were used. Most testing was automated with Codex, with human assistance identified where applicable. Related build request: #556.
A failed compression is reported as Complete/Compressed, and a failed decompression does not surface its error. This is related to the diagnostic gap in #551, but the reproduction here specifically demonstrates a success result despite failure.
Compression reproduction
- Create a compressible 4 MiB file in a disposable folder. Add it to CompactGUI, let analysis finish, and choose LZX.
- Hold the file open with FileAccess.Read and FileShare.None.
- Click Compress while the handle is held.
- Release the handle and independently query the file's WOF state and hash.
Expected: a failure or partial-failure indication identifying the affected file.
Actual: the queue reaches 100% and says Complete; the folder says Compressed, although 0 of 1 files is compressed and no space was saved. The log says:
Compression failed with error: "1 file operation(s) failed."
Reproduced twice at 12:29:02 and 12:29:57 BST on 21 October 2026. Independent queries found WOF mode None and matching SHA-256/length. An unlocked retry compressed the same file to LZX with 24,576 stored bytes and preserved content.
Decompression variant
First compress the unlocked file to LZX, analyse it, then hold the same READ-only exclusive handle and click Uncompress. The log reports one failed operation; the UI returns without a visible error. After the handle is released, the file is still LZX and its hash/length match. Reproduced at 12:39:13.
Read-only access matters: a write-access handle can itself cause Windows to decompress a WOF file, so that is not a valid unchanged-state control.
Source explanation
Both failure-count branches log an error and then return true:
A structured result or failure return, visible partial-failure status, and retained per-file error details would make the outcome reliable.
x64 component comparison (21 October 2026)
The underlying result-reporting defect also reproduces with the x64 release libraries. Two read-only exclusive-lock compression attempts each returned true, logged the failure below, and left the 4,194,304-byte file uncompressed. Locked decompression likewise returned true and logged a failure, while the file remained LZX with 20,480 stored bytes. Unlocked controls and cleanup succeeded; SHA-256 and length were unchanged throughout.
Compression: Return=true; Error: Compression failed with error: 1 file operation(s) failed.
WOF external=0; stored bytes=4,194,304
Decompression: Return=true; Error: Decompression failed with error: 1 file operation(s) failed.
WOF external=1; provider=2; algorithm=1 (LZX); stored bytes=20,480
The false-success return and misleading GUI outcome were subsequently reproduced in the official x64 application as well, as detailed below.
For an exact read-only lock, run the following in a separate PowerShell session using a disposable file's path, keep it open during the operation, then press Enter to release it:
$testFile = 'C:\DisposableTest\payload.txt' # replace with your test file
$hold = [IO.File]::Open($testFile, [IO.FileMode]::Open, [IO.FileAccess]::Read, [IO.FileShare]::None)
try { Read-Host 'Run the CompactGUI operation, then press Enter' } finally { $hold.Dispose() }
Direct x64 GUI follow-up (21 October 2026, BST)
The same read-only exclusive-lock steps were performed through the actual x64 application's buttons. At 17:50:57.912 it logged one failed compression operation, while the queue reached Complete/100% and the result showed 0 of 1 files compressed. Independent verification found the 4,194,304-byte file still uncompressed with its original hash. An unlocked GUI retry successfully produced LZX with 20,480 stored bytes.
At 17:53:58.262 the locked GUI Uncompress operation logged one failed operation and returned without a visible failure message. The file remained LZX at 20,480 stored bytes. Releasing the lock and retrying Uncompress restored it. SHA-256 and length matched at every checkpoint. This confirms the interface behavior in both builds on Windows ARM64.
- 主要语言
- Visual Basic .NET
- 星标
- 8.9k
- 派生
- 343
- 平均合并
- 3 天 18 小时
- 30 天内合并 PR
- 7
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IridiumIO/CompactGUI 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
IridiumIO/CompactGUI#699 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
IridiumIO/CompactGUI#697 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
IridiumIO/CompactGUI#696 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
IridiumIO/CompactGUI#680 ·
维护者通常 3 天内回复
-
难度 3/5 1-2 天 新手友好度 48/100
IridiumIO/CompactGUI#700 ·
维护者通常 3 天内回复
查看 IridiumIO/CompactGUI 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
kristoff-it/ziggy#87 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
appwrite/mcp-for-docs#23 · 1 条评论 ·
-
bug priority: low
难度 1/5 1 小时以内 新手友好度 88/100
sandialabs/sceptre-phenix#464 ·
维护者通常 6 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
reflex-dev/reflex#7634 · 1 条评论 ·
维护者通常 2 天内回复
-
Jupyter kernel leaks two file descriptors per cell; after ~100 cells every cell fails with "pipe() failed"可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复