Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: investigate crossterm windows 10 #17

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

hansieodendaal
Copy link
Owner

@hansieodendaal hansieodendaal commented Jan 20, 2025

Description

Investigated crossterm failure when running Console Wallet in Windows 10 and Windows Console Host (see tari-project#6729).

tldr; The backend crossterm process dies with maximize -> reset. This also holds for the latest release crossterm = { version = "0.28.1" }

Test code was added to capture and act on the crosterm::event::poll errer (No process is on the other end of the pipe. (os error 233)). As soon as this polling error is encountered, an event Event::RestartCrosstermLoop is sent to the terminal, which is of type Terminal<CrosstermBackend<StdOut>>. The terminal then tries to clear itself, upon which the same OS error is returned. As soon as the fn crossterm_loop( is exited, the terminal dies.

2025-01-20 16:20:11.499961300 [wallet::app::crossterm_events] ERROR Internal error in crossterm events, tick rate: 249.9999ms, err: No process is on the other end of the pipe. (os error 233)
2025-01-20 16:20:12.415411300 [wallet::console_wallet::wallet_event_monitor] TRACE Wallet Event Monitor received wallet connectivity event PeerConnectFailed(NodeId(85d605836f02951c65651f99d0))
2025-01-20 16:20:12.500616800 [wallet::ui::app] TRACE Key event: RestartCrosstermLoop
2025-01-20 16:20:12.500709300 [wallet::ui::app] ERROR Error clearing interface. No process is on the other end of the pipe. (os error 233)

Motivation and Context

How Has This Been Tested?

What process can a PR reviewer use to test or verify this change?

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Investigated crossterm failure when running Console Wallet in Windows 10 and
Windows Console Host.

The backend crossterm process dies with maximize -> reset
```
2025-01-20 16:20:11.499961300 [wallet::app::crossterm_events] ERROR Internal error in crossterm events, tick rate: 249.9999ms, err: No process is on the other end of the pipe. (os error 233)
2025-01-20 16:20:12.415411300 [wallet::console_wallet::wallet_event_monitor] TRACE Wallet Event Monitor received wallet connectivity event PeerConnectFailed(NodeId(85d605836f02951c65651f99d0))
2025-01-20 16:20:12.500616800 [wallet::ui::app] TRACE Key event: RestartCrosstermLoop
2025-01-20 16:20:12.500709300 [wallet::ui::app] ERROR Error clearing interface. No process is on the other end of the pipe. (os error 233)
```
Copy link

Test Results (CI)

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit e0b0e58.

Copy link

Test Results (Integration tests)

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit e0b0e58.

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