veeso / termscp

🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB
https://termscp.veeso.dev
MIT License
1.48k stars 45 forks source link

[BUG] - panic if the terminal screen is too small #213

Closed lijc210 closed 9 months ago

lijc210 commented 10 months ago

Description

thread 'main' panicked at 'called Option::unwrap() on a None value', src/ui/activities/auth/mod.rs:209:31

Steps to reproduce

just run termscp in terminal

Expected behaviour

display login form page

Environment

veeso commented 10 months ago

can you try to run with RUST_BACKTRACE=full, please? Otherwise I cannot understand where the panic is, since that is just a function called in many places

lijc210 commented 10 months ago

can you try to run with RUST_BACKTRACE=full, please? Otherwise I cannot understand where the panic is, since that is just a function called in many places

thread 'main' panicked at 'called Option::unwrap() on a None value', src/ui/activities/auth/mod.rs:209:31 stack backtrace: 0: 0x1051a8e86 - mh_execute_header 1: 0x1051ce6cb - mh_execute_header 2: 0x1051a363c - mh_execute_header 3: 0x1051a8c5a - mh_execute_header 4: 0x1051aa6e0 - mh_execute_header 5: 0x1051aa490 - mh_execute_header 6: 0x1051aac3a - mh_execute_header 7: 0x1051aab13- mh_execute_header 8: 0x1051a92c9 - mh_execute_header 9: 0x1051aa89d - mh_execute_header 10: 11: 0x105200467 - mh_execute_header 12: 0x1049cca37 - mh 13: 0x104a3236b - mh_execute_header 14: 0x1049ce1b3 - mh_execute_header 15: 16: 0x104a07df8 - mh_execute_header 17: 0x104a4e5dc - mh_execu 18: 0x104a4c720 - mh_execute_header 19: 0x104a876c6 - mh_execute_header 20: 0x10 21: 0x10519d452 - mh_execute_header 22: 0x104a4f78c - mh_execute_hea

I found that the terminal can work in full screen mode, but it cannot work in window mode

Wonno commented 10 months ago

I found that the terminal can work in full screen mode, but it cannot work in window mode

I can confirm this behaviour.

veeso commented 10 months ago

I found that the terminal can work in full screen mode, but it cannot work in window mode

yes, it's true. I will fix it, but anyway at that size termscp isn't supposed to work anyway, it should just display a message to enlarge the window.

veeso commented 9 months ago

19992402