Micro hangs on startup (black screen) in Termux environment when termux-api is installed
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- android, go
- 领域
- cli, mobile-dev
调研方向
首先,在安装了 termux-api 的 Termux 环境中复现挂起问题,然后比较使用默认剪贴板处理方式和 -clipboard internal 时的启动情况。跟踪初始化阶段对系统剪贴板的调用,并验证正常启动不再阻塞,同时剪贴板功能仍然可用。
由索引模型根据 Issue 内容生成。
描述
On modern Android devices (Android 13/14, specifically tested on Poco M5), the micro editor hangs indefinitely on a black screen during the initialization phase if the termux-api package is installed in the environment. This appears to be a synchronous blocking call to the system clipboard that never receives a response from the Android OS.
Steps to Reproduce :
- Install Termux on an Android 13+ device.
- Install the micro editor: pkg install micro.
- Install the termux-api package: pkg install termux-api.
- Attempt to open any file or the editor itself: micro test.txt.
The terminal remains on a blank/black screen and does not respond to input.
Technical Diagnosis (Root Cause Analysis) : The issue is a Synchronous Blocking I/O hang. When termux-api is present, micro attempts to interface with the Android system clipboard. Due to Android's strict background execution limits and phantom process restrictions, the system call to the clipboard bridge does not return a value. Because micro does not have an internal timeout for this initialization step, the process enters a deadlock state, awaiting a response from the termux-api service that never arrives.
Workaround Found: Bypassing the system clipboard call by using the internal clipboard flag resolves the issue immediately: micro -clipboard internal [filename]
Environment :
Device: Poco M5 (Android 13/14)
Terminal: Termux
Editor Version: Latest available via pkg install (2.0.13+)
Dependency: termux-api installed.
Additional Context
Mentioning @termux for visibility, as this affects the user expericeen for developers using the Termux environment on modern Android versions. This bug appears to be an integration conflict between the editor's clboipard handling and the Termux-API bridge.
- 主要语言
- Go
- 星标
- 29.8k
- 派生
- 1.4k
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
micro-editor/micro 的其他 Issue
-
feature syntax
难度 2/5 1-3 小时 新手友好度 72/100
micro-editor/micro#4289 ·
维护者通常 3 天内回复
-
Also bind alt-click for multi-cursors可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭feature
难度 2/5 1-3 小时 新手友好度 68/100
micro-editor/micro#4260 ·
维护者通常 3 天内回复
-
XML syntax highlighting breaks if empty tag contains whitespace before close可能已有人在做 @justadityaraj 于 56 天前认领。 未关闭bug syntax
难度 2/5 1-3 小时 新手友好度 68/100
micro-editor/micro#4213 · 1 条评论 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
micro-editor/micro#3553 · 5 条评论 ·
维护者通常 3 天内回复
-
syntax
难度 2/5 1-3 小时 新手友好度 64/100
micro-editor/micro#2969 · 3 条评论 · 1 个 reaction ·
维护者通常 3 天内回复
查看 micro-editor/micro 的全部 Issue
相似的 Issue
-
area/docs framework/hugo help wanted language/markdown
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
难度 2/5 1-3 小时 新手友好度 75/100
openclaw/crabbox#3060 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
kubeflow/semantic-operator#52 ·
维护者通常 10 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement help wanted
难度 2/5 1-3 小时 新手友好度 78/100
PramodBasavarajMenasi/siftwise#52 ·
维护者通常 1 天内回复