orhun / binsider

Analyze ELF binaries like a boss 😼🕵️‍♂️
https://binsider.dev/
Apache License 2.0
2.76k stars 61 forks source link

Panic when randomly going to next and previous library #59

Closed qarmin closed 1 month ago

qarmin commented 1 month ago

Describe the bug

When checking random binaries I got this crash

^[]11;rgb:1818/1818/1818^[\/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2: missing program name
Try '/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 --help' for more information.

Backtrace omitted. Run with RUST_BACKTRACE=1 to display it.
Run with RUST_BACKTRACE=full to include source snippets.

The application panicked (crashed).
  failed to send tick event: SendError { .. }
in src/tui/event.rs:80
thread: <unnamed>

To reproduce

Open random binary Click randomly enter + backspace after a while click esc key - probably when "Loading screen is visible"

Expected behavior No crash Software information

orhun commented 1 month ago

Hey, thanks for reporting! This is fixed in #62

The issue was, some ANSI escape codes were being run for querying the terminal background on each time you select a dependency. Now we are querying the background color once at the start of the application which should fix this :)