pop-os / cosmic-screenshot

Utility for capturing screenshots via XDG Desktop Portal
GNU General Public License v3.0
20 stars 8 forks source link

failed to receive screenshot response: Response(Cancelled) #7

Open ryzendew opened 6 months ago

ryzendew commented 6 months ago
RUST_BACKTRACE=full cosmic-screenshot
thread 'main' panicked at src/main.rs:71:10:
failed to receive screenshot response: Response(Cancelled)
stack backtrace:
   0:     0x5bd7bf62f2cc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h801f8df7d1fa7d7e
   1:     0x5bd7bf658560 - core::fmt::write::hbd53259fb6bcdfe1
   2:     0x5bd7bf62ba9d - std::io::Write::write_fmt::h40f5a7587bccce4d
   3:     0x5bd7bf62f0b5 - std::sys_common::backtrace::print::h5efc20f0fcd30d29
   4:     0x5bd7bf6306c3 - std::panicking::default_hook::{{closure}}::h316188ba66ce7d11
   5:     0x5bd7bf6303fa - std::panicking::default_hook::hb185c7e0da8bf102
   6:     0x5bd7bf630bf5 - std::panicking::rust_panic_with_hook::h5151dc4ed475677b
   7:     0x5bd7bf630ade - std::panicking::begin_panic_handler::{{closure}}::h24728586f45e88ec
   8:     0x5bd7bf62f786 - std::sys_common::backtrace::__rust_end_short_backtrace::h8475480059173525
   9:     0x5bd7bf630862 - rust_begin_unwind
  10:     0x5bd7bf383dd5 - core::panicking::panic_fmt::h43ecdcba71f8100a
  11:     0x5bd7bf384313 - core::result::unwrap_failed::he36dafe0558d4991
  12:     0x5bd7bf3c8b3c - cosmic_screenshot::main::{{closure}}::h8d3462d50b6bb567
  13:     0x5bd7bf47423d - tokio::runtime::scheduler::current_thread::Context::enter::h1616e17e27d56dd6
  14:     0x5bd7bf486e9b - tokio::runtime::context::set_scheduler::hfd664e8b599ee2c2
  15:     0x5bd7bf47453a - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h502d65667f561e52
  16:     0x5bd7bf4874d1 - tokio::runtime::context::runtime::enter_runtime::hb03acf1a980b503e
  17:     0x5bd7bf44efbc - tokio::runtime::runtime::Runtime::block_on::h9c70c4be5e7cdeff
  18:     0x5bd7bf493b58 - cosmic_screenshot::main::h6d592be78d7b1205
  19:     0x5bd7bf45ce93 - std::sys_common::backtrace::__rust_begin_short_backtrace::h97291ed9eb9fa73d
  20:     0x5bd7bf47eb89 - std::rt::lang_start::{{closure}}::h0c32d7f37992b0c1
  21:     0x5bd7bf626b5d - std::rt::lang_start_internal::h7b4402eeee9ac9bc
  22:     0x5bd7bf47eb7e - std::rt::lang_start::hcabea878ebb6b637
  23:     0x71299a0bccd0 - <unknown>
  24:     0x71299a0bcd8a - __libc_start_main
  25:     0x5bd7bf384615 - _start
  26:                0x0 - <unknown>
joshuamegnauth54 commented 6 months ago

I have a few questions.

  1. Do you know which portal you're using for screenshots?
  2. Were you able to try a different portal?
  3. Does cosmic-screenshot panic immediately or does it panic after you try to take the screenshot (i.e. after you confirm the screenshot)?

I'm new to this, but I tried it on a few different portals and they seem to behave differently. If you're having problems, it may be an issue for the portal.