-
We should add a custom panic hook which logs an error message stating that panic has happened. This way we'll be guarded from silent thread panics
https://github.com/sfackler/rust-log-panics
-
```
│ assertion failed: self.fd == -1 (thread , at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ipc-channel-0.18.3/src/platform/unix/mod.rs:636)
│ 0: servoshell::backtrace::prin…
-
A Rust program may panic (i.e. cleanly abort execution) in case of fatal errors (e.g. any calls to `unwrap()` on a Result that contains an Error). This is only logged to stderr, which we cant read fro…
-
### Describe the feature
We should add a panic hook that includes information we want in the bug report, along with a link to the issue form itself, such as the version, database version, platform …
-
I tried this code:
```rust
panic::set_hook(Box::new(|panic_info| {
log::debug!("step 1");
thread::sleep(time::Duration::from_secs(3));
log::debug!("step 2");
if let…
gucki updated
5 months ago
-
I set up a sample panic somewhere in my code base, ran with `cargo run --release`, and caught it with the following custom panic handler:
```rust
pub fn show_backtrace_on_panic() {
std::panic…
-
```
[2024-08-27T05:14:10Z ERROR compositing::compositor] compositor shouldn't be handling messages after shutting down
called `Result::unwrap()` on an `Err` value: "SendError(..)" (thread WRRenderBa…
-
#183 adds the ability to add custom pre-hook callbacks to the panic /
error hook. These callbacks will be called before the panic / error hook
is called and can be used to print additional informati…
-
```
============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably re…
-
Deno version/platform:
```bash
Platform: macos aarch64
Version: 1.45.5
```
Output of `RUST_BACKTRACE=full deno run repro.js`:
```js
thread 'main' panicked at /private/tmp/deno-20240804-11972-…