warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.57k stars 379 forks source link

warp hangs after paste in vi #5059

Open yxd0018 opened 5 months ago

yxd0018 commented 5 months ago

Dupe Check

Describe the bug

after pasting anything into vi (insert mode) on warp, the vi will hang for some time (5-10 sec). Log is attached. No problem using other terminal application. $ uname -a Linux 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC x86_64 GNU/Linux

To reproduce

Open vi put into insert mode by keystroke i paste anything

Expected behavior

terminal should not hang the basic command

Screenshots

No response

Operating system

Linux

Operating system and version

Linux 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC x86_64 GNU/Linux

Shell Version

bash version 5.1.16(1)-release (x86_64-pc-linux-gnu)

Current Warp version

v0.2024.06.18.08.02.stable_04

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

warp log file with comments beginning with <==

2024-06-23T13:35:33Z [INFO] active window changed: Some(WindowId(0)) 2024-06-23T13:35:33Z [INFO] dispatching global action for root_view:update_quake_mode_state 2024-06-23T13:35:33Z [INFO] dispatching global action for workspace:save_app 2024-06-23T13:35:34Z [INFO] dispatching typed action: AltSelect(Begin { point: Point { row: 10, col: 39 }, side: Left, selection_type: Simple, position: Vector2F(<314.5, 161>) }) 2024-06-23T13:35:34Z [INFO] dispatching typed action: Focus 2024-06-23T13:35:34Z [INFO] dispatching typed action: AltSelect(End) 2024-06-23T13:35:34Z [INFO] dispatching typed action: MaybeLinkClick { position: AltScreen(Point { row: 10, col: 39 }), modifiers: ModifiersState { alt: false, cmd: false, shift: false, ctrl: false } } 2024-06-23T13:35:37Z [INFO] dispatching typed action: MiddleClickonGrid { position: Some(AltScreen(Point { row: 9, col: 39 })) } 2024-06-23T13:35:37Z [INFO] dispatching global action for workspace:save_app 2024-06-23T13:35:37Z [WARN] redraw_frame was called 2 times before the frame was drawn 2024-06-23T13:35:40Z [INFO] dispatching typed action: Left <==try to move cursor, hangs 2024-06-23T13:35:43Z [INFO] active window changed: None 2024-06-23T13:35:43Z [INFO] dispatching global action for root_view:update_quake_mode_state 2024-06-23T13:35:43Z [INFO] dispatching global action for workspace:save_app 2024-06-23T13:35:51Z [INFO] Start to flush telemetry events to Segment 2024-06-23T13:35:51Z [INFO] Dropping empty telemetry batch 2024-06-23T13:35:51Z [INFO] Flushed telemetry events. 2024-06-23T13:35:52Z [INFO] active window changed: Some(WindowId(0)) 2024-06-23T13:35:52Z [INFO] dispatching global action for root_view:update_quake_mode_state 2024-06-23T13:35:52Z [INFO] dispatching global action for workspace:save_app 2024-06-23T13:35:52Z [INFO] dispatching typed action: AltSelect(Begin { point: Point { row: 13, col: 42 }, side: Left, selection_type: Simple, position: Vector2F(<336.5, 223>) }) 2024-06-23T13:35:52Z [INFO] dispatching typed action: Focus 2024-06-23T13:35:53Z [INFO] dispatching typed action: AltSelect(End) 2024-06-23T13:35:53Z [INFO] dispatching typed action: MaybeLinkClick { position: AltScreen(Point { row: 13, col: 42 }), modifiers: ModifiersState { alt: false, cmd: false, shift: false, ctrl: false } } 2024-06-23T13:35:54Z [INFO] dispatching typed action: UserInputSequence <==come back life 2024-06-23T13:35:55Z [INFO] dispatching typed action: UserInputSequence

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

yxd0018 commented 5 months ago

I find out moving focus out of warp then back will instantly stop hanging.

dannyneira commented 5 months ago

Thanks for letting us know @yxd0018 sorry to hear about this issue. This issue may be helped when we launch Wayland support. We'll post any updates or followup questions on this thread.

To anyone else facing this issue, please add a 👍 to the original post at the top or comment with your details, and subscribe if you'd like to be notified.

Licanux commented 4 months ago

It happened to me too! Hope the bug may be fixed soon!