Skip to content
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

Panic on loading SVG file #240

Closed
Shnatsel opened this issue Nov 2, 2019 · 1 comment
Closed

Panic on loading SVG file #240

Shnatsel opened this issue Nov 2, 2019 · 1 comment

Comments

@Shnatsel
Copy link

@Shnatsel Shnatsel commented Nov 2, 2019

The attached SVG file causes a panic when loaded in the native demo app. Tested on commit 5d5d303

stress.svg.zip - zipped so that github would accept the upload.

Backtrace:

Oh noez! Panic! 💥
Message:  index out of bounds: the len is 1 but the index is 1
Location: renderer/src/tiles.rs:264

Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                          (7 post panic frames hidden)                          
 7: core::panicking::panic_bounds_check::hf0c95c4cc84d34ca
    at src/libcore/panicking.rs:61
 8: pathfinder_renderer::tiles::Tiler::generate_tiles::hfc169b80f1641916
    at <unknown source file>
 9: pathfinder_renderer::builder::SceneBuilder::build_path::hce897e2e946b5d4c
    at <unknown source file>
10: rayon::iter::plumbing::Producer::fold_with::h50fa76b5f0b3163a
    at <unknown source file>
11: rayon::iter::plumbing::bridge_producer_consumer::helper::h69dbadf04bd92d21
    at <unknown source file>
12: std::panicking::try::do_call::h6c4c1ab0f10124be
    at <unknown source file>
13: __rust_maybe_catch_panic
    at src/libpanic_unwind/lib.rs:80
14: <rayon_core::job::StackJob<L,F,R> as rayon_core::job::Job>::execute::h9adf8b7ae0ef7bc2
    at <unknown source file>
15: rayon_core::registry::WorkerThread::wait_until_cold::h217a69f524408fb0
    at <unknown source file>
16: rayon_core::registry::main_loop::h170a63d799a69fb7
    at <unknown source file>
17: std::panicking::try::do_call::hdc23013fbb359370
    at <unknown source file>
18: __rust_maybe_catch_panic
    at src/libpanic_unwind/lib.rs:80
19: core::ops::function::FnOnce::call_once{{vtable.shim}}::h1e9e799cd2b2c8fd
    at <unknown source file>
20: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h2877b2aefb0fd627
    at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/boxed.rs:787
21: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h13f473dbcdaa0fef
    at /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/boxed.rs:787
22: std::sys_common::thread::start_thread::h562a7c4953cb1d31
    at src/libstd/sys_common/thread.rs:13
23: std::sys::unix::thread::Thread::new::thread_start::h382c6ae14181d163
    at src/libstd/sys/unix/thread.rs:79
24: start_thread
    at <unknown source file>
25: __clone
    at <unknown source file>
26: <unknown>
    at <unknown source file>
Oh noez! Panic! 💥
Message:  called `Result::unwrap()` on an `Err` value: RecvError
Location: src/libcore/result.rs:1084

Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                          (8 post panic frames hidden)                          
 8: demo::main::h0b665984c7ae2ba3
    at <unknown source file>
 9: std::rt::lang_start::{{closure}}::hc8bed131044e1138
    at <unknown source file>
10: std::rt::lang_start_internal::{{closure}}::h4e93c1949c7a1955
    at src/libstd/rt.rs:49
11: std::panicking::try::do_call::h9440ccd4dc467eaa
    at src/libstd/panicking.rs:296
12: __rust_maybe_catch_panic
    at src/libpanic_unwind/lib.rs:80
13: std::panicking::try::hc046e7ee42ee744f
    at src/libstd/panicking.rs:275
14: std::panic::catch_unwind::h27dfc457c200aee0
    at src/libstd/panic.rs:394
15: std::rt::lang_start_internal::hea1b49a567afe309
    at src/libstd/rt.rs:48
16: main
    at <unknown source file>
17: __libc_start_main
    at <unknown source file>
18: _start
    at <unknown source file>
19: <unknown>
    at <unknown source file>
@pcwalton
Copy link
Collaborator

@pcwalton pcwalton commented Jul 28, 2020

This no longer panics for me.

@pcwalton pcwalton closed this Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.