Skip to content

Instantly share code, notes, and snippets.

@cambiata
Created July 27, 2026 06:39
Show Gist options
  • Select an option

  • Save cambiata/777a8b19266c6f196f0010b64cc2097d to your computer and use it in GitHub Desktop.

Select an option

Save cambiata/777a8b19266c6f196f0010b64cc2097d to your computer and use it in GitHub Desktop.
Topcoat 0.4 windows asset problem
PS E:\slask\topcoat\topcoat> cargo run -p asset
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.36s
Running `target\debug\asset.exe`
thread 'tokio-rt-worker' (5100) panicked at crates\topcoat-asset\src\config.rs:138:13:
failed to resolve asset Asset(9064030090066725745) in the asset catalog
stack backtrace:
0: std::panicking::panic_handler
at /rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library\std\src\panicking.rs:689
1: core::panicking::panic_fmt
at /rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library\core\src\panicking.rs:80
2: topcoat_asset::config::AssetConfig::fmt_url
at .\crates\topcoat-asset\src\config.rs:138
3: topcoat_asset::view::impl$0::render
at .\crates\topcoat-asset\src\view.rs:11
4: enum2$<topcoat_view::view::ViewPart>::render
at .\crates\topcoat-view\src\view.rs:262
5: enum2$<topcoat_view::view::ViewPart>::render
at .\crates\topcoat-view\src\view.rs:265
6: topcoat_view::view::View::render_response
at .\crates\topcoat-view\src\view.rs:87
7: topcoat_router::response::impl$19::into_response
at .\crates\topcoat-router\src\response.rs:231
8: topcoat_router::error::impl$0::into_response<topcoat_view::view::View>
at .\crates\topcoat-router\src\error.rs:73
9: topcoat_router::page::impl$3::handle::async_block$0
at .\crates\topcoat-router\src\page.rs:166
10: core::future::future::impl$1::poll<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,enum2$<core::result::Result<http::response::Response<topcoat_router::body::Body>,topcoat_core::error::Error> > > >,core::marker::Send>,alloc::alloc::Global
at C:\Users\Cambiata MusikProd\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\future\future.rs:133
11: topcoat_router::router::impl$0::handle::async_fn$0
at .\crates\topcoat-router\src\router.rs:100
12: topcoat_router::service::impl$2::call::async_block$0
at .\crates\topcoat-router\src\service.rs:74
13: core::future::future::impl$1::poll<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,enum2$<core::result::Result<http::response::Response<topcoat_router::body::Body>,enum2$<core::convert::Infallible> > > > >,core::marker::Send>,alloc::alloc
at C:\Users\Cambiata MusikProd\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\future\future.rs:133
14: hyper::proto::h1::dispatch::impl$6::poll_msg<topcoat_router::service::RouterService,topcoat_router::body::Body>
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hyper-1.9.0\src\proto\h1\dispatch.rs:538
15: hyper::proto::h1::dispatch::Dispatcher<hyper::proto::h1::dispatch::Server<topcoat_router::service::RouterService,hyper::body::incoming::Incoming>,topcoat_router::body::Body,hyper_util::common::rewind::Rewind<hyper_util::rt::tokio::TokioIo<tokio::net::tcp::
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hyper-1.9.0\src\proto\h1\dispatch.rs:336
16: hyper::proto::h1::dispatch::Dispatcher<hyper::proto::h1::dispatch::Server<topcoat_router::service::RouterService,hyper::body::incoming::Incoming>,topcoat_router::body::Body,hyper_util::common::rewind::Rewind<hyper_util::rt::tokio::TokioIo<tokio::net::tcp::
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hyper-1.9.0\src\proto\h1\dispatch.rs:173
17: hyper::proto::h1::dispatch::Dispatcher<hyper::proto::h1::dispatch::Server<topcoat_router::service::RouterService,hyper::body::incoming::Incoming>,topcoat_router::body::Body,hyper_util::common::rewind::Rewind<hyper_util::rt::tokio::TokioIo<tokio::net::tcp::
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hyper-1.9.0\src\proto\h1\dispatch.rs:149
18: hyper::proto::h1::dispatch::Dispatcher<hyper::proto::h1::dispatch::Server<topcoat_router::service::RouterService,hyper::body::incoming::Incoming>,topcoat_router::body::Body,hyper_util::common::rewind::Rewind<hyper_util::rt::tokio::TokioIo<tokio::net::tcp::
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hyper-1.9.0\src\proto\h1\dispatch.rs:128
19: hyper::proto::h1::dispatch::impl$1::poll<hyper::proto::h1::dispatch::Server<topcoat_router::service::RouterService,hyper::body::incoming::Incoming>,topcoat_router::body::Body,hyper_util::common::rewind::Rewind<hyper_util::rt::tokio::TokioIo<tokio::net::tcp
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hyper-1.9.0\src\proto\h1\dispatch.rs:471
20: hyper::server::conn::http1::impl$5::poll<hyper_util::common::rewind::Rewind<hyper_util::rt::tokio::TokioIo<tokio::net::tcp::stream::TcpStream> >,topcoat_router::body::Body,topcoat_router::service::RouterService>
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hyper-1.9.0\src\server\conn\http1.rs:545
21: hyper_util::server::conn::auto::impl$10::poll<hyper_util::rt::tokio::TokioIo<tokio::net::tcp::stream::TcpStream>,topcoat_router::service::RouterService,hyper_util::rt::tokio::TokioExecutor,topcoat_router::body::Body>
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hyper-util-0.1.20\src\server\conn\auto\mod.rs:693
22: core::future::future::impl$1::poll<ref_mut$<hyper_util::server::conn::auto::UpgradeableConnection<hyper_util::rt::tokio::TokioIo<tokio::net::tcp::stream::TcpStream>,topcoat_router::service::RouterService,hyper_util::rt::tokio::TokioExecutor> > >
at C:\Users\Cambiata MusikProd\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\future\future.rs:133
23: topcoat_router::serve::internal_serve::async_fn$0::async_block$0::closure$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> >
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.51.1\src\macros\select.rs:705
24: core::future::poll_fn::impl$2::poll<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block$0::__tokio_select_util::Out<enum2$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<core::error::Error,core::marker::Send,core::marker::Sync>,allo
at C:\Users\Cambiata MusikProd\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\future\poll_fn.rs:151
25: topcoat_router::serve::internal_serve::async_fn$0::async_block$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> >
at .\crates\topcoat-router\src\serve.rs:67
26: tokio::runtime::task::core::impl$6::poll::closure$0<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> > >,alloc::sync::Arc<tokio::runti
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.51.1\src\runtime\task\core.rs:375
27: tokio::loom::std::unsafe_cell::UnsafeCell<enum2$<tokio::runtime::task::core::Stage<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> >
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.51.1\src\loom\std\unsafe_cell.rs:16
28: tokio::runtime::task::core::Core<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> > >,alloc::sync::Arc<tokio::runtime::scheduler::mult
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.51.1\src\runtime\task\core.rs:364
29: tokio::runtime::task::harness::poll_future::closure$0<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> > >,alloc::sync::Arc<tokio::run
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.51.1\src\runtime\task\harness.rs:535
30: core::panic::unwind_safe::impl$25::call_once<enum2$<core::task::poll::Poll<tuple$<> > >,tokio::runtime::task::harness::poll_future::closure_env$0<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpList
at C:\Users\Cambiata MusikProd\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\panic\unwind_safe.rs:275
31: std::panicking::catch_unwind::do_call<core::panic::unwind_safe::AssertUnwindSafe<tokio::runtime::task::harness::poll_future::closure_env$0<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,en
at C:\Users\Cambiata MusikProd\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:581
32: std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<tokio::runtime::task::harness::poll_future::closure_env$0<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat:
33: std::panicking::catch_unwind
at C:\Users\Cambiata MusikProd\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:544
34: std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<tokio::runtime::task::harness::poll_future::closure_env$0<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat:
at C:\Users\Cambiata MusikProd\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:359
35: tokio::runtime::task::harness::poll_future<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> > >,alloc::sync::Arc<tokio::runtime::sched
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.51.1\src\runtime\task\harness.rs:523
36: tokio::runtime::task::harness::Harness<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> > >,alloc::sync::Arc<tokio::runtime::scheduler
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.51.1\src\runtime\task\harness.rs:210
37: tokio::runtime::task::harness::Harness<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> > >,alloc::sync::Arc<tokio::runtime::scheduler
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.51.1\src\runtime\task\harness.rs:155
38: tokio::runtime::task::raw::poll<enum2$<topcoat_router::serve::internal_serve::async_fn$0::async_block_env$0<tokio::net::tcp::listener::TcpListener,enum2$<topcoat::serve::shutdown_signal::async_fn_env$0> > >,alloc::sync::Arc<tokio::runtime::scheduler::multi
at C:\Users\Cambiata MusikProd\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.51.1\src\runtime\task\raw.rs:337
39: tokio::runtime::task::raw::RawTask::poll
40: tokio::runtime::task::LocalNotified<S>::run
41: tokio::runtime::scheduler::multi_thread::worker::Context::defer
42: tokio::runtime::scheduler::multi_thread::worker::Context::defer
43: tokio::runtime::scheduler::multi_thread::worker::create
44: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}::{{closure}}
45: tokio::runtime::context::scoped::Scoped<T>::set
46: tokio::runtime::context::set_scheduler::{{closure}}
47: std::thread::local::LocalKey<T>::try_with
48: std::thread::local::LocalKey<T>::with
49: tokio::runtime::context::set_scheduler
50: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}
51: tokio::runtime::context::runtime::enter_runtime
52: tokio::runtime::scheduler::multi_thread::worker::run
53: tokio::runtime::scheduler::multi_thread::worker::Launch::launch::{{closure}}
54: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
55: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
56: tokio::runtime::task::core::Core<T,S>::poll
57: tokio::runtime::task::harness::poll_future::{{closure}}
58: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
59: std::panicking::catch_unwind::do_call
60: <tokio::util::atomic_cell::AtomicCell<T> as core::ops::drop::Drop>::drop
61: std::panic::catch_unwind
62: tokio::runtime::task::harness::poll_future
63: tokio::runtime::task::harness::Harness<T,S>::poll_inner
64: tokio::runtime::task::harness::Harness<T,S>::poll
65: tokio::runtime::task::raw::poll
66: tokio::runtime::task::raw::RawTask::poll
67: tokio::runtime::task::UnownedTask<S>::run
68: tokio::runtime::blocking::pool::Task::new
69: tokio::runtime::blocking::pool::Task::new
70: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment