Skip to content

fix:kylin arm64 新建文件异常,输入法切换异常等问题 - #516

Open
bymain-518 wants to merge 3 commits into
purocean:developfrom
bymain-518:develop
Open

fix:kylin arm64 新建文件异常,输入法切换异常等问题#516
bymain-518 wants to merge 3 commits into
purocean:developfrom
bymain-518:develop

Conversation

@bymain-518

Copy link
Copy Markdown

No description provided.

liangyuefeng added 3 commits July 20, 2026 17:40
- Fix input method (fcitx4) and window display on Linux Wayland (银河麒麟 V10 SP1 aarch64)
  by re-execing with --ozone-platform=x11 --disable-gpu when Wayland is detected
- Move isMacos/isLinux definitions before first use to fix TDZ bug
- Add null/undefined guards throughout server handlers to prevent crashes
- Add try-catch wrappers around error-prone operations (fs, store, protocol, etc.)
- Add file-based debug logging for EFAULT write error investigation
- Improve error handling in wrapper middleware to handle ctx.set failures
- Fix bodyParser wrapping to catch and log parse errors
- Add input validation for API endpoints (repo, path, query params)
- Fix isLocalhost to handle IPv4-mapped IPv6 addresses
- Fix parseRange to handle missing range and clamp end offset
- Fix sendFile to handle directory stat and cache-control errors
- Fix extension handler routing logic
- Fix choose handler to properly release lock on error
Replace fs-extra ensureFile with native fs.promises access + writeFile
to fix EFAULT bad address errors on aarch64 Linux. Remove all temporary
debug logging (_dbg, /tmp/yank-debug.log) from file.ts and index.ts,
restoring bodyParser and error handling to their original form.
Document the four key fixes for Kylin/UOS on ARM64: EFAULT file write
fix, Wayland session compatibility via X11 backend, desktop icon launch
fix via symlink, and deb dependency correction (libnss1 -> libnss3).
Add installation instructions for both deb and command-line usage.
@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the purocean's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant