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 in cache #5009

Closed
emilk opened this issue Feb 2, 2024 · 0 comments · Fixed by #5016
Closed

Panic in cache #5009

emilk opened this issue Feb 2, 2024 · 0 comments · Fixed by #5016
Assignees
Labels
🪳 bug Something isn't working 💣 crash crash, deadlock/freeze, do-no-start
Milestone

Comments

@emilk
Copy link
Member

emilk commented Feb 2, 2024

thread 'rayon-11' panicked at 'Out of bounds access'
re_query_cache/src/flat_vec_deque.rs:225
stack backtrace:
   8: core::panicking::panic_fmt
             at core/src/panicking.rs:72:14
   9: core::panicking::panic_display
             at core/src/panicking.rs:168:5
      core::panicking::panic_str
             at core/src/panicking.rs:152:5
      core::option::expect_failed
             at core/src/option.rs:1988:5
  10: core::option::Option<T>::expect
             at core/src/option.rs:898:21
      <alloc::collections::vec_deque::VecDeque<T,A> as core::ops::index::Index<usize>>::index
             at alloc/src/collections/vec_deque/mod.rs:2743:25
      re_query_cache::flat_vec_deque::FlatVecDeque<T>::value_offset
             at re_query_cache/src/flat_vec_deque.rs:225:25
      re_query_cache::flat_vec_deque::FlatVecDeque<T>::truncate
             at re_query_cache/src/flat_vec_deque.rs:644:30
      <re_query_cache::flat_vec_deque::FlatVecDeque<T> as re_query_cache::flat_vec_deque::ErasedFlatVecDeque>::dyn_truncate
             at re_query_cache/src/flat_vec_deque.rs:94:9
  11: re_query_cache::cache::CacheBucket::truncate_at_time
             at re_query_cache/src/cache.rs:840:13
      re_query_cache::range::RangeCache::truncate_at_time
             at re_query_cache/src/range.rs:102:9
      re_query_cache::cache::CachesPerArchetype::handle_pending_invalidation
             at re_query_cache/src/cache.rs:594:46
  12: re_query_cache::cache::Caches::with_range
             at re_query_cache/src/cache.rs:333:33
      re_query_cache::range::<impl re_query_cache::cache::Caches>::query_archetype_range_pov1_comp2
             at re_query_cache/src/range.rs:342:32
  13: re_query_cache::query::<impl re_query_cache::cache::Caches>::query_archetype_pov1_comp2
             at re_query_cache/src/query.rs:182:21
  14: re_space_view_time_series::line_visualizer_system::SeriesLineSystem::load_scalars
             at re_space_view_time_series/src/line_visualizer_system.rs:126:17
      <re_space_view_time_series::line_visualizer_system::SeriesLineSystem as re_viewer_context::space_view::visualizer_system::VisualizerSystem>::execute
             at re_space_view_time_series/src/line_visualizer_system.rs:59:15
  15: re_viewport::system_execution::create_and_run_space_view_systems::{{closure}}
             at re_viewport/src/system_execution.rs:43:19
      core::ops::function::impls::<impl core::ops::function::FnMut<A> for &F>::call_mut
             at core/src/ops/function.rs:272:13
  16: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &mut F>::call_once
             at core/src/ops/function.rs:305:13
      core::option::Option<T>::map
             at core/src/option.rs:1075:29
      <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::next
             at core/src/iter/adapters/map.rs:103:26
      rayon::iter::plumbing::Folder::consume_iter
             at rayon-1.7.0/src/iter/plumbing/mod.rs:178:21
  17: <rayon::iter::map::MapFolder<C,F> as rayon::iter::plumbing::Folder<T>>::consume_iter
             at rayon-1.7.0/src/iter/map.rs:248:21
      rayon::iter::plumbing::Producer::fold_with
             at rayon-1.7.0/src/iter/plumbing/mod.rs:110:9
      rayon::iter::plumbing::bridge_producer_consumer::helper
             at rayon-1.7.0/src/iter/plumbing/mod.rs:438:13
  18: rayon::iter::plumbing::bridge_producer_consumer::helper::{{closure}}
             at rayon-1.7.0/src/iter/plumbing/mod.rs:418:21
      rayon_core::join::join_context::call_a::{{closure}}
             at rayon-core-1.11.0/src/join/mod.rs:124:17
      <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at core/src/panic/unwind_safe.rs:271:9
      std::panicking::try::do_call
             at std/src/panicking.rs:504:40
      std::panicking::try
             at std/src/panicking.rs:468:19
      std::panic::catch_unwind
             at std/src/panic.rs:142:14
      rayon_core::unwind::halt_unwinding
             at rayon-core-1.11.0/src/unwind.rs:17:5
      rayon_core::join::join_context::{{closure}}
             at rayon-core-1.11.0/src/join/mod.rs:142:24
  19: rayon_core::registry::in_worker
             at rayon-core-1.11.0/src/registry.rs:984:13
      rayon_core::join::join_context
             at rayon-core-1.11.0/src/join/mod.rs:132:5
      rayon::iter::plumbing::bridge_producer_consumer::helper
             at rayon-1.7.0/src/iter/plumbing/mod.rs:416:47
  20: rayon::iter::plumbing::bridge_producer_consumer
             at rayon-1.7.0/src/iter/plumbing/mod.rs:397:12
      <rayon::iter::plumbing::bridge::Callback<C> as rayon::iter::plumbing::ProducerCallback<I>>::callback
             at rayon-1.7.0/src/iter/plumbing/mod.rs:373:13
      <rayon::vec::Drain<T> as rayon::iter::IndexedParallelIterator>::with_producer
             at rayon-1.7.0/src/vec.rs:147:13
      <rayon::vec::IntoIter<T> as rayon::iter::IndexedParallelIterator>::with_producer
             at rayon-1.7.0/src/vec.rs:83:9
  21: rayon::iter::plumbing::bridge
             at rayon-1.7.0/src/iter/plumbing/mod.rs:357:12
      <rayon::vec::IntoIter<T> as rayon::iter::ParallelIterator>::drive_unindexed
             at rayon-1.7.0/src/vec.rs:58:9
      <rayon::collections::hash_map::IterMut<K,V> as rayon::iter::ParallelIterator>::drive_unindexed
             at rayon-1.7.0/src/delegate.rs:21:28
      <rayon::iter::map::Map<I,F> as rayon::iter::ParallelIterator>::drive_unindexed
             at rayon-1.7.0/src/iter/map.rs:49:9
      <rayon::iter::flatten::Flatten<I> as rayon::iter::ParallelIterator>::drive_unindexed
             at rayon-1.7.0/src/iter/flatten.rs:38:9
      rayon::iter::extend::<impl rayon::iter::ParallelExtend<T> for alloc::vec::Vec<T>>::par_extend
             at rayon-1.7.0/src/iter/extend.rs:576:28
      rayon::iter::from_par_iter::collect_extended
             at rayon-1.7.0/src/iter/from_par_iter.rs:17:5
      rayon::iter::from_par_iter::<impl rayon::iter::FromParallelIterator<T> for alloc::vec::Vec<T>>::from_par_iter
             at rayon-1.7.0/src/iter/from_par_iter.rs:30:9
      rayon::iter::ParallelIterator::collect
             at rayon-1.7.0/src/iter/mod.rs:2056:9
      re_viewport::system_execution::create_and_run_space_view_systems
             at re_viewport/src/system_execution.rs:38:21
  22: re_viewport::space_view::SpaceViewBlueprint::execute_systems
             at re_viewport/src/space_view.rs:455:29
  23: re_viewport::system_execution::execute_systems_for_space_views::{{closure}}::{{closure}}::{{closure}}
             at re_viewport/src/system_execution.rs:80:29
      core::option::Option<T>::map
             at core/src/option.rs:1075:29
      re_viewport::system_execution::execute_systems_for_space_views::{{closure}}::{{closure}}
             at re_viewport/src/system_execution.rs:77:21
      core::option::Option<T>::and_then
             at core/src/option.rs:1414:24
      re_viewport::system_execution::execute_systems_for_space_views::{{closure}}
             at re_viewport/src/system_execution.rs:75:13
      <rayon::iter::filter_map::FilterMapFolder<C,P> as rayon::iter::plumbing::Folder<T>>::consume
             at rayon-1.7.0/src/iter/filter_map.rs:123:36
  24: rayon::iter::plumbing::Folder::consume_iter
             at rayon-1.7.0/src/iter/plumbing/mod.rs:179:20
      rayon::iter::plumbing::Producer::fold_with
             at rayon-1.7.0/src/iter/plumbing/mod.rs:110:9
      rayon::iter::plumbing::bridge_producer_consumer::helper
             at rayon-1.7.0/src/iter/plumbing/mod.rs:438:13
  25: rayon::iter::plumbing::bridge_producer_consumer::helper::{{closure}}
             at rayon-1.7.0/src/iter/plumbing/mod.rs:427:21
      rayon_core::join::join_context::call_b::{{closure}}
             at rayon-core-1.11.0/src/join/mod.rs:129:25
      rayon_core::job::JobResult<T>::call::{{closure}}
             at rayon-core-1.11.0/src/job.rs:218:41
      <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at core/src/panic/unwind_safe.rs:271:9
      std::panicking::try::do_call
             at std/src/panicking.rs:504:40
      std::panicking::try
             at std/src/panicking.rs:468:19
      std::panic::catch_unwind
             at std/src/panic.rs:142:14
      rayon_core::unwind::halt_unwinding
             at rayon-core-1.11.0/src/unwind.rs:17:5
      rayon_core::job::JobResult<T>::call
             at rayon-core-1.11.0/src/job.rs:218:15
      <rayon_core::job::StackJob<L,F,R> as rayon_core::job::Job>::execute
             at rayon-core-1.11.0/src/job.rs:120:32
  26: rayon_core::job::JobRef::execute
             at rayon-core-1.11.0/src/job.rs:64:9
      rayon_core::registry::WorkerThread::execute
             at rayon-core-1.11.0/src/registry.rs:874:13
      rayon_core::registry::WorkerThread::wait_until_cold
             at rayon-core-1.11.0/src/registry.rs:820:22
  27: rayon_core::registry::WorkerThread::wait_until
             at rayon-core-1.11.0/src/registry.rs:803:13
      rayon_core::registry::main_loop
             at rayon-core-1.11.0/src/registry.rs:948:5
      rayon_core::registry::ThreadBuilder::run
             at rayon-core-1.11.0/src/registry.rs:54:18
  28: <rayon_core::registry::DefaultSpawn as rayon_core::registry::ThreadSpawn>::spawn::{{closure}}
             at rayon-core-1.11.0/src/registry.rs:99:20
@emilk emilk added the 🪳 bug Something isn't working label Feb 2, 2024
@emilk emilk added this to the 0.13 milestone Feb 2, 2024
@emilk emilk self-assigned this Feb 2, 2024
@emilk emilk added the 💣 crash crash, deadlock/freeze, do-no-start label Feb 2, 2024
teh-cmc added a commit that referenced this issue Feb 2, 2024
### What
* Closes #5009
* Very similar to #5007

---------

Co-authored-by: Clement Rey <cr.rey.clement@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 💣 crash crash, deadlock/freeze, do-no-start
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant