After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744811 - Core dump when calling GUdev.Enumerator()
Core dump when calling GUdev.Enumerator()
Status: RESOLVED DUPLICATE of bug 649662
Product: pygobject
Classification: Bindings
Component: introspection
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-19 18:27 UTC by Damon Lynch
Modified: 2015-05-23 19:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Damon Lynch 2015-02-19 18:27:59 UTC
I'm still very new to gobject introspection and when I mistakenly tried this code:

from gi.repository import GUdev; e = GUdev.Enumerator()

core was dumped with this message:

GUdev:ERROR:../src/gudev/gudevenumerator.c:126:g_udev_enumerator_constructed: assertion failed: (G_UDEV_IS_CLIENT (enumerator->priv->client))

[I now realize that I should have done it like this:
e = GUdev.Enumerator.new(client)]

I don't know if this is a duplicate of bug 675581.
Comment 1 Simon Feltman 2015-05-23 19:17:49 UTC
(In reply to Damon Lynch from comment #0)
> ...
> [I now realize that I should have done it like this:
> e = GUdev.Enumerator.new(client)]
> 
> I don't know if this is a duplicate of bug 675581.

Hi,

Not exactly of dup of bug 675581, more like bug 649662. The idea is we need the ability to mark required construction properties.

*** This bug has been marked as a duplicate of bug 649662 ***