Micro hangs on startup (black screen) in Termux environment when termux-api is installed
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- android, go
- Lĩnh vực
- cli, mobile-dev
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện hiện tượng treo trong môi trường Termux đã cài termux-api, sau đó so sánh quá trình khởi động khi sử dụng cơ chế xử lý clipboard mặc định và -clipboard internal. Truy vết lệnh gọi đến clipboard hệ thống trong giai đoạn khởi tạo và xác minh rằng quá trình khởi động bình thường không còn bị chặn, đồng thời clipboard vẫn có thể sử dụng được.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 29.8k
- Fork
- 1.4k
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của micro-editor/micro
-
feature syntax
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
micro-editor/micro#4289 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Also bind alt-click for multi-cursorsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởfeature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
micro-editor/micro#4260 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
XML syntax highlighting breaks if empty tag contains whitespace before closeCó thể đã có người làm @justadityaraj đã nhận 57 ngày trước. Đang mởbug syntax
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
micro-editor/micro#4213 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
micro-editor/micro#3553 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
syntax
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
micro-editor/micro#2969 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của micro-editor/micro
Issue tương tự
-
Cluster details: the Control Plane version field has a different border color than its icon boxĐang mởkind/design sig/ui
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
kubermatic/dashboard#8449 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
filecoin-project/curio#1632 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
compose: derived node options overwrite each other's targetsCó thể đã có người làm @yangjj-iso đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày