Skip to content

PrimeCaches panic thin-vec salsa #19811

Closed
@undenuicap

Description

@undenuicap

RA hangs after indexing 2500/2700 items with error:

thread 'PrimeCaches#6' panicked at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thin-vec-0.2.14/src/lib.rs:1061:51:
capacity overflow
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::option::expect_failed
3: thin_vec::ThinVec::reserve
4: salsa::table::memo::MemoTableWithTypes::insert
5: salsa::function::execute::<impl salsa::function::IngredientImpl>::execute
6: salsa::function::fetch::<impl salsa::function::IngredientImpl>::fetch_cold
7: salsa::function::fetch::<impl salsa::function::IngredientImpl>::fetch
8: std::thread::local::LocalKey::with
9: ::impl_signature_with_source_map::impl_signature_with_source_map_shim
10: salsa::function::execute::<impl salsa::function::IngredientImpl>::execute
11: salsa::function::fetch::<impl salsa::function::IngredientImpl>::fetch_cold
12: ::impl_signature::impl_signature_shim
13: hir::symbols::SymbolCollector::do_work::{{closure}}
14: hir::symbols::SymbolCollector::collect
15: hir::symbols::SymbolCollector::new_module
16: <::module_symbols::module_symbols_shim::Configuration
as salsa::function::Configuration>::execute
17: salsa::function::execute::<impl salsa::function::IngredientImpl>::execute
18: salsa::function::fetch::<impl salsa::function::IngredientImpl>::fetch_cold
19: salsa::function::fetch::<impl salsa::function::IngredientImpl>::fetch
20: std::thread::local::LocalKey::with
21: ::module_symbols::module_symbols_shim
22: salsa::cancelled::Cancelled::catch
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
query stacktrace:
0: impl_signature_shim(Id(213f9d)) -> (R1, Durability::HIGH)
at crates/hir-def/src/db.rs:101
1: module_symbols_shim(Id(1de169)) -> (R23515, Durability::LOW)
at crates/ide-db/src/symbol_index.rs:99

Activity

ChayimFriedman2

ChayimFriedman2 commented on May 17, 2025

@ChayimFriedman2
Contributor
ChayimFriedman2

ChayimFriedman2 commented on May 23, 2025

@ChayimFriedman2
Contributor

Should be fixed by now after #19853.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ChayimFriedman2@undenuicap

        Issue actions

          PrimeCaches panic thin-vec salsa · Issue #19811 · rust-lang/rust-analyzer