Weird error message while attempting to run Eclipse
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[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...
/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:
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).
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.
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.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.