Inlyne-Project/inlyne

Panic occurred in file 'src/renderer.rs' at line 402

Closed this issue ยท 1 comments

There's a panic in the renderer when trying a file with this decently complex table cell

<table>
  <tr>
    <td align="center"><a href="https://hurtlingthrough.space/"><img src="https://avatars.githubusercontent.com/u/5186335?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Cameron Pittman</b></sub></a><br /><a href="https://github.com/mbround18/valheim-docker/commits?author=cameronwp" title="Documentation">๐Ÿ“–</a></td>
  </tr>
</table>
Relevant crash report
name = "inlyne"
operating_system = "Arch Linux Rolling Release [64-bit]"
crate_version = "0.4.1"
explanation = """
Panic occurred in file 'src/renderer.rs' at line 402
"""
cause = "called `Option::unwrap()` on a `None` value"
method = "Panic"
backtrace = """

   0: 0x6415febf5da3 - core::panicking::panic::h5a1259c1164bd480
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/panicking.rs:144
   1: 0x6415fdc64560 - inlyne::renderer::Renderer::render_elements::haf240f2daeb3a36c
   2: 0x6415fdc650a0 - inlyne::renderer::Renderer::redraw::ha47bd4c1e84ca019
   3: 0x6415fdb5efd1 - inlyne::Inlyne::run::{{closure}}::h80271196e54d9c54
   4: 0x6415fdb57392 - winit::platform_impl::platform::x11::EventLoop<T>::run_return::single_iteration::h1e113a7ca508eae7
   5: 0x6415fdb57822 - winit::platform_impl::platform::x11::EventLoop<T>::run::hd8e39bc30073cae8
   6: 0x6415fdb56c9d - winit::platform_impl::platform::EventLoop<T>::run::h836aee4ae61e309d
   7: 0x6415fdc358ba - inlyne::main::h86b81f17a9046268
   8: 0x6415fdba5463 - std::sys_common::backtrace::__rust_begin_short_backtrace::he2491fbbb75172c0
   9: 0x6415fdc365cd - std::rt::lang_start::{{closure}}::h16a99ea5f6ccd83b
  10: 0x6415febb7561 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h4eb4c5e1620f29b0
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/core/src/ops/function.rs:284
                 - std::panicking::try::do_call::h73fd26535faffcdf
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:552
                 - std::panicking::try::h77ff1d98f0fb9f39
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:516
                 - std::panic::catch_unwind::hab3caf2448b95e37
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panic.rs:142
                 - std::rt::lang_start_internal::{{closure}}::h8086711f9c783f78
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/rt.rs:148
                 - std::panicking::try::do_call::hf920d4dc291cd6ca
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:552
                 - std::panicking::try::h2b806ccc0a85db74
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panicking.rs:516
                 - std::panic::catch_unwind::h038489539c507df2
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/panic.rs:142
                 - std::rt::lang_start_internal::h28503b88912e8a5c
                at /rustc/0e09125c6c3c2fd70d7de961bcf0e51575235fad/library/std/src/rt.rs:148
  11: 0x6415fdc361b5 - main
  12: 0x7b0582f12cd0 - <unresolved>
  13: 0x7b0582f12d8a - __libc_start_main
  14: 0x6415fdae26a5 - _start
  15:        0x0 - <unresolved>"""

Ope, looks like this is just a duplicate of #261