Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hypnotix freezes when I try to open a channel in Kubuntu 20.04 #69

Closed
hmslima opened this issue Dec 11, 2020 · 2 comments
Closed

Hypnotix freezes when I try to open a channel in Kubuntu 20.04 #69

hmslima opened this issue Dec 11, 2020 · 2 comments

Comments

@hmslima
Copy link

hmslima commented Dec 11, 2020

When I click in the TV Channels button, I get these messages:

Could not load badge /usr/share/hypnotix/pictures/badges/germany.png
Could not load badge /usr/share/hypnotix/pictures/badges/austria.png
[...]
[...]
[...]
Could not load badge /usr/share/hypnotix/pictures/badges/usa.png
Could not load badge /usr/share/hypnotix/pictures/badges/music.png

The fact that the program is not loading these badges is not a big deal and this is not the actual problem reported in this thread, but I thought that it would be good to talk about it.

HERE IS THE REAL PROBLEM, when I try to open any channel, I get this in the terminal...

Traceback (most recent call last):
  File "/usr/lib/hypnotix/hypnotix.py", line 293, in on_category_button_clicked
    self.show_channels(group.channels)
  File "/usr/lib/hypnotix/hypnotix.py", line 323, in show_channels
    surface = Gdk.cairo_surface_create_from_pixbuf(pixbuf, self.window.get_scale_factor())
TypeError: Couldn't find foreign struct converter for 'cairo.Surface'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'

... and then the program freezes, but I can easily close it.


I have to say that I don't live in the USA but in Brazil, so I don't know if it affects in something, although I've tried channels from Afghanistan, Norway, France, Portugal, China, etc, and I got this very same message.

@hmslima hmslima changed the title Hypnotix freezes when I try to open a channel on Kubuntu 20.04 Hypnotix freezes when I try to open a channel in Kubuntu 20.04 Dec 11, 2020
@mtwebster
Copy link
Member

You may be missing a dependency - try installing python3-gi-cairo.

If that fixes it I'll update the packaging.

@hmslima
Copy link
Author

hmslima commented Dec 12, 2020

It solved BOTH problems! 😃

I was expecting only the solution for the second (and most important) problem of freezing, but the flags were loaded too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants