Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Segmentation Fault
Segmentation Fault [message #670943] Mon, 16 May 2011 10:23 Go to next message
thoufiq  is currently offline thoufiq Friend
Messages: 16
Registered: May 2011
Junior Member
Hi All,
I have installed sun-java6 and eciipse-ide in my ubuntu server 10.10. My java is running fine but while running eclipse, i got segmentation error. I had googlled lots of times but the answers are not good to resolve the error. Can anyone suggest me to resolve this error. Below i have pasted the result...

sam-osm@dhcppc4:usr/local/opt/eclipse$ sudo ./eclipse

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

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

(eclipse:2960): Gtk-CRITICAL **: IA__gtk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed

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

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

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_display_get_pointer: assertion 'GDK_IS_DISPLAY (display)' failed

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

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_n_monitors: assertion 'GDK_IS_SCREEN (screen)' failed

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

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_monitors_geometry: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed
Segmentation fault

Anyone suggest me to overcome this error.

Thanks
Re: Segmentation Fault [message #671004 is a reply to message #670943] Mon, 16 May 2011 13:57 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

Ubuntu server, really? You should be using Ubuntu desktop which has a
desktop (GNOME/KDE/whatever). Unless you go to some trouble to install
all of that on server, it doesn't come with the capacity to run GUI apps.


On 2011.05.16 4:23, thoufiq wrote:
> Hi All,
> I have installed sun-java6 and eciipse-ide in my
> ubuntu server 10.10. My java is running fine but while
> running eclipse, i got segmentation error. I had googlled
> lots of times but the answers are not good to resolve the
> error. Can anyone suggest me to resolve this error. Below i
> have pasted the result...
>
> sam-osm@dhcppc4:usr/local/opt/eclipse$ sudo ./eclipse
>
> (eclipse:2960): GLib-GObject-WARNING **: invalid (NULL)
> pointer instance
>
> (eclipse:2960): GLib-GObject-CRITICAL **:
> g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE'
> (instance) failed
>
> (eclipse:2960): Gtk-CRITICAL **: IA__gtk_screen_get_display:
> assertion 'GDK_IS_SCREEN (screen)' failed
>
> (eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not
> set; you must always set a screen for a GtkWindow before
> using the window
>
> (eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not
> set; you must always set a screen for a GtkWindow before
> using the window
>
> (eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_display:
> assertion 'GDK_IS_SCREEN (screen)' failed
>
> (eclipse:2960): Gdk-CRITICAL **:
> IA__gdk_display_get_pointer: assertion 'GDK_IS_DISPLAY
> (display)' failed
>
> (eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not
> set; you must always set a screen for a GtkWindow before
> using the window
>
> (eclipse:2960): Gdk-CRITICAL **:
> IA__gdk_screen_get_n_monitors: assertion 'GDK_IS_SCREEN
> (screen)' failed
>
> (eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not
> set; you must always set a screen for a GtkWindow before
> using the window
>
> (eclipse:2960): Gdk-CRITICAL **:
> IA__gdk_screen_get_monitors_geometry: assertion
> 'GDK_IS_SCREEN (screen)' failed
>
> (eclipse:2960): Gdk-CRITICAL **:
> IA__gdk_screen_get_default_colormap: assertion
> 'GDK_IS_SCREEN (screen)' failed
>
> (eclipse:2960): Gdk-CRITICAL **:
> IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP
> (colormap)' failed
>
> (eclipse:2960): Gdk-CRITICAL **:
> IA__gdk_screen_get_default_colormap: assertion
> 'GDK_IS_SCREEN (screen)' failed
>
> (eclipse:2960): Gdk-CRITICAL **:
> IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN
> (screen)' failed
>
> (eclipse:2960): Gdk-CRITICAL **:
> IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN
> (screen)' failed
>
> (eclipse:2960): Gdk-CRITICAL **: IA__gdk_window_new:
> assertion 'GDK_IS_WINDOW (parent)' failed
> Segmentation fault
>
> Anyone suggest me to overcome this error.
>
> Thanks
Re: Segmentation Fault [message #671120 is a reply to message #670943] Mon, 16 May 2011 19:30 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 5/16/11 6:23 AM, thoufiq wrote:
> I have installed sun-java6 and eciipse-ide in my
> ubuntu server 10.10. My java is running fine but while
> running eclipse, i got segmentation error. I had googlled
> lots of times but the answers are not good to resolve the
> error. Can anyone suggest me to resolve this error.

Just because you installed Sun/Oracle Java doesn't necessarily mean that
it's actually being used. Some of the Linux distros are notorious for
putting gcj at the front of the path and "forcing" it to be used. To be
sure you're running Eclipse in the official JDK, you should specify it
in the eclipse.ini file, as described in http://wiki.eclipse.org/Eclipse.ini

Also, how did you install Eclipse? You should always download it
directly from www.eclipse.org rather than rely on what is provided by
any of the linux package managers (apt, rpm, etc).

Eric
Re: Segmentation Fault [message #671205 is a reply to message #671120] Tue, 17 May 2011 06:32 Go to previous messageGo to next message
thoufiq  is currently offline thoufiq Friend
Messages: 16
Registered: May 2011
Junior Member
Hello Eric,
I have downloaded the file eclipse-php-helious-linux-gtk.tar.gz from eclipse website and extarcted it. I ahd followed the steps given in the link www.cyberciti.biz/faq/ubuntu-linux-install-eclipse-java-ide/, then i installed eclipse and eclipse-jdt using sudo apt-get install eclipse eclipse-jdt. Upto this step all are fine but while running the eclipse, i got that segmentation fault error. I had stuckked in this for morethan a week and can you suggest me the right direction.Also my java is working fine.


Thanks

[Updated on: Tue, 17 May 2011 06:39]

Report message to a moderator

Re: Segmentation Fault [message #671257 is a reply to message #671205] Tue, 17 May 2011 10:03 Go to previous messageGo to next message
thoufiq  is currently offline thoufiq Friend
Messages: 16
Registered: May 2011
Junior Member
Hello All,
I googlled and made some changes in eclipse.ini, then i got a fatal error like this


sam-osm@dhcppc4:usr/local/opt/eclipse$ sudo ./eclipse

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

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

(eclipse:2960): Gtk-CRITICAL **: IA__gtk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed

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

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

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_display_get_pointer: assertion 'GDK_IS_DISPLAY (display)' failed

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

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_n_monitors: assertion 'GDK_IS_SCREEN (screen)' failed

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

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_monitors_geometry: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed
#
# A fatal error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb3f0abdd, pid=3399, tid=3067538288
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode, sharing linux-x86)
# Problematic frame:
# C [libgtk-x11-2.0.so.0+0x60bdd] gdk_window_enable_synchronized_configure+0x1d
#
# An error report file with more information is saved as hs_err_pid3399.log
#
# If you would like to submit a bug report, please visit:
# java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problamatic frame for where to report the bug.
#


Below i had pasted my eclipse.ini file

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.0.v20 100503
-product
org.eclipse.epp.package.php.product
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512M
-vm
usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx512m


Help me guys...


Thanks

[Updated on: Tue, 17 May 2011 10:11]

Report message to a moderator

Re: Segmentation Fault [message #671345 is a reply to message #671205] Tue, 17 May 2011 14:52 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 5/17/11 2:32 AM, thoufiq wrote:
> Hello Eric,
> I have downloaded the file
> eclipse-php-helious-linux-gtk.tar.gz from eclipse website
> and extarcted it. Then i installed eclipse and eclipse-jdt
> using sudo apt-get install ecipse eclipse-jdt. Upto this
> step all are fine but while running the eclipse, i got that
> segmentation fault error. I had stuckked in this for
> morethan a week and can you suggest me the right
> direction.Also my java is working fine.

As I said, don't use Eclipse that is installed with a package manager
like apt. Delete that and just use the Eclipse that you extracted from
the Eclipse web site.

Eric
Re: Segmentation Fault [message #671472 is a reply to message #671345] Wed, 18 May 2011 03:16 Go to previous messageGo to next message
thoufiq  is currently offline thoufiq Friend
Messages: 16
Registered: May 2011
Junior Member
Eric Rizzo wrote on Tue, 17 May 2011 10:52
On 5/17/11 2:32 AM, thoufiq wrote:
> Hello Eric,
> I have downloaded the file
> eclipse-php-helious-linux-gtk.tar.gz from eclipse website
> and extarcted it. Then i installed eclipse and eclipse-jdt
> using sudo apt-get install ecipse eclipse-jdt. Upto this
> step all are fine but while running the eclipse, i got that
> segmentation fault error. I had stuckked in this for
> morethan a week and can you suggest me the right
> direction.Also my java is working fine.

As I said, don't use Eclipse that is installed with a package manager
like apt. Delete that and just use the Eclipse that you extracted from
the Eclipse web site.

Eric



Hai Eric,
Thank you for suggesting me. Can you tell how to install the extracted file eclipse-php-helious-linux-gtk.tar.gz, after extraction it becmes a directory called eclipse.

~/usr/local/opt$ ls
eclipse eclipse-php-helious-linux-gtk.tar.gz

~/usr/local/opt/eclipse$ ls
about_files; artifacts.xml; dropins; eclipse.ini; features; libcairo-swt.so; p2 readme; about.html; configuration; eclipse; epl-v10.html; icon.xml; notice.html; plugins


I have googlled and get these commands to install extracted file such as ./configure, make and make install but when i giving this commands also i got error like this

~/usr/local/opt/eclipse$ ./configre
-bash: ./configure; No such file or directory

~/usr/local/opt/eclipse$ make
make: ***No targets specified and no makefile found. Stop.

~/usr/local/opt/eclipse$ make install
make: ***No rule to make target 'install'. Stop.


Is there any mistake i did? If so pls let me know.


Thanks

[Updated on: Wed, 18 May 2011 05:08]

Report message to a moderator

Re: Segmentation Fault [message #671595 is a reply to message #671472] Wed, 18 May 2011 12:18 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

Just as for Windows, Eclipse isn't "installed" in any formal sense. You
explode the archive (what you've done) and consume it from where you
exploded it. You can move it from where you exploded it to wherever in
the file system you want. I keep my copy on the path
/home/russ/dev/eclipse. In GNOME, if you're running it, you can create a
launcher and pin its icon to your top panel or create the launcher on
the desktop. Or you can put it into an existing menu such as
Applications -> Programming.


On 2011.05.17 21:16, thoufiq wrote:
> Eric Rizzo wrote on Tue, 17 May 2011 10:52
>> On 5/17/11 2:32 AM, thoufiq wrote:
>> > Hello Eric,
>> > I have downloaded the file
>> > eclipse-php-helious-linux-gtk.tar.gz from eclipse
>> > website
>> > and extarcted it. Then i installed eclipse and
>> > eclipse-jdt
>> > using sudo apt-get install ecipse eclipse-jdt. Upto
>> > this
>> > step all are fine but while running the eclipse, i
>> > got that
>> > segmentation fault error. I had stuckked in this
>> > for
>> > morethan a week and can you suggest me the right
>> > direction.Also my java is working fine.
>>
>> As I said, don't use Eclipse that is installed with a
>> package manager like apt. Delete that and just use the Eclipse that you
>> extracted from the Eclipse web site.
>>
>> Eric
>
>
>
> Hai Eric,
> Thank you for suggesting me. Can you tell how to
> install the extracted file
> eclipse-php-helious-linux-gtk.tar.gz, after extraction it
> becmes a directory called eclipse.
>
> ~/usr/local/opt$ ls
> eclipse eclipse-php-helious-linux-gtk.tar.gz
>
> ~/usr/local/opt/eclipse$ ls
> about_files artifacts.xml dropins eclipse.ini features
> libcairo-swt.so p2 readme
> about.html configuration eclipse epl-v10.html icon.xml
> notice.html plugins
>
>
> I have googlled and get these commands to install extracted
> file such as ./configure, make and make install but when i
> giving this commands also i got error like this
>
> ~/usr/local/opt/eclipse$ ./configre
> -bash: ./configure; No such file or directory
>
> ~/usr/local/opt/eclipse$ make
> make: ***No targets specified and no makefile found. Stop.
>
> ~/usr/local/opt/eclipse$ make install
> make: ***No rule to make target 'install'. Stop.
>
> Is there any mistake i did? If so pls let me know.
>
>
> Thanks
Re: Segmentation Fault [message #671659 is a reply to message #671472] Wed, 18 May 2011 15:26 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 5/17/11 11:16 PM, thoufiq wrote:
> Hai Eric,
> Thank you for suggesting me. Can you tell how to
> install the extracted file
> eclipse-php-helious-linux-gtk.tar.gz, after extraction it
> becmes a directory called eclipse.

In that directory you'll find an executable named "eclipse"
Just run that. If it doesn't already have the execute permission, you'll
have to chmod it to make it executable.

Eric
Re: Segmentation Fault [message #671843 is a reply to message #671659] Thu, 19 May 2011 07:19 Go to previous messageGo to next message
thoufiq  is currently offline thoufiq Friend
Messages: 16
Registered: May 2011
Junior Member
Eric Rizzo wrote on Wed, 18 May 2011 11:26
On 5/17/11 11:16 PM, thoufiq wrote:
> Hai Eric,
> Thank you for suggesting me. Can you tell how to
> install the extracted file
> eclipse-php-helious-linux-gtk.tar.gz, after extraction it
> becmes a directory called eclipse.

In that directory you'll find an executable named "eclipse"
Just run that. If it doesn't already have the execute permission, you'll
have to chmod it to make it executable.

Eric



Hello Eric,
Thanks again. Already, i had extracted that .tar.gz file and also the directory named 'eclipse' has been created automatically after extraction but while running that extracted directory 'eclipse' using commands such as ./eclipse and eclipse &. I got segmentation fault error as i posted above. Is there any problem with owner and group permissions. Below i have pasted the result..

~/usr/local/opt$ ls -l
total 290652
drwxrwsr-x 9 libuuid users 4096 2010-06-17 21:46 eclipse
-rw-r--r-- 1 sam-osm sam-osm 149897197 2011-05-14 14:40 eclipse-php-helios-linux-gtk.tar.gz


In the above result, the eclipse directory have owner as libuuid and group as users but the .tar.gz file has owner as sam-osm and also group as sam-osm. Should i change the owner and group name. Is this the only cause for the segmentation fault error.

Thanks
Re: Segmentation Fault [message #672083 is a reply to message #671843] Thu, 19 May 2011 20:19 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
You indicated early on that you are running Ubuntu Server. As far as I know Ubuntu Server doesn't include the X server or desktop environment to run graphical applications. You need to have these in order to run Eclipse. You need to install Ubuntu Desktop in order to get the required components to run graphical applications. Until you can startup up an X server, you will not be able to run Eclipse.
Re: Segmentation Fault [message #1404030 is a reply to message #671843] Tue, 29 July 2014 08:57 Go to previous messageGo to next message
Gireesh Puthumana is currently offline Gireesh PuthumanaFriend
Messages: 1
Registered: July 2014
Junior Member
If you are trying this as root, try as the user who actually logged in.
Re: Segmentation Fault [message #1711999 is a reply to message #1404030] Tue, 20 October 2015 16:33 Go to previous message
andy tran is currently offline andy tranFriend
Messages: 1
Registered: October 2015
Junior Member
The problem is that the Xserver is not set up. I used Xming to run the Xserver and putty to connect to the host.

If I don't run Xlaunch from the Xming, I would get the same error. The problem is that the host did not get the necessary permission. When I run Xserver setup, everything clears up. HOpe that helps.
Previous Topic:Eclipse used to start
Next Topic:Starting error
Goto Forum:
  


Current Time: Wed Apr 24 18:08:49 GMT 2024

Powered by FUDForum. Page generated in 0.06410 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top