-
Notifications
You must be signed in to change notification settings - Fork 15
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
[BUG] Application panics in small terminal windows #238
Comments
Here the report file: name = "wiki-tui"
operating_system = "Mac OS 15.0.0 [64-bit]"
crate_version = "0.9.1"
explanation = """
Panic occurred in file '/rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/string.rs' at line 1908
"""
cause = "assertion failed: self.is_char_boundary(n)"
method = "Panic"
backtrace = """
0: 0x1053a5f48 - core::panicking::panic_fmt::h33e40d2a93cab78f
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72
1: 0x1053a5fd0 - core::panicking::panic::h57fd475c037a9df3
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:144
2: 0x10500c890 - alloc::string::String::replace_range::h840035fcf0033525
3: 0x104f8b3bc - <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::h233bd55775b1b881
4: 0x104f7b090 - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter::h3673a9f044b9e8c7
5: 0x104fb3dec - wiki_tui::components::page::PageComponent::render_contents::h47b0d19a4dc67c72
6: 0x104fb72d0 - <wiki_tui::components::page::PageComponent as wiki_tui::components::Component>::render::hf3c276c6895c1922
7: 0x104ffb178 - <wiki_tui::app::AppComponent as wiki_tui::components::Component>::render::h259bbe9745e84800
8: 0x104f4b52c - ratatui::terminal::terminal::Terminal<B>::draw::h6380525214404c66
9: 0x104f34b44 - tokio::runtime::park::CachedParkThread::block_on::h30cfda1ecd5d2986
10: 0x104f52e70 - wiki_tui::main::h0f7f8c0679eb86db
11: 0x104f4abd0 - std::sys_common::backtrace::__rust_begin_short_backtrace::he7e163ba7145aef1
12: 0x104f4bcb0 - std::rt::lang_start::{{closure}}::ha6e2eef459f832d7
13: 0x105353814 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hde2a2ae1d756c37f
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:284
- std::panicking::try::do_call::h96b73f4da16ee7c5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552
- std::panicking::try::h2cb0c14c1266f147
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516
- std::panic::catch_unwind::hb8cd2580f659030d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142
- std::rt::lang_start_internal::{{closure}}::h00f9c2d0117ea0ef
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:148
- std::panicking::try::do_call::h134dfd8876bcc105
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552
- std::panicking::try::h6595e056250d6043
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516
- std::panic::catch_unwind::haad85d5172c9b53a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142
- std::rt::lang_start_internal::hf4f3eb1e51305b96
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:148
14: 0x104f53078 - _main""" |
Thank you @d-rens for your bug report! I've successfully reproduced the issue. The problem lies with our generation of the |
@0323pin try increasing the fontsize and decreasing the window width to "take space in the TOC", that's how it should break, at least for me. |
Ok, I've managed to reproduce it by resizing the window which, I never do manually as I use a tiling window manager. I guess I had never launched any other application in the same workspace as a running instance of wiki-tui. |
General Information
Version: 0.9.1
Installation Method:
cargo install --locked
Operating System: MacOS 15.0 Beta (24A5298h)
Used configuration (if available):
Describe the bug
On querying for "World War 2", so a long post, the application panics. On searching smaller articles such as "wort" it works well. It only panics on said page.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the program to work. Or at least not panic.
Crash report
Checklist
CONTRIBUTING.md
The text was updated successfully, but these errors were encountered: