Skip to content

devtools panic on m.huaweimossel.com #41142

@jschwe

Description

@jschwe

Describe the bug:

[2025-12-08T13:44:05Z ERROR script::dom::console] (new Error("Unable to preload CSS for /assets/cart-CijF2oyF.css", "https://m.huaweimossel.com/assets/index-CRHXPIpw.js", 24))
called `Option::unwrap()` on a `None` value (thread DevtoolsClientHandler, at components/devtools/actor.rs:193)
   0: <servoshell::backtrace::Print as core::fmt::Debug>::fmt
   1: core::fmt::write
   2: std::io::Write::write_fmt
   3: servoshell::backtrace::print
   4: servoshell::panic_hook::panic_hook
   5: std::panicking::panic_with_hook
   6: std::panicking::panic_handler::{{closure}}
   7: std::sys::backtrace::__rust_end_short_backtrace
   8: __rustc::rust_begin_unwind
   9: core::panicking::panic_fmt
  10: core::panicking::panic
  11: core::option::unwrap_failed
  12: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
  13: <core::iter::adapters::flatten::FlatMap<I,U,F> as core::iter::traits::iterator::Iterator>::next
  14: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
  15: <devtools::actors::inspector::page_style::PageStyleActor as devtools::actor::Actor>::handle_message
  16: devtools::actor::ActorRegistry::handle_message
  17: devtools::handle_client
  18: std::sys::backtrace::__rust_begin_short_backtrace
  19: core::ops::function::FnOnce::call_once{{vtable.shim}}
  20: std::sys::thread::unix::Thread::new::thread_start
  21: __pthread_cond_wait
[2025-12-08T13:44:31Z ERROR servoshell::panic_hook] called `Option::unwrap()` on a `None` value

To Reproduce:

❯ ./mach run --release --device-pixel-ratio 2.625 --window-size 824x1830 -u "Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-G973U) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/14.2 Chrome/87.0.4280.141 Mobile Safari/537.36" --screen-size 412x915  https://m.huaweimossel.com/#/ --devtools 6080

When connecting to devtools and using the Inspector, devtools will panic.

Platform:
Reproduced on macos and Openharmony.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions