Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363239

Summary: Floating point exception if X cookie is invalid
Product: [Eclipse Project] Equinox Reporter: Philipp Hagemeister <phihag>
Component: LauncherAssignee: Project Inbox <equinox.launcher-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, Silenio_Quarti
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Philipp Hagemeister CLA 2011-11-08 18:32:01 EST
Build Identifier: gtk.linux.x86_64_1.1.100.v20110505

When starting Eclipse and the Xauthority file is damaged or invalid (and X cookies are used for authentication), eclipse either segfaults(if the cookie is invalid) or outputs Floating point exception.

Reproducible: Always

Steps to Reproduce:
1. echo a > ~/.Xauthority
2. ./eclipse

This outputs


No protocol specified

(Eclipse:25814): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(Eclipse:25814): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(Eclipse:25814): Gtk-CRITICAL **: IA__gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(Eclipse:25814): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed

(Eclipse:25814): GLib-GObject-WARNING **: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'

(Eclipse:25814): Gtk-CRITICAL **: IA__gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(Eclipse:25814): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed

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

(Eclipse:25814): Gdk-CRITICAL **: IA__gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(Eclipse:25814): Pango-CRITICAL **: pango_context_set_font_description: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_context_set_base_dir: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_context_set_language: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_new: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_text: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_attributes: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_alignment: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_ellipsize: assertion `PANGO_IS_LAYOUT (layout)' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_single_paragraph_mode: assertion `PANGO_IS_LAYOUT (layout)' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_width: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_get_extents: assertion `layout != NULL' failed

(Eclipse:25814): Gtk-CRITICAL **: IA__gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(Eclipse:25814): Gtk-CRITICAL **: IA__gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(Eclipse:25814): Gtk-CRITICAL **: IA__gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed

(Eclipse:25814): Gtk-WARNING **: Invalid icon size 6


(Eclipse:25814): Gtk-CRITICAL **: IA__gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed

(Eclipse:25814): Gtk-WARNING **: Error loading theme icon 'dialog-error' for stock:

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

(Eclipse:25814): Gtk-CRITICAL **: gtk_default_render_icon: assertion `base_pixbuf != NULL' failed

(Eclipse:25814): Gtk-CRITICAL **: IA__gtk_style_render_icon: assertion `pixbuf != NULL' failed

(Eclipse:25814): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(Eclipse:25814): Gdk-CRITICAL **: IA__gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(Eclipse:25814): Pango-CRITICAL **: pango_context_set_font_description: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_context_set_base_dir: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_context_set_language: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_new: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_text: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_alignment: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_ellipsize: assertion `PANGO_IS_LAYOUT (layout)' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_single_paragraph_mode: assertion `PANGO_IS_LAYOUT (layout)' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_wrap: assertion `PANGO_IS_LAYOUT (layout)' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_width: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_get_extents: assertion `layout != NULL' failed

(Eclipse:25814): Gdk-CRITICAL **: IA__gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(Eclipse:25814): Pango-CRITICAL **: pango_context_set_font_description: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_context_set_base_dir: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_context_set_language: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_new: assertion `context != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_text: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_get_extents: assertion `layout != NULL' failed

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

(Eclipse:25814): Gdk-CRITICAL **: IA__gdk_screen_get_width: assertion `GDK_IS_SCREEN (screen)' failed

(Eclipse:25814): Gdk-CRITICAL **: IA__gdk_screen_get_width: assertion `GDK_IS_SCREEN (screen)' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_set_width: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_get_extents: assertion `layout != NULL' failed

(Eclipse:25814): Pango-CRITICAL **: pango_layout_get_line_count: assertion `layout != NULL' failed
Floating point exception
Comment 1 Philipp Hagemeister CLA 2011-11-08 18:34:02 EST
Eclipse should throw a sensible error instead, like all other programs do

No protocol specified
Error: Can't open display: :0
Comment 2 Felipe Heidrich CLA 2011-11-10 10:52:27 EST
silenio, isn't this is duplicate ?
Comment 3 Silenio Quarti CLA 2011-11-11 09:49:48 EST
(In reply to comment #2)
> silenio, isn't this is duplicate ?

Not sure. I believe this is a problem in the eclipse launcher, not in SWT.
Comment 4 Eclipse Genie CLA 2019-04-11 11:00:29 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Lars Vogel CLA 2019-10-09 07:03:21 EDT
This bug was marked as stalebug a while ago. Marking as wontfix.

If this report is still relevant for the current release, please
reopen and remove the stalebug whiteboard tag.