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 565518 - Missing call to g_thread_init()
Missing call to g_thread_init()
Status: RESOLVED NOTABUG
Product: gnome-user-share
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-user-share maintainers
gnome-user-share maintainers
: 565231 (view as bug list)
Depends on: 547885
Blocks:
 
 
Reported: 2008-12-23 22:15 UTC by Frederic Peters
Modified: 2009-01-05 16:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add g_thread_init() calls (884 bytes, patch)
2008-12-23 22:16 UTC, Frederic Peters
none Details | Review

Description Frederic Peters 2008-12-23 22:15:13 UTC
Aftermath of bug 564726, it is now required for modules using ORBit2 (implied
by gconf for example) to declare they will be using threads.

** (gnome-user-share:14644): WARNING **: g_thread_init() has not been called. ORBit2 would like to use threads, so the application should have called g_thread_init(NULL) before any GLib or GLib-using API. Calling g_thread_init() now here inside the libORBit-2 library is too late, so instead threads won't be used by ORBit2. This might have bad side-effects. Fix the application!
Comment 1 Frederic Peters 2008-12-23 22:16:26 UTC
Created attachment 125238 [details] [review]
add g_thread_init() calls

This patch adds the appropriate call to g_thread_init (to both gnome-user-share and the preferences dialog).
Comment 2 Baptiste Mille-Mathias 2008-12-24 07:24:00 UTC
*** Bug 565231 has been marked as a duplicate of this bug. ***
Comment 3 Baptiste Mille-Mathias 2008-12-24 07:27:05 UTC
Hello, 

I did a patch for that already but I forgot to patch the preference :).
I'm not the maintainer but the patch seems good to me, anyway let's wait for Bastien.
Comment 4 Bastien Nocera 2008-12-25 15:45:53 UTC
Frankly, I think it's a bug in Orbit, or GConf, that we even get that warning. It's completely stupid for each application to have to be patched.

~/gnome-user-shared/src/ $ grep -i thread *.c
~/gnome-user-shared/src/ $

Suck. Where's the original bug opened against those libraries?
Comment 5 Frederic Peters 2008-12-25 15:52:40 UTC
Bug 547885.
Comment 6 Bastien Nocera 2009-01-05 16:00:11 UTC
Orbit was reverted, closing.