LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-21-2008, 06:17 PM   #1
v3gard
LQ Newbie
 
Registered: Jan 2007
Location: Kristiansand, Norway
Distribution: Slackware
Posts: 21

Rep: Reputation: 0
[Solved] Weird error message while attempting to run Eclipse


Hi guys. I recently compiled Eclipse from source using a Slackbuild-script from slackbuild.org, which I've done 50 or so times before and never encountered an error. At least, until today.

After Eclipse had been compiled, packaged and installed successfully - I ran ldconfig and attempted to run eclipse as a local user (not root) and got the following error message:

Code:
vegard@arthedain ~ $  eclipse
XDM authorization key matches an existing client!
(eclipse:32223): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(eclipse:32223): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:32223): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_display_get_pointer: assertion `GDK_IS_DISPLAY (display)' failed

(eclipse:32223): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_n_monitors: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_monitor_geometry: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_enable_synchronized_configure: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_set_user_data: assertion `window != NULL' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_style_attach: assertion `window != NULL' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_style_set_background: assertion `GTK_IS_STYLE (style)' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_paint_flat_box: assertion `GTK_IS_STYLE (style)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_set_decorations: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_set_accept_focus: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_set_focus_on_map: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_set_modal_hint: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_window_realize_icon: assertion `widget->window != NULL' failed

(eclipse:32223): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:32223): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_display_get_pointer: assertion `GDK_IS_DISPLAY (display)' failed

(eclipse:32223): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_n_monitors: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_monitor_geometry: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_set_geometry_hints: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_move: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_style_attach: assertion `window != NULL' failed

(eclipse:32223): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_style_attach: assertion `window != NULL' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_set_user_data: assertion `window != NULL' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_style_attach: assertion `window != NULL' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_style_set_background: assertion `GTK_IS_STYLE (style)' failed

(eclipse:32223): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(eclipse:32223): Gtk-CRITICAL **: gtk_style_attach: assertion `window != NULL' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_invalidate_rect: assertion `window != NULL' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_show: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_invalidate_rect: assertion `window != NULL' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_invalidate_rect: assertion `window != NULL' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_unmaximize: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_unstick: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_deiconify: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_unfullscreen: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_set_keep_above: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_set_keep_below: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gdk-CRITICAL **: gdk_window_show: assertion `GDK_IS_WINDOW (window)' failed

(eclipse:32223): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(Eclipse:32223): Gdk-CRITICAL **: gdk_window_get_user_data: assertion `window != NULL' failed

(Eclipse:32223): Gtk-CRITICAL **: gtk_style_detach: assertion `GTK_IS_STYLE (style)' failed

(Eclipse:32223): Gtk-CRITICAL **: gtk_style_attach: assertion `window != NULL' failed

(Eclipse:32223): Gtk-CRITICAL **: gtk_style_set_background: assertion `GTK_IS_STYLE (style)' failed

(Eclipse:32223): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(Eclipse:32223): Gdk-CRITICAL **: gdk_window_invalidate_maybe_recurse: assertion `window != NULL' failed

(Eclipse:32223): Gdk-CRITICAL **: gdk_window_get_user_data: assertion `window != NULL' failed

(Eclipse:32223): Gtk-CRITICAL **: gtk_style_detach: assertion `GTK_IS_STYLE (style)' failed

(Eclipse:32223): Gtk-CRITICAL **: gtk_style_attach: assertion `window != NULL' failed

