Intermittently during Javascript testing of a Zome, I see the following failure while trying to do a CapGrant during the Zome's fn init( _: () )
:
★ thread 'holochain-tokio-thread' panicked at 'Holochain detected database corruption.
★
★ Corrupt module: CasBufUsedSync::get
★ Expected hash: [132, 33, 36, 136, 181, 215, 48, 179, 69, 97, 244, 50, 224, 38, 215, 215, 228, 106, 136, 29, 210, 99, 35, 143, 3, 228, 213, 235, 181, 77, 184, 195, 73, 56, 124, 204, 195, 167, 9]
★ Actual hash: [132, 33, 36, 50, 150, 172, 101, 76, 225, 68, 3, 255, 214, 74, 213, 28, 216, 28, 109, 127, 19, 11, 171, 152, 154, 12, 182, 29, 242, 244, 193, 234, 43, 4, 205, 106, 25, 124, 240]
★ Content: CapGrant(ZomeCallCapGrant { tag: "", access: Unrestricted, functions: {(ZomeName("mutualcredit"), FunctionName("authorize")), (ZomeName("mutualcredit"), FunctionName("transfer_authorized"))} }\
)
★
★ We are shutting down as a precaution to prevent further corruption.', /tmp/nix-build-holochain.drv-1/source/crates/holochain_lmdb/src/buffer/cas/buf_sync.rs:107:9
★ stack backtrace:
★
08:21:42 ^[[32minfo^[[39m:
☯☯☯ {{{CONDUCTOR c0}}}
☯ 0: rust_begin_unwind
☯ 1: std::panicking::begin_panic_fmt
☯ 2: holochain_lmdb::buffer::cas::buf_sync::CasBufUsedSync<C,P>::deserialize_and_hash
☯ 3: holochain_lmdb::buffer::
08:21:42 ^[[32minfo^[[39m:
☸☸☸ {{{CONDUCTOR c0}}}
☸ cas::buf_sync::CasBufFreshSync<C,P>::get
☸ 4: holochain_state::element_buf::ElementBuf<P>::get_entry
☸ 5: holochain_state::source_chain::SourceChain::query
☸ 6: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
☸ 7: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
☸ 8: std::thread::local::LocalKey<T>::with
☸ 9: tokio::runtime::enter::Enter::block_on
☸ 10: tokio::runtime::handle::Handle::block_on
☸ 11: tokio::runtime::thread_pool::worker::block_in_place
☸ 12: holochain::core::ribosome::host_fn::query::query
☸ 13: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
☸ 14: std::panicking::try
☸ 15: <FN as wasmer_runtime_core::typed_func::HostFunction<wasmer_runtime_core::typed_func::
08:21:42 ^[[32minfo^[[39m:
☮☮☮ {{{CONDUCTOR c0}}}
☮ ExplicitVmCtx,A,Rets>>::to_raw::wrap
☮ 16: <unknown>
☮ note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
☮
08:21:42 [tryorama] ^[[31merror^[[39m: Test error: {
type: 'error',
data: {
type: 'ribosome_error',
data: 'Wasm error while working with Ribosome: CallError("RuntimeError: \\"Holochain detected database corruption.\\n\\nCorrupt module: CasBufUsedSync::get\\nExpected hash: [132, 33, 36, 136, 181, 21\
5, 48, 179, 69, 97, 244, 50, 224, 38, 215, 215, 228, 106, 136, 29, 210, 99, 35, 143, 3, 228, 213, 235, 181, 77, 184, 195, 73, 56, 124, 204, 195, 167, 9]\\nActual hash: [132, 33, 36, 50, 150, 172, 101, 76\
, 225, 68, 3, 255, 214, 74, 213, 28, 216, 28, 109, 127, 19, 11, 171, 152, 154, 12, 182, 29, 242, 244, 193, 234, 43, 4, 205, 106, 25, 124, 240]\\nContent: CapGrant(ZomeCallCapGrant { tag: \\"\\", access: \
Unrestricted, functions: {(ZomeName(\\"mutualcredit\\"), FunctionName(\\"authorize\\")), (ZomeName(\\"mutualcredit\\"), FunctionName(\\"transfer_authorized\\"))} })\\n\\nWe are shutting down as a precaut\
ion to prevent further corruption.\\"")'
}
}