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

Received unexpected nullPtr in "widgetGetParentWindow" #90

Closed
phuhl opened this issue Apr 12, 2017 · 2 comments
Closed

Received unexpected nullPtr in "widgetGetParentWindow" #90

phuhl opened this issue Apr 12, 2017 · 2 comments

Comments

@phuhl
Copy link

phuhl commented Apr 12, 2017

Hi, a program that i wrote told me to report this as a bug...

linux-notification-center: Received unexpected nullPtr in "widgetGetParentWindow".
This is a bug in the introspection data, please report it at
https://github.com/haskell-gi/haskell-gi/issues
CallStack (from HasCallStack):
checkUnexpectedReturnNULL, called at ./GI/Gtk/Objects/Widget.hs:12025:5 in gi-gtk-3.0.11-Ag7UoZRmttXFBQOlKpdL4t:GI.Gtk.Objects.Widget
widgetGetParentWindow, called at src/Lib.hs:147:22 in linux-notification-center-0.1.0.0-FMZiGhVSFJOB3X37TLSuYk:Lib

The code giving me this can be found at https://github.com/phuhl/linux_notification_center commit 5c4b041519885ca0e84867eee52568dcdda22a46.

garetxe pushed a commit that referenced this issue Apr 13, 2017
The return value of gtk_widget_get_parent_window is nullable, but not
marked as such, see
#90
https://bugzilla.gnome.org/show_bug.cgi?id=781246
@garetxe
Copy link
Collaborator

garetxe commented Apr 13, 2017

Thanks for the bug report!

This was an issue in the introspection data. I have added a workaround in d3144e5, and filed a bug with gtk+ upstream.

I will release a new version of gi-gtk to hackage with the fix soon.

@garetxe
Copy link
Collaborator

garetxe commented Apr 13, 2017

Done, I just released gi-gtk-3.0.12 to hackage with the fix.

Thanks again for the report!

@garetxe garetxe closed this as completed Apr 13, 2017
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