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 628041 - [PATCH] document that GFile depends on g_type_init()
[PATCH] document that GFile depends on g_type_init()
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
2.24.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-08-26 14:43 UTC by Stanislav Brabec
Modified: 2010-08-26 16:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gio-gfile-init-doc.patch (456 bytes, text/plain)
2010-08-26 14:43 UTC, Stanislav Brabec
Details

Description Stanislav Brabec 2010-08-26 14:43:33 UTC
Created attachment 168811 [details]
gio-gfile-init-doc.patch

Any GFile operations depend on g_type_init() called before.

This fact is not mentioned in the documentation and programs written just by reading documentation crash without any apparent reason:

  • #0 ??
  • #1 _g_io_modules_ensure_extension_points_registered
    at giomodule.c line 507
  • #2 _g_io_modules_ensure_loaded
    at giomodule.c line 546
  • #3 get_default_vfs
    at gvfs.c line 187
  • #4 IA__g_once_impl
    at gthread.c line 1045
  • #5 IA__g_file_new_for_path
    at gfile.c line 5897

Comment 1 Matthias Clasen 2010-08-26 16:36:00 UTC
I don't want to start adding that blurb to each and every class in gio (its true for all of them, obviously). Instead, I've added a paragraph to the introduction that states this explicitly.