After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 533511 - Crash when converting tsv file
Crash when converting tsv file
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export Text
git master
Other All
: Normal critical
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-05-17 04:37 UTC by sum1
Modified: 2008-05-20 00:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tsv file (2.17 KB, text/plain)
2008-05-17 04:39 UTC, sum1
Details

Description sum1 2008-05-17 04:37:56 UTC
Version: r16573 + Attachment 110945 [details] [edit] (from Bug 533247)
OS: Ubuntu Hardy

Steps to reproduce:
- ssconvert attachment.tsv /tmp/foo.txt


Console output:

Using exporter Gnumeric_stf:stf_assistant

** (/home/s/local/bin/ssconvert:10539): WARNING **: There are more columns of data than there is room for in the sheet.  Extra columns will be ignored.

(/home/s/local/bin/ssconvert:10539): GLib-GObject-WARNING **: invalid cast from `CmdContextStderr' to `WBCGtk'

** (/home/s/local/bin/ssconvert:10539): CRITICAL **: wbcg_toplevel: assertion `IS_WBC_GTK (wbcg)' failed

(/home/s/local/bin/ssconvert:10539): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(/home/s/local/bin/ssconvert:10539): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(/home/s/local/bin/ssconvert:10539): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(/home/s/local/bin/ssconvert:10539): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed

(/home/s/local/bin/ssconvert:10539): GLib-GObject-WARNING **: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'

(/home/s/local/bin/ssconvert:10539): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(/home/s/local/bin/ssconvert:10539): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed

(/home/s/local/bin/ssconvert:10539): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(/home/s/local/bin/ssconvert:10539): Gdk-CRITICAL **: gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_context_set_font_description: assertion `context != NULL' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_context_set_base_dir: assertion `context != NULL' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_context_set_language: assertion `context != NULL' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_layout_new: assertion `context != NULL' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_layout_set_text: assertion `layout != NULL' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_layout_set_attributes: assertion `layout != NULL' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_layout_set_alignment: assertion `layout != NULL' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_layout_set_ellipsize: assertion `PANGO_IS_LAYOUT (layout)' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_layout_set_single_paragraph_mode: assertion `PANGO_IS_LAYOUT (layout)' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_layout_set_width: assertion `layout != NULL' failed

(/home/s/local/bin/ssconvert:10539): Pango-CRITICAL **: pango_layout_get_extents: assertion `layout != NULL' failed

(/home/s/local/bin/ssconvert:10539): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(/home/s/local/bin/ssconvert:10539): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(/home/s/local/bin/ssconvert:10539): Gtk-CRITICAL **: gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed

(/home/s/local/bin/ssconvert:10539): Gtk-WARNING **: Invalid icon size 6


(/home/s/local/bin/ssconvert:10539): Gtk-CRITICAL **: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
Segmentation fault
Comment 1 sum1 2008-05-17 04:39:17 UTC
Created attachment 111030 [details]
tsv file
Comment 2 Jean Bréfort 2008-05-17 15:57:56 UTC
The issue comes from the call to go_gtk_notice_dialog at stf.c:384

go_gtk_notice_dialog (wbcg_toplevel (WBC_GTK (context->impl)),
	GTK_MESSAGE_WARNING,_("Some columns of data were"
	" dropped since they exceeded"
	" the available sheet size."));

context->impl might be NULL or something else than a WBCGtk*. hen running:
gnumeric 533511.tsv
it is NULL, and we just get a non harmful critical. But when using ssconvert, we should have no gtk calls. go_cmd_context_error_import was not correct either, but still a better solution, imho. What we need is a context error which does not destroy the data.

Comment 3 Morten Welinder 2008-05-20 00:25:06 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.