(Eclipse:32223): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(Eclipse:32223): Gtk-CRITICAL **: _gtk_style_peek_property_value: assertion `GTK_IS_STYLE (style)' failed
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb7e88c82, pid=32223, tid=3076568768
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b05 mixed mode, sharing)
# Problematic frame:
# C  [libgtk-x11-2.0.so.0+0x245c82]  gtk_widget_style_get_valist+0xc2
#
# An error report file with more information is saved as /tmp/hs_err_pid32223.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
I tested the package on another computer running Slackware, and I was able to run Eclipse without problems...

Does anyone know what I could do to fix this problem? I've tried googling for an answer, but that didn't actually make me any wiser. As the error-message implies, there seems to be a problem with libgtk-x11-2.0.so. Which library contains this file? When I scanned through my installed packages, I only found libgtkhtml-2.11.0. When I check the slack-desc of that package, it says it only being used by the GIMP Help Browser...

Thanks.

Last edited by v3gard; 03-22-2008 at 06:53 AM.
 
Old 03-21-2008, 08:20 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
/usr/lib/libgtk-x11-2.0.so is a symbolic link to /usr/lib/libgtk-x11-2.0.so.0.1000.13. libgtk-x11-2.0.so.0.1000.13 is located in the "gtk+2-2.10.13-i486-1" package, as shown by the command `grep libgtk-x11-2.0.so.0.1000.13 /var/log/packages/*`. I can't provide you with much help, however. Check to see that /usr/lib/libgtk-x11-2.0.so exists and is a symlink to /usr/lib/libgtk-x11-2.0.so.0.1000.13 (also make sure that /usr/lib/libgtk-x11-2.0.so.0.1000.13 exists as a real file). The permissions on /usr/lib/libgtk-x11-2.0.so.0.1000.13 are:
Code:
-rwxr-xr-x 1 root root 3406572 2007-06-13 22:45 /usr/lib/libgtk-x11-2.0.so.0.1000.13*
I can't really help beyond that (I've never used Eclipse), but hopefully it'll be as simple as (re)installing the gtk+2-2.10.13-i486-1 package (obtainable on the Slackware DVD in the "l" series packages or from a mirror).
 
Old 03-22-2008, 06:40 AM   #3
v3gard
LQ Newbie
 
Registered: Jan 2007
Location: Kristiansand, Norway
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 0
Hi T3Slider, and thanks for replying.

I also found out that /usr/lib/libgtk-x11-2.0.so was a symlink to /usr/lib/libgtk-x11-2.0.so.0.1000.13 - and also checked that both files existed and had the same permissions as the file you posted.

Furthermore, I reinstalled gtk+2-2.10.13-i486-1 as you suggested - but that didn't help me very much. After the package was reinstalled, I ran ldconfig and restarted the machine, just to be sure. However, when I attempted to run Eclipse after the reboot, I got the same error-message.
 
Old 03-22-2008, 06:46 AM   #4
v3gard
LQ Newbie
 
Registered: Jan 2007
Location: Kristiansand, Norway
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 0
I've now managed to fix the problem. I had to run the command "xhost +localhost" as root, and afterwards I managed to run Eclipse without problems..
 
Old 03-23-2008, 09:40 PM   #5
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
v3gard, I think your `xhost +localhost` "solution" is probably a pretty big security risk (search the forums). I can't help you further because of my ignorance on the issue, but hopefully someone more knowledgeable will chime in. I'm just saying that if I were you (which I'm not) I would look for a better solution.
 
Old 03-24-2008, 11:43 AM   #6
v3gard
LQ Newbie
 
Registered: Jan 2007
Location: Kristiansand, Norway
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 0
Okey, thanks for the tip. I'll look some more into it!
 
Old 03-24-2008, 08:14 PM   #7
ice_nine
Member
 
Registered: Sep 2007
Posts: 41

Rep: Reputation: 15
Looks to me more like a problem with your X setup, eclipse is getting denied from connecting to your X server. Are you using XDM as your login manager? You could try using a different one (ie KDM) or even just starting x with 'startx'. Are you doing something strange like logging in as one user then running eclipse as a different user?

While I'm no expert on X security, I wouldn't think 'xhost + localhost' is much of a security risk as it only allows connections coming from your computer. Anyone logged into your computer would have access to your x screen, but if you are the only user that's not much of a big deal.

Last edited by ice_nine; 03-24-2008 at 08:20 PM.
 
Old 12-15-2009, 10:37 AM   #8
awkward_duck
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
ownership problems i think

Quote:
Originally Posted by v3gard View Post
Okey, thanks for the tip. I'll look some more into it!
I had this same problem and hint was the last post about logging in as different user .... my terminal was running as root and i was logged on as a user .... when i exited root and ran native user it fired right up!!!

I know a little late but these catch me always keep coming.

cheers
 
Old 05-24-2013, 10:40 PM   #9
SteveScherer
LQ Newbie
 
Registered: May 2013
Location: Sun Prairie WI
Posts: 1

Rep: Reputation: Disabled
Smile

Excellent tip! That was my exact problem, Eclipse normally works fine on my machine, but I opened a terminal window while having root access then everything went haywire. Appreciate the help

Quote:
Originally Posted by awkward_duck View Post
I had this same problem and hint was the last post about logging in as different user .... my terminal was running as root and i was logged on as a user .... when i exited root and ran native user it fired right up!!!

I know a little late but these catch me always keep coming.

cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message when attempting to install GUI for Ubuntu Server 7.04 calebf Linux - Server 5 04-25-2009 11:23 PM
Unrecoverable Error: execv() error attempting to run powah Red Hat 0 09-06-2006 01:15 PM
Error message while attempting Wine install odyssey84 Linux - Software 4 07-25-2006 03:43 AM
error message when attempting winex icanspellnew Linux - Software 1 07-18-2004 05:20 AM
PLEASE HELP: Receiving weird error message when attempting Red Hat v8.0 install!! Soulstice Linux - General 8 01-12-2003 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration