LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Weird error message while attempting to run Eclipse (http://www.linuxquestions.org/questions/slackware-14/weird-error-message-while-attempting-to-run-eclipse-629757/)

v3gard 03-21-2008 07:17 PM

[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.

T3slider 03-21-2008 09:20 PM

/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).

v3gard 03-22-2008 07:40 AM

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.

v3gard 03-22-2008 07:46 AM

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..

T3slider 03-23-2008 10:40 PM

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.

v3gard 03-24-2008 12:43 PM

Okey, thanks for the tip. I'll look some more into it! :)

ice_nine 03-24-2008 09:14 PM

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.

awkward_duck 12-15-2009 11:37 AM

ownership problems i think
 
Quote:

Originally Posted by v3gard (Post 3098871)
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

SteveScherer 05-24-2013 11:40 PM

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 (Post 3792408)
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



All times are GMT -5. The time now is 02:55 AM.