Errors when starting Eclipse from the user terminal, but not from root

I had eclipse installed (well, unpacked) in my home directory ( ~/eclipse ), and it worked fine (well, as you can say about Eclipse). Today it was completely insane, always throwing a "stack overflow". (By the way, did you know that these days Google is completely impossible for stack overflow problems? Guess what you get ... :)

So, I downloaded the latest version and installed it under /opt/eclipse this time. When trying to start it from my user terminal, many errors occur:

(eclipse: 28336): GLib-GObject-WARNING **: invalid (NULL) pointer instance

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

(eclipse: 28336): Gtk-CRITICAL **: gtk_settings_get_for_screen: the statement `GDK_IS_SCREEN (screen) 'failed

(eclipse: 28336): Gtk-WARNING **: Screen for GtkWindow not installed; you should always set the screen for gtkwindow before using the window

etc .. and others.

Running it from the root terminal works fine (and actually starts much faster than the previous version).

Doing this did not help:

 xhost +localhost xhost +<my-user> 

It also was not:

 chroot -R root:root /opt/eclipse chroot -R my-group:my-user /opt/eclipse 

Any suggestions how to solve this?

EDIT: curious, unpacking it again, this time under my home director didn’t help either. Showing that surrender doesn't help much ...

+4
source share
1 answer

Not sure how useful this is, but such an error message occurs when DISPLAY is not installed correctly: https://bugs.eclipse.org/bugs/show_bug.cgi?id=314849 .

If your display is installed, I'm not sure where to go from here, as you have already done xhost + ...

+6
source

Source: https://habr.com/ru/post/1344667/


All Articles