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

Gdk.Cursor constructor returned NULL #202

Closed
eliseuschmidt opened this issue Jan 14, 2023 · 4 comments
Closed

Gdk.Cursor constructor returned NULL #202

eliseuschmidt opened this issue Jan 14, 2023 · 4 comments

Comments

@eliseuschmidt
Copy link

Traceback

File: /app/lib/python3.9/site-packages/gaupol/agents/open.py
Line: 194
In: _on_notebook_drag_data_received

    self.open_main(subtitles)

File: /app/lib/python3.9/site-packages/aeidon/deco.py
Line: 218
In: inner_wrapper

    return function(*args, **kwargs)

File: /app/lib/python3.9/site-packages/gaupol/agents/open.py
Line: 269
In: open_main

    gaupol.util.set_cursor_busy(self.window)

File: /app/lib/python3.9/site-packages/gaupol/util.py
Line: 339
In: set_cursor_busy

    cursor = Gdk.Cursor.new_for_display(

TypeError: constructor returned NULL

Environment

Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.33
Locale: pt_BR.utf_8

Versions

aeidon: 1.11
chardet: 3.0.4
gaupol: 1.11
gspell: 1
gstreamer: 1.18.6.0
gtk+: 3.24.35
pygobject: 3.42.2
python: 3.9.9

@otsaloma
Copy link
Owner

I guess you're using Wayland? (seems I should add that to the "Environment" info above)

Looks like a clear issue, I'll fix it soon

@otsaloma otsaloma changed the title error when trying to open a subtitle file Gdk.Cursor constructor returned NULL Jan 14, 2023
otsaloma added a commit that referenced this issue Jan 15, 2023
otsaloma added a commit that referenced this issue Jan 15, 2023
@otsaloma
Copy link
Owner

OK, it should be fixed now, but still wondering if this is Wayland or what and which distro? If Gaupol is broken for all Wayland users, I'd better make a release...

@eliseuschmidt
Copy link
Author

Wayland.
Distro: Ubuntu 22.04.
But is app Flatppak.

@otsaloma
Copy link
Owner

Thanks. Maybe I'll make a release just in case. I suspect there's something more about the environment that triggers this as I'd expect there to be a lot of Wayland users by now and I haven't seen this issue before. I'm still on X, but I've tried Gaupol on Wayland and fixed all the issues I saw already years ago.

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