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

Crash: panicked at 'assertion failed: num_segments > 0' #3

Open
ErnWong opened this issue Nov 28, 2022 · 4 comments
Open

Crash: panicked at 'assertion failed: num_segments > 0' #3

ErnWong opened this issue Nov 28, 2022 · 4 comments

Comments

@ErnWong
Copy link
Owner

ErnWong commented Nov 28, 2022

wasm.js:437 panicked at 'assertion failed: num_segments > 0', /home/runner/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/lyon_tessellation-0.16.2/src/stroke.rs:1027:9

Stack:

Error
    at imports.wbg.__wbg_new_59cb74e423758ede (https://ernestwong.nz/dango-tribute/client/target/wasm.js:443:19)
    at console_error_panic_hook::Error::new::h799f20735cac74b5 (https://ernestwong.nz/dango-tribute/client/target/wasm_bg.wasm:wasm-function[104024]:0x1bc1f1f)
    at console_error_panic_hook::hook_impl::hfe98f285576b7df7 (https://ernestwong.nz/dango-tribute/client/target/wasm_bg.wasm:wasm-function[13912]:0xf66d55)
    at console_error_panic_hook::hook::h024505b23e1898e2 (https://ernestwong.nz/dango-tribute/client/target/wasm_bg.wasm:wasm-function[115166]:0x1c5cc4b)
    at core::ops::function::Fn::call::h5de70dd740a33179 (https://ernestwong.nz/dango-tribute/client/target/wasm_bg.wasm:wasm-function[97893]:0x1b61edb)
    at std::panicking::rust_panic_with_hook::h894f2bdeea4d0ce8 (https://ernestwong.nz/dango-tribute/client/target/wasm_bg.wasm:wasm-function[31806]:0x14481ad)
    at std::panicking::begin_panic_handler::{{closure}}::he30feeb51ae9f99b (https://ernestwong.nz/dango-tribute/client/target/wasm_bg.wasm:wasm-function[44794]:0x1676051)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h83a4032c6b997446 (https://ernestwong.nz/dango-tribute/client/target/wasm_bg.wasm:wasm-function[120244]:0x1c9c24d)
    at rust_begin_unwind (https://ernestwong.nz/dango-tribute/client/target/wasm_bg.wasm:wasm-function[109028]:0x1c0a738)
    at core::panicking::panic_fmt::h0dfe153eb0ef456a (https://ernestwong.nz/dango-tribute/client/target/wasm_bg.wasm:wasm-function[120246]:0x1c9c2b3)


imports.wbg.__wbg_error_4bb6c2a97407129a @ wasm.js:437
wasm_bg.wasm:0x1d1e900 Uncaught RuntimeError: unreachable
    at __rust_start_panic (wasm_bg.wasm:0x1d1e900)
    at rust_panic (wasm_bg.wasm:0x1ccc83d)
    at std::panicking::rust_panic_with_hook::h894f2bdeea4d0ce8 (wasm_bg.wasm:0x14481d3)
    at std::panicking::begin_panic_handler::{{closure}}::he30feeb51ae9f99b (wasm_bg.wasm:0x1676051)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h83a4032c6b997446 (wasm_bg.wasm:0x1c9c24d)
    at rust_begin_unwind (wasm_bg.wasm:0x1c0a738)
    at core::panicking::panic_fmt::h0dfe153eb0ef456a (wasm_bg.wasm:0x1c9c2b3)
    at core::panicking::panic::ha2f229d777a180c9 (wasm_bg.wasm:0x1b4a750)
    at lyon_tessellation::stroke::StrokeBuilder::tessellate_round_join::h374f8ac4bab2ff0d (wasm_bg.wasm:0x56e6dd)
    at lyon_tessellation::stroke::StrokeBuilder::tessellate_join::h6ed00a53e24f1c48 (wasm_bg.wasm:0x376f34)
@ErnWong
Copy link
Owner Author

ErnWong commented Sep 30, 2024

I seem to be getting this consistently - what introduced this?

@ErnWong
Copy link
Owner Author

ErnWong commented Oct 1, 2024

I also saw this:

wasm.js:294 Channel Incoming Error: packet channel is full

image

Not sure if relevant

@ErnWong
Copy link
Owner Author

ErnWong commented Oct 1, 2024

I'm trying to find lyon_tessellation-0.16.2 but the version skips v0.16 and jumps from 0.15 to 0.17? nical/lyon@fe39f76#diff-a1cf2a57dec7eaebdfb0c729f82548032ad37f08221184cd6daca6df0a997067

@ErnWong
Copy link
Owner Author

ErnWong commented Oct 1, 2024

If it's this assert, then it might be something fixed in newer versions (esp when that implementation has changed a lot and that the assert is no longer there).

https://github.com/nical/lyon/blame/0235217bfa9826f29e8d5fc5dbdfa8a6e35ebdff/tessellation/src/stroke.rs#L1012

Still quite spooky that it started breaking. What has changed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant