Bug 33284

Summary: Kazam does not start on Plasma/Wayland
Product: Mageia Reporter: Jose Manuel López <joselp>
Component: RPM PackagesAssignee: KDE maintainers <kde>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: arusanu
Version: 9   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: kazam-1.4.5-18.mga9.src.rpm CVE:
Status comment:
Attachments: Terminal output of kazam

Description Jose Manuel López 2024-06-10 20:10:50 CEST
Description of problem: Kazam does not start on updated Plasma. I have launched it from terminal and several errors appear.


Version-Release number of selected component (if applicable): Kazam y Mageia 9


How reproducible: Open kazam from gui or terminal
Comment 1 Jose Manuel López 2024-06-10 20:11:58 CEST
Created attachment 14563 [details]
Terminal output of kazam

This is the terminal output of Kazam
Comment 2 Lewis Smith 2024-06-10 21:01:59 CEST
Thank you for the report.
It might help if you could explain "Kazam does not start on updated Plasma".
Did it used to start? It itself has not changed. Can you identify what changed in Plasma that caused this failure?

On my M9 system using Lxde, the program starts OK (ts GUI window displayed), if with errors:
 kazam-1.4.5-18.mga9
 $ kazam
/usr/bin/kazam:77: DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.
  dist = distro.linux_distribution()
/usr/lib/python3.10/site-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
  self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))
(kazam:70371): Gtk-WARNING **: 21:05:30.158: Can't set a parent on widget which has a parent
(kazam:70371): Gtk-WARNING **: 21:05:30.162: Can't set a parent on widget which has a parent
(kazam:70371): Gdk-CRITICAL **: 21:05:30.376: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

Can you try under a different desktop? Does this only happen under Plasma? (which I can try if necessary).

CC: (none) => lewyssmith
Source RPM: Kazam => kazam-1.4.5-18.mga9.src.rpm

Comment 3 Jose Manuel López 2024-06-11 14:34:15 CEST
In my case, it's a clean install of Mageia, with stable updates up to date, "Plasma updated".

I've tested from a Intel Atom netbook with Lxqt desktop and it works with some bugs from terminal, so it seems to be a Plasma desktop bug.

This is the terminal output of Lxqt Desktop:

[jose@localhost ~]$ kazam
/usr/bin/kazam:77: DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.
  dist = distro.linux_distribution()
/usr/lib/python3.10/site-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
  self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))

(kazam:11978): Gtk-WARNING **: 14:29:59.719: Can't set a parent on widget which has a parent

(kazam:11978): Gtk-WARNING **: 14:29:59.741: Can't set a parent on widget which has a parent
[jose@localhost ~]$ 


Greetings!
Comment 4 Lewis Smith 2024-06-11 21:51:06 CEST
I will try it with Plasma; tomorrow!
Comment 5 Aurelian R 2024-06-11 21:53:26 CEST
Bug is reproducible for me too if Wayland is used, under Plasma with X11 kazam seems to work.
Seems there is no "Wayland" support: 
https://github.com/henrywoo/kazam/issues/14

Regards.

CC: (none) => arusanu

Comment 6 Jose Manuel López 2024-06-12 08:23:12 CEST
I agree with comment 5. The bug is reproduced in the Wayland session. 

Do we have that same problem in Cauldron? Because for plasma 6 the default session is Wayland...
Comment 7 Aurelian R 2024-06-12 14:44:14 CEST
(In reply to Jose Manuel López from comment #6)
> Do we have that same problem in Cauldron? Because for plasma 6 the default
> session is Wayland...
 
 Yes
Comment 8 Lewis Smith 2024-06-12 21:10:21 CEST
Thank you Aurelian for jumping in.
It would have helped, Jose, if you had mentioned Wayland at the beginning. It is still (M9) experimental for Plasma.
I have just tried kazam on X11 Plasma, and it worked. I will not bother trying Wayland, since you both say it is that which does not work.

I will push this to devs, but they may legitimately close it 'invalid' since there is on M9 no guarantee that everything Plasma/Wayland works. A bit at-your-risk. If they fix it - lucky! Otherwise stick with X11 for Plasma.

Assignee: bugsquad => kde
CC: lewyssmith => (none)

Lewis Smith 2024-06-12 21:11:18 CEST

Summary: Kazam does not start on updated Plasma => Kazam does not start on Plasma/Wayland