Bug 546848

Summary: GLib-WARNING **: g_set_prgname() called multiple times
Product: [Fedora] Fedora Reporter: Christopher Beland <beland>
Component: glib2Assignee: Matthias Clasen <mclasen>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 12CC: andrew.kavalov, berrange, cyberman, fschwarz, hicham.haouari, inbioz, jonathan.underwood, jon.dufresne, kai, kklic, mattias.ellert, mclasen, mjs, om, Philippe.Berthault, ralston, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Gnome
Last Closed: 2010-02-13 04:18:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot showing 2 emacs windows, 1 with an absurdly small font (from a setting that used to be normal) none

Description Christopher Beland 2009-12-12 09:06:25 UTC
When I run the command "emacs FILENAME.txt", I get the following warning:

 GLib-WARNING **: g_set_prgname() called multiple times

Emacs also starts up in split-window mode, with the upper buffer being the file I requested, and the lower one being the startup message buffer.  (But I'm not sure that's related.)

Software versions:
emacs-23.1-13.fc12.i686
glib2-2.22.3-1.fc12.i686

Comment 1 NM 2009-12-13 13:39:56 UTC
Same here. It happens after latest set of updates.

(emacs:4427): GLib-WARNING **: g_set_prgname() called multiple times

uname -a
Linux armat1.localdomain 2.6.31.6-166.fc12.x86_64 #1 SMP Wed Dec 9 10:46:22 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

Comment 2 Karel Klíč 2009-12-14 09:26:42 UTC
It seems this bug is caused by recent glib2 update to 2.22.3.

The same issue in Debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559407

Comment 3 Danny Yee 2009-12-20 23:42:19 UTC
Should this be "low severity"?  It's stopping me running gimp at all, which seems like a fairly major problem - and there are presumably lots of other applicatiosn affected.

Comment 4 Karel Klíč 2009-12-21 19:14:11 UTC
*** Bug 549455 has been marked as a duplicate of this bug. ***

Comment 5 Matthew Saltzman 2009-12-21 20:44:43 UTC
(In reply to comment #0)
>
> Emacs also starts up in split-window mode, with the upper buffer being the file
> I requested, and the lower one being the startup message buffer.  (But I'm not
> sure that's related.)
> 

I'm pretty sure this is a different problem, as it doesn't happen to me when I start emacs, but the warning does.

Comment 6 Karel Klíč 2009-12-21 20:53:41 UTC
Matthew, 
yes, that is a different problem.

Christopher, 
do you have (setq inhibit-startup-message t) in your .emacs file? Is your .emacs file loaded without any error?

Comment 7 James Ralston 2009-12-22 17:56:49 UTC
I have this in my ~/.emacs file:

(custom-set-variables
 '(inhibit-startup-screen t))

I receive no startup messages (either warnings or errors) from Emacs.

However, Emacs always emits the "GLib-WARNING **: g_set_prgname() called multiple times" warning message to STDERR whenever it starts.

Versions:

1:emacs-23.1-13.fc12.x86_64
1:glib-1.2.10-33.fc12.x86_64
0:glib2-2.22.3-2.fc12.x86_64

Comment 8 Daniel Berrangé 2009-12-29 15:37:44 UTC
Upstream glib2 has reverted the bogus code that's causing this warning in emacs, so it'd be good to get this into F12 updates too

http://git.gnome.org/browse/glib/commit/?id=7db8b92b979b2f95268d42eecf9dc7a361e6f5d1

Comment 9 Max Kessler 2009-12-30 07:44:03 UTC
I'm not sure if this is the cause, but emacs has been showing up with a ridiculously small font size.  This coincided with the warning starting, so it just might be related.

In another user account I changed the height attribute of the default font to an absurdly large number.  (see attachment emacs-issue.xwd)

Comment 10 Max Kessler 2009-12-30 07:52:07 UTC
Created attachment 380907 [details]
screenshot showing 2 emacs windows, 1 with an absurdly small font (from a setting that used to be normal)

Comment 11 Max Kessler 2009-12-30 08:13:06 UTC
I didn't realize xwd files were so large.  I changed it to emacs-issue.png.

Comment 12 Hicham HAOUARI 2009-12-31 02:24:18 UTC
i get this warning when launching firefox too

Comment 13 Berthault 2010-01-25 16:01:55 UTC
There is the same error (g_set_prgname() called multiple times) with Eclipse 3.5 (Galileo) on Fedora-12.

I've also notice that Fedora 12 consumes a lot of CPU, much than Fedora-11, with same applications such as Eclipse, gedit, etc.. but I don't know if there is a relation with the g_set_prgname error.

Comment 14 Karel Klíč 2010-02-02 14:24:03 UTC
*** Bug 559889 has been marked as a duplicate of this bug. ***

Comment 15 Senthil 2010-02-03 06:06:44 UTC
This issues stops me using mysql-proxy, getting the warning message when ever I start mysql-proxy


[zen@ss controllers]$ mysql-proxy -V
mysql-proxy 0.7.2
  glib2: 2.21.4
  libevent: 1.4.12-stable
  lua: Lua 5.1.4
    LUA_PATH: /usr/lib/mysql-proxy/lua/?.lua
    LUA_CPATH: /usr/lib/mysql-proxy/lua/?.so
2010-02-03 11:21:26: (warning) g_set_prgname() called multiple times
  == plugins ==
  admin: 0.7.0
  proxy: 0.7.0

Comment 16 Matthias Clasen 2010-02-13 04:18:15 UTC
The g_set_prgname issue was fixed in glib2-2.22.4.
All the other problems discussed in this bug are unrelated.