pop-os / xdg-desktop-portal-cosmic

GNU General Public License v3.0
27 stars 23 forks source link

Cosmic-screenshot panics; Currently non-functional. #34

Closed XV-02 closed 4 months ago

XV-02 commented 4 months ago

Attempting to launch cosmic-screenshot, or to use it directly via CLI, fails. The following is produced from RUST_BACKTRACE=full cosmic-screenshot:

thread 'main' panicked at src/main.rs:71:10:
failed to receive screenshot response: Response(Other)
stack backtrace:
   0:     0x58a5b4bdc9fc - <unknown>
   1:     0x58a5b4c05de0 - <unknown>
   2:     0x58a5b4bd9d2f - <unknown>
   3:     0x58a5b4bdc7e4 - <unknown>
   4:     0x58a5b4bddde7 - <unknown>
   5:     0x58a5b4bddb4f - <unknown>
   6:     0x58a5b4bde268 - <unknown>
   7:     0x58a5b4bde14e - <unknown>
   8:     0x58a5b4bdcec6 - <unknown>
   9:     0x58a5b4bddeb2 - <unknown>
  10:     0x58a5b4931885 - <unknown>
  11:     0x58a5b4931dc3 - <unknown>
  12:     0x58a5b4975895 - <unknown>
  13:     0x58a5b4a23e7b - <unknown>
  14:     0x58a5b4a370da - <unknown>
  15:     0x58a5b4a2418e - <unknown>
  16:     0x58a5b4a37721 - <unknown>
  17:     0x58a5b49fe74b - <unknown>
  18:     0x58a5b4a44408 - <unknown>
  19:     0x58a5b4a0c9f3 - <unknown>
  20:     0x58a5b4a2edf9 - <unknown>
  21:     0x58a5b4bd4bb7 - <unknown>
  22:     0x58a5b4a2edee - <unknown>
  23:     0x79904c229d90 - <unknown>
  24:     0x79904c229e40 - __libc_start_main
  25:     0x58a5b49320c5 - <unknown>
  26:                0x0 - <unknown>

I see no other log entries or output related to cosmic-screenshot.

XV-02 commented 4 months ago

@wash2 recommended opening an issue in xdg-desktop-portal-cosmic , so I'm going to move this there from cosmic-screenshot

cosmic-screenshot: https://github.com/pop-os/cosmic-screenshot/commit/f853446dbe1ff6e124749cdfd0eeb94dc43e884a xdg-desktop-portal-cosmic: https://github.com/pop-os/xdg-desktop-portal-cosmic/commit/aba884c9eed5f7b5a09f52eb2524b0f2d84980c3

wash2 commented 4 months ago

Hmm, I think maybe you got some of the updates for the screencopy v2 changes but not all. If you update the portal to master does cosmic-screenshot work?

XV-02 commented 4 months ago

Looks like it does. Seems that the updates today (25th May, 2024/https://github.com/pop-os/xdg-desktop-portal-cosmic/commit/185d23394a0acc1d2d7fd3509518e2f6c4b53dd8 onwards)

do resolve it. Must have got caught between horses doing my morning updates.