-
Notifications
You must be signed in to change notification settings - Fork 85
"called Option::unwrap()
on a None
value" crash after running for a few hours
#80
Comments
Encountered the same problem on Fedora 32 installed from source as described in However, in my scenario, I ran the app for only ~5 minutes.
Please copy or attach ~/.local/state/ytop/errors.log if it exists and contains logs: (file is empty)
|
I'm having a hard time figuring out where the unwrap is occurring, the line number in the error message doesn't seem to be correct for some reason. If we could get a stack trace I think that would really help. |
I just got the same crash when I killed a docker build process. I assume that I killed the process at the same time ytop was trying to get information about it. |
|
Hello, it's pretty hard to track down this issue without more debug info since there are several places where this issue could be occuring. If someone is able to consistently reproduce this and wouldn't mind:
[profile.release]
debug = true
This will of course involve having |
|
Thanks for the debug info! I opened #104 to address this, but just because I'm curious did this crash happen after some time, or was it immediate? |
Now that I look into this more, this actually might not be the cause of the issue. I'm gonna poke around more. |
If anyone wouldn't mind pulling this branch (you can look at the commits, I just added logging for all entry points into After a crash there should actually be a |
My best hunch would be that this is specific to a |
Pretty much within 10 minutes of starting it although I am not completely sure as I ran ytop in a tmux session and then switched to another session glancing at ytop from time to time. If we define crashing immediately as for example crashing within 5 seconds of starting the program then it didn't crash immediately.
|
Hmmm, that's the newest version so that pretty much rules out an outdated compiler. I don't think #104 will be a fix either since the unwrap seems to be happening inside The last thing I can think of currently is that there is some weird behavior that seems to just be occuring on Fedora with |
Same problem, error log: $ RUST_BACKTRACE=full ytop
Backtrace (most recent call first):
File "<unknown>", line 0, in <size::Size<T> as core::fmt::Display>::fmt
File "rust:src/libcore/fmt/mod.rs", line 1069, in core::fmt::write
File "rust:src/libcore/fmt/mod.rs", line 193, in core::fmt::Write::write_fmt
File "rust:src/liballoc/fmt.rs", line 586, in alloc::fmt::format
File "<unknown>", line 0, in <&ytop::widgets::net::NetWidget as tui::widgets::Widget>::render
File "<unknown>", line 0, in ytop::draw::draw_bottom_row
File "<unknown>", line 0, in ytop::draw::draw_widgets
File "<unknown>", line 0, in tui::terminal::Terminal<B>::draw
File "<unknown>", line 0, in ytop::main
File "<unknown>", line 0, in std::rt::lang_start::{{closure}}
File "rust:src/libstd/rt.rs", line 52, in std::rt::lang_start_internal::{{closure}}
File "rust:src/libstd/panicking.rs", line 331, in std::panicking::try::do_call
File "rust:src/libstd/panicking.rs", line 274, in std::panicking::try
File "rust:src/libstd/panic.rs", line 394, in std::panic::catch_unwind
File "rust:src/libstd/rt.rs", line 51, in std::rt::lang_start_internal
File "<unknown>", line 0, in main
File "<unknown>", line 0, in __libc_start_main
File "<unknown>", line 0, in _start
The application panicked (crashed).
called `Option::unwrap()` on a `None` value
in /home/morgan/.cargo/registry/src/github.com-1ecc6299db9ec823/size-0.1.2/src/lib.rs, line 169
thread: main
Other info:
I'm using gnome-terminal as terminal emulator, distro is Linux Mint 20, errors.log is empty. Got this problem many times, usually after 10+ hours and randomly. rustc and cargo are latest, but I'm pretty sure that I installed crate on previous version (1.44.0 or 1.44.1). I will try to use ytop with debug=true and write here after new crash |
This has happened to me just now, after having running it for a minute, not more:
|
Can anyone who is able to get this problem consistently use the branch i listed earlier and post the logs after a crash. I tried livebooting, a VM, and some other random programs and never was able to reproduced |
@LovecraftianHorror, I had this problem initially, and later went to try your branch. However, when running from the branch with the instructions posted earlier, I have not come up with a consistent way to demonstrate the failure as of yet. |
Hmmm, that's peculiar. All my branch does is log the values before the points that it would cause a crash. I can try to reproduce again, but wasn't noticing any crashes after several days |
right. I am wondering if perhaps in between when I reported the error and when I tested again on your branch if I hadn't made some system updates that could have affected the reported behavior. I'll do some more testing to see if I can reproduce the crash in my current system state. |
I let
ytop
run for a few hours (without interacting with it), and then it crashed with:This is on Fedora 32, installed as described in Fedora Magazine.
I tried running
RUST_BACKTRACE=full ytop
but so far the problem has not recurred. Reporting anyway on the off-chance that it's still useful without the backtrace.Required information:
ytop -V
): ytop 0.6.0uname -a
: Linux localhost.localdomain 5.6.8-300.fc32.x86_64 Implement widgets #1 SMP Wed Apr 29 19:01:34 UTC 2020 x86_64 x86_64 x86_64 GNU/LinuxInclude any of the following information if relevant:
tmux -V
): tmux 3.0a (but I'm not running it)Please copy or attach
~/.local/state/ytop/errors.log
if it exists and contains logs: (file is empty)The text was updated successfully, but these errors were encountered: