Waiting for keyboard unlock after an AID key has no timeout and ignores an already-locked keyboard
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
- 55/100
Hướng nghiên cứu
Start by reading src/script_executor.cpp around lines 118–143 and 233–239, focusing on m_waitingForUnlock and the state-change signal that clears it. Reproduce with the issue’s ON TIMEOUT/PRESS ENTER example, and check PRESS SYSREQ separately. Done means the unlock wait honors EXPECT_TIMEOUT and dispatches the handler, locked AID presses fail immediately, and SysReq/Attn do not wait for unlock.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
After PRESS ENTER (or any AID) the executor waits for the keyboard to unlock with no timeout and no ON TIMEOUT handling. If the keyboard is already Locked/ErrorLocked (the widget drops the key) or the host never answers, the script hangs forever. PRESS SYSREQ also waits although SysReq does not change the keyboard state.
Location
- File(s):
src/script_executor.cpp - Line(s) / function(s): L118–L143, L233–L239
Category
error-handling
Severity
medium
Unattended scripts and MCP calls hang (MCP falls back to its own 60 s timeout).
Reproduction / Evidence
Reproducible at runtime: ON TIMEOUT GOTO h / GLOBAL EXPECT_TIMEOUT 300 / PRESS ENTER / … with a keyboard that never unlocks: still running after 3 s, handler never fires. Live against IBM i 7.5 through 5250ng's MCP: press_key SYSREQ → Script execution timed out after 60 seconds.
Expected Behavior
The unlock wait honours EXPECT_TIMEOUT (or its own limit) and dispatches ON TIMEOUT; pressing an AID while locked fails immediately; SysReq/Attn do not wait for an unlock.
Actual Behavior
Indefinite wait.
Root Cause
m_waitingForUnlock is only cleared by a state-change signal; no timer guards it.
- Ngôn ngữ chính
- C++
- Star
- 1
- Fork
- 2
- Merge trung bình
- 1 giờ 34 phút
- Pull request đã merge (30 ngày)
- 7
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 5250ng/5250script
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
5250ng/5250script#30 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
5250ng/5250script#27 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
5250ng/5250script#25 ·
-
aidByteToKeyword maps 0xF5 to PAGEUP and 0xF4 to PAGEDOWN, so recorded Page Down replays as Page UpĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
5250ng/5250script#20 ·
-
Function arguments are bound one at a time, so later arguments see already-rebound parametersĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
5250ng/5250script#19 ·
Tất cả issue của 5250ng/5250script
Issue tương tự
-
Invalid-MissingHash/Commit/NotAC
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
azerothcore/azerothcore-wotlk#28636 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
(S1 - Need confirmation)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
CleverRaven/Cataclysm-DDA#89829 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
comp-documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ClickHouse/ClickHouse#136277 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Flow Needs: Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
react/react-native#60447 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
RecompLauncher supportĐang mở
Độ 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