Kooha icon indicating copy to clipboard operation
Kooha copied to clipboard

Unavailable cursor mode 1 error

Open tim77 opened this issue 3 years ago • 9 comments

System Info

  • Kooha version 2.0.0
  • Distro information and version Fedora 34 Workstation
  • Desktop Environment GNOME 40
  • Display Server Xorg
  • Flatpak? Yes.

Describe the bug App not working. When start recording:

 ERROR kooha::backend::screencast_portal > Error from screencast call: Portal(ZBus(MethodError(OwnedInterfaceName(InterfaceName(Str("org.freedesktop.portal.Error.InvalidArgument"))), Some("Unavailable cursor mode 1"), Msg { type: Error, sender: UniqueName(Str(":1.139")), reply-serial: 27, body: Signature: [
	s (115),
] })))

xdg-desktop-portal-wlr installed.

Additional context Please attach the logs from running Kooha with the following environment variables RUST_BACKTRACE=1 RUST_LOG=kooha=debug GST_DEBUG=3 PIPEWIRE_DEBUG=3

INFO  kooha::application > Kooha (io.github.seadve.Kooha)
 INFO  kooha::application > Version: 2.0.0 ()
 INFO  kooha::application > Datadir: /app/share/kooha
 DEBUG kooha::backend::recorder > is_show_pointer: false
 DEBUG kooha::backend::recorder > is_selection_mode: false
 INFO  kooha::backend::screencast_portal > ScreenCastProxy created
 INFO  kooha::backend::screencast_portal > Session created
 ERROR kooha::backend::screencast_portal > Error from screencast call: Portal(ZBus(MethodError(OwnedInterfaceName(InterfaceName(Str("org.freedesktop.portal.Error.InvalidArgument"))), Some("Unavailable cursor mode 1"), Msg { type: Error, sender: UniqueName(Str(":1.139")), reply-serial: 27, body: Signature: [
	s (115),
] })))

tim77 avatar Sep 24 '21 10:09 tim77

what's the version of xdg-desktop-portal and xdg-desktop-portal-gtk or something?

I think it may be an xorg specific thing, could you test it on Wayland?

SeaDve avatar Sep 24 '21 11:09 SeaDve

  • xdg-desktop-portal-gtk-1.8.0-2
  • xdg-desktop-portal-1.8.1-3

tim77 avatar Sep 24 '21 11:09 tim77

thanks, that same as mine. Anyway, does it work when recording with no cursor?

SeaDve avatar Sep 24 '21 12:09 SeaDve

Unfortunately no. Tried to disable all features but still got this error.

tim77 avatar Sep 24 '21 12:09 tim77

I have put extra debug info that may be helpful

SeaDve avatar Sep 24 '21 23:09 SeaDve

With RUST_BACKTRACE=full and org.gnome.Sdk.Debug installed:

Backtrace io.github.seadve.Kooha.Devel
 INFO  kooha::application > Kooha (io.github.seadve.Kooha.Devel)
 INFO  kooha::application > Version: 2.0.0-8225d4f (Devel)
 INFO  kooha::application > Datadir: /app/share/kooha
 DEBUG kooha::backend::recorder > is_show_pointer: true
 DEBUG kooha::backend::recorder > is_selection_mode: false
 INFO  kooha::backend::screencast_portal > ScreenCastProxy created
 DEBUG kooha::backend::screencast_portal > available_cursor_modes: BitFlags<CursorMode>(0b111, Hidden | Embedded | Metadata)
 DEBUG kooha::backend::screencast_portal > available_source_types: BitFlags<SourceType>(0b11, Monitor | Window)
 INFO  kooha::backend::screencast_portal > Session created
 INFO  kooha::backend::screencast_portal > Select sources window showed
 INFO  kooha::backend::screencast_portal > Screencast session started
 INFO  kooha::backend::screencast_portal > Ready for pipewire stream
 DEBUG kooha::backend::recorder          > pulse_server_version: PulseAudio (on PipeWire 0.3.37) version 15.0.0
thread 'main' panicked at 'assertion failed: !ptr.is_null()', /run/build/kooha/_flatpak_build/cargo-home/registry/src/github.com-1ecc6299db9ec823/glib-0.14.5/src/translate.rs:1508:9
stack backtrace:
   0:     0x558aea254290 - <unknown>
   1:     0x558aea27406c - <unknown>
   2:     0x558aea251105 - <unknown>
   3:     0x558aea25639b - <unknown>
   4:     0x558aea255e71 - <unknown>
   5:     0x558aea256a64 - <unknown>
   6:     0x558aea256517 - <unknown>
   7:     0x558aea25478c - <unknown>
   8:     0x558aea2564a9 - <unknown>
   9:     0x558ae9beb6a1 - <unknown>
  10:     0x558ae9beb5ed - <unknown>
  11:     0x558aea2182c1 - <unknown>
  12:     0x558aea1ee146 - <unknown>
  13:     0x558aea1f4aa1 - <unknown>
  14:     0x558ae9cb329c - <unknown>
  15:     0x558ae9cb33c2 - <unknown>
  16:     0x558ae9c611b4 - <unknown>
  17:     0x558ae9c1a4db - <unknown>
  18:     0x558ae9c62232 - <unknown>
  19:     0x558ae9c19b5b - <unknown>
  20:     0x558aea219099 - <unknown>
  21:     0x558aea1f5394 - <unknown>
  22:     0x558aea1f5971 - <unknown>
  23:     0x558aea1fe939 - <unknown>
  24:     0x558aea1f58a1 - <unknown>
  25:     0x558aea1f540e - <unknown>
  26:     0x7fa1013ad681 - g_main_context_dispatch
  27:     0x7fa1013adb68 - <unknown>
  28:     0x7fa1013adc33 - g_main_context_iteration
  29:     0x7fa1007a2c65 - g_application_run
  30:     0x558ae9c12d22 - <unknown>
  31:     0x558ae9c12dec - <unknown>
  32:     0x558ae9bef2af - <unknown>
  33:     0x558ae9ccb7cc - <unknown>
  34:     0x558ae9c3f27b - <unknown>
  35:     0x558ae9ce843e - <unknown>
  36:     0x558ae9c56401 - <unknown>
  37:     0x558aea256f6a - <unknown>
  38:     0x558ae9c563d0 - <unknown>
  39:     0x558ae9ccb83c - main
  40:     0x7fa100203b90 - __libc_start_main
  41:     0x558ae9bebe9e - <unknown>
  42:                0x0 - <unknown>
</details>

tim77 avatar Sep 25 '21 08:09 tim77

Considering that hidden cursor (1) is an available cursor mode, I'm not sure why it is still saying unavailable cursor mode 1

SeaDve avatar Sep 25 '21 08:09 SeaDve

Is this still reproducible in main branch?

SeaDve avatar Aug 15 '22 03:08 SeaDve

It's reproducible from the flathub version on Ubuntu 22.04.3

zacps avatar Aug 25 '23 04:08 zacps