Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475178 - net-irc/hexchat-2.9.5-r1 doesn't start, just prints glib errors on screen when run as root
Summary: net-irc/hexchat-2.9.5-r1 doesn't start, just prints glib errors on screen whe...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 08:36 UTC by PatomaS
Modified: 2013-07-01 15:21 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,16.44 KB, text/plain)
2013-06-29 08:37 UTC, PatomaS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PatomaS 2013-06-29 08:36:39 UTC
When you run hexchat 2.9.5-r1, the only output you get is:

(process:19737): GLib-GObject-CRITICAL **: gtype.c:2722: You forgot to call g_type_init()

(process:19737): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(process:19737): GLib-GObject-CRITICAL **: gtype.c:2722: You forgot to call g_type_init()

(process:19737): GLib-GObject-CRITICAL **: gtype.c:2722: You forgot to call g_type_init()

(process:19737): GLib-GObject-CRITICAL **: gtype.c:2722: You forgot to call g_type_init()

(process:19737): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:19737): GLib-GObject-CRITICAL **: gtype.c:2722: You forgot to call g_type_init()

(process:19737): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(process:19737): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(process:19737): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:19737): GLib-GObject-CRITICAL **: gtype.c:2722: You forgot to call g_type_init()

After checking a bit on internet, it seems to be related to one of two things, lack of configuration directory or being run as root. I have /root/.config/hexchat so I tried to emerge the next version, masked, net-irc/hexchat-2.9.5_p20130525 and it did work, It opened a popup telling me not to run the program as root, and after that, I was in the program.

Running the program as root, sometimes, although insecure, is an option, for instance when you are setting a system and you are having unexpected results and are trying to eliminate variables. In any case, a popup with the alert is good, not interface at all is stupid (that's the word used in the popup).

Once you have installed the masked version, if you downgrade again, then the program run's normally.

If you unmerge all hexchat versions, remove the .config/hexchat directory, and reemerge the net-irc/hexchat-2.9.5-r1 you get the original results, only glib errors on the console.

Reproducible: Always

Steps to Reproduce:
1. emerge net-irc/hexchat-2.9.5-r1
2. run hexchat
3. get glib errors on screen
Actual Results:  
bunch of glib errors on screen if you run the program from console.

Expected Results:  
the interface of hexchat

emerge --info is 501 characters too long so I'm sending it as attachment.
Comment 1 PatomaS 2013-06-29 08:37:36 UTC
Created attachment 352212 [details]
emerge --info

too long for the comments in the original report
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-01 15:19:16 UTC
Running an IRC client as root is just about the worst idea ever. You should be lucky it fails to even start. :)
Comment 3 Julian Ospald 2013-07-01 15:21:53 UTC
https://github.com/hexchat/hexchat/commit/270cde42f1f801060b4f733d7f70ab37413024d4

use net-irc/hexchat-2.9.5_p20130525

I will not backport that patch.