index out of bounds: the len is 0 but the index is 0 #930

Open
opened 2 months ago by Kromonos · 0 comments

Full error output:

thread '<unnamed>' panicked at 'index out of bounds: the len is 0 but the index is 0', /app/target/release/build/plume-69d5a54cf0803484/out/templates/partials/template_post_card_html.rs:36:45
stack backtrace:
   0:     0x5625617cce90 - std::backtrace_rs::backtrace::libunwind::trace::h4dee703919bfd40a
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
   1:     0x5625617cce90 - std::backtrace_rs::backtrace::trace_unsynchronized::h457e839f1a563e20
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x5625617cce90 - std::sys_common::backtrace::_print_fmt::h86a55fb30f8393c8
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x5625617cce90 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h7b3d6cac46d277e1
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:46:22
   4:     0x5625617ee17f - core::fmt::write::h127419eb46f2ecc9
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/fmt/mod.rs:1092:17
   5:     0x5625617c56b5 - std::io::Write::write_fmt::h6010cfbb4726588b
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/io/mod.rs:1578:15
   6:     0x5625617cf33b - std::sys_common::backtrace::_print::h79b4f9652330cc9d
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:49:5
   7:     0x5625617cf33b - std::sys_common::backtrace::print::h330bb326a76af8cf
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:36:9
   8:     0x5625617cf33b - std::panicking::default_hook::{{closure}}::heb6a42a7d50a472e
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:208:50
   9:     0x5625617cee03 - std::panicking::default_hook::h17e521ba6d68d6e1
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:225:9
  10:     0x5625617cf8ed - std::panicking::rust_panic_with_hook::h70db735e3a6e70cb
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:591:17
  11:     0x5625617cf4e7 - std::panicking::begin_panic_handler::{{closure}}::h777c71c8e5a7e25c
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:497:13
  12:     0x5625617cd34c - std::sys_common::backtrace::__rust_end_short_backtrace::h3e9bf30168899554
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:141:18
  13:     0x5625617cf449 - rust_begin_unwind
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:493:5
  14:     0x562560ab4cb1 - core::panicking::panic_fmt::h5322a082d19786c3
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/panicking.rs:92:14
  15:     0x562560ab4c72 - core::panicking::panic_bounds_check::hea626458a91f4a4a
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/panicking.rs:69:5
  16:     0x562560cb7169 - plume::templates::partials::template_post_card_html::post_card_html::hcfabc5f1d4998e24
  17:     0x562560aee076 - plume::templates::template_base_html::base_html::h271f1c4f0708c306
  18:     0x562560c0429e - plume::templates::instance::template_index_html::index_html::h652646c7ca95ad1f
  19:     0x562560d2be01 - plume::routes::instance::rocket_route_fn_index::hed968dcd8bdee0d7
  20:     0x562561731002 - <F as rocket::handler::Handler>::handle::h9c591d9ea8b2a2a6
  21:     0x56256173c9db - rocket::rocket::Rocket::route_and_process::ha98c1adda14a7f95
  22:     0x56256173a841 - <rocket::rocket::Rocket as hyper::server::Handler>::handle::h3cc2c8c597f88479
  23:     0x56256172e8d4 - hyper::server::Worker<H>::handle_connection::h18d77f0ecc07e993
  24:     0x562561737be2 - hyper::server::listener::spawn_with::{{closure}}::hdd50b7c618da88d4
  25:     0x562561734197 - std::sys_common::backtrace::__rust_begin_short_backtrace::h90b256b6c7ac557d
  26:     0x562561749d08 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h8a4cf34e9b9615b6
  27:     0x5625617d4543 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7f7bdfc757a1add0
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/alloc/src/boxed.rs:1546:9
  28:     0x5625617d4543 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::ha294ad0fb99e9b3a
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/alloc/src/boxed.rs:1546:9
  29:     0x5625617d4543 - std::sys::unix::thread::Thread::new::thread_start::h4614854ae73cd6b0
                               at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys/unix/thread.rs:71:17
  30:     0x7f2d09fd1fa3 - start_thread
  31:     0x7f2d09d784cf - clone
  32:                0x0 - <unknown>

The problem started from now to then on a dockerized Plume with latest image.

Full error output: ``` thread '<unnamed>' panicked at 'index out of bounds: the len is 0 but the index is 0', /app/target/release/build/plume-69d5a54cf0803484/out/templates/partials/template_post_card_html.rs:36:45 stack backtrace: 0: 0x5625617cce90 - std::backtrace_rs::backtrace::libunwind::trace::h4dee703919bfd40a at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 1: 0x5625617cce90 - std::backtrace_rs::backtrace::trace_unsynchronized::h457e839f1a563e20 at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x5625617cce90 - std::sys_common::backtrace::_print_fmt::h86a55fb30f8393c8 at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:67:5 3: 0x5625617cce90 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h7b3d6cac46d277e1 at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:46:22 4: 0x5625617ee17f - core::fmt::write::h127419eb46f2ecc9 at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/fmt/mod.rs:1092:17 5: 0x5625617c56b5 - std::io::Write::write_fmt::h6010cfbb4726588b at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/io/mod.rs:1578:15 6: 0x5625617cf33b - std::sys_common::backtrace::_print::h79b4f9652330cc9d at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:49:5 7: 0x5625617cf33b - std::sys_common::backtrace::print::h330bb326a76af8cf at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:36:9 8: 0x5625617cf33b - std::panicking::default_hook::{{closure}}::heb6a42a7d50a472e at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:208:50 9: 0x5625617cee03 - std::panicking::default_hook::h17e521ba6d68d6e1 at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:225:9 10: 0x5625617cf8ed - std::panicking::rust_panic_with_hook::h70db735e3a6e70cb at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:591:17 11: 0x5625617cf4e7 - std::panicking::begin_panic_handler::{{closure}}::h777c71c8e5a7e25c at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:497:13 12: 0x5625617cd34c - std::sys_common::backtrace::__rust_end_short_backtrace::h3e9bf30168899554 at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys_common/backtrace.rs:141:18 13: 0x5625617cf449 - rust_begin_unwind at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:493:5 14: 0x562560ab4cb1 - core::panicking::panic_fmt::h5322a082d19786c3 at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/panicking.rs:92:14 15: 0x562560ab4c72 - core::panicking::panic_bounds_check::hea626458a91f4a4a at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/panicking.rs:69:5 16: 0x562560cb7169 - plume::templates::partials::template_post_card_html::post_card_html::hcfabc5f1d4998e24 17: 0x562560aee076 - plume::templates::template_base_html::base_html::h271f1c4f0708c306 18: 0x562560c0429e - plume::templates::instance::template_index_html::index_html::h652646c7ca95ad1f 19: 0x562560d2be01 - plume::routes::instance::rocket_route_fn_index::hed968dcd8bdee0d7 20: 0x562561731002 - <F as rocket::handler::Handler>::handle::h9c591d9ea8b2a2a6 21: 0x56256173c9db - rocket::rocket::Rocket::route_and_process::ha98c1adda14a7f95 22: 0x56256173a841 - <rocket::rocket::Rocket as hyper::server::Handler>::handle::h3cc2c8c597f88479 23: 0x56256172e8d4 - hyper::server::Worker<H>::handle_connection::h18d77f0ecc07e993 24: 0x562561737be2 - hyper::server::listener::spawn_with::{{closure}}::hdd50b7c618da88d4 25: 0x562561734197 - std::sys_common::backtrace::__rust_begin_short_backtrace::h90b256b6c7ac557d 26: 0x562561749d08 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h8a4cf34e9b9615b6 27: 0x5625617d4543 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7f7bdfc757a1add0 at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/alloc/src/boxed.rs:1546:9 28: 0x5625617d4543 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::ha294ad0fb99e9b3a at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/alloc/src/boxed.rs:1546:9 29: 0x5625617d4543 - std::sys::unix::thread::Thread::new::thread_start::h4614854ae73cd6b0 at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/sys/unix/thread.rs:71:17 30: 0x7f2d09fd1fa3 - start_thread 31: 0x7f2d09d784cf - clone 32: 0x0 - <unknown> ``` The problem started from now to then on a dockerized Plume with latest image.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.