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 348922 - Gnumeric crashes when copying whole sheets
Gnumeric crashes when copying whole sheets
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Main System
git master
Other All
: High normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 370135 385294 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-07-27 12:29 UTC by Davide Mancusi
Modified: 2006-12-13 14:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Davide Mancusi 2006-07-27 12:29:34 UTC
Distribution: Debian testing/unstable
Package: Gnumeric
Severity: critical
Version: GNOME2.14.2 1.6.x
Gnome-Distributor: Debian
Synopsis: Gnumeric crashes when copying whole sheets
Bugzilla-Product: Gnumeric
Bugzilla-Component: Main System
Bugzilla-Version: 1.6.x
BugBuddy-GnomeVersion: 2.0 (2.14.1)
Description:
Description of the crash:
Selecting whole sheets and attempting to copy them makes Gnumeric crash.
This happens even if the sheet is empty and Gnumeric has been freshly
started.

Steps to reproduce the crash:
1. Click in the upper left corner of the worksheet to select it;
2. Hit Ctrl-C.

Expected Results:
Copying the sheet to the clipboard.

How often does this happen?
Always.

Additional Information:



Debugging Information:

Backtrace was generated from '/usr/bin/gnumeric'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1497012544 (LWP 24322)]
(no debugging symbols found)
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1497012544 (LWP 24322))

  • #0 __kernel_vsyscall
  • #1 waitpid
    from /lib/tls/i686/cmov/libc.so.6
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #6 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #7 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #8 g_log
    from /usr/lib/libglib-2.0.so.0
  • #9 g_realloc
    from /usr/lib/libglib-2.0.so.0
  • #10 g_string_erase
    from /usr/lib/libglib-2.0.so.0
  • #11 g_string_sized_new
    from /usr/lib/libglib-2.0.so.0
  • #12 x_claim_clipboard
    from /usr/lib/libspreadsheet-1.6.3.so
  • #13 gtk_clipboard_get_type
    from /usr/lib/libgtk-x11-2.0.so.0
  • #14 _gtk_marshal_VOID__BOXED_UINT_UINT
    from /usr/lib/libgtk-x11-2.0.so.0
  • #15 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_signal_chain_from_overridden
    from /usr/lib/libgobject-2.0.so.0
  • #17 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #18 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #19 _gtk_selection_notify
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 _gtk_selection_request
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 _gtk_marshal_BOOLEAN__BOXED
    from /usr/lib/libgtk-x11-2.0.so.0
  • #22 g_value_set_boxed
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #24 g_signal_chain_from_overridden
    from /usr/lib/libgobject-2.0.so.0
  • #25 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #26 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #27 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #29 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #30 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #31 g_main_context_check
    from /usr/lib/libglib-2.0.so.0
  • #32 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #33 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #34 main
  • #0 __kernel_vsyscall




------- Bug created by bug-buddy at 2006-07-27 12:29 -------

Comment 1 Andreas J. Guelzow 2006-07-27 17:09:03 UTC
according to the backtrace teh crash happens inside glib. Which exact version of gnumeric and glib are you running?
Comment 2 Davide Mancusi 2006-07-28 10:07:04 UTC
(In reply to comment #1)
> according to the backtrace teh crash happens inside glib. Which exact version
> of gnumeric and glib are you running?
> 

Gnumeric 1.6.3
Glib 2.10.3-3 according to apt (is this how I'm supposed to check it?)
Comment 3 Morten Welinder 2006-08-01 00:20:20 UTC
"Glib 2.10.3-3" sounds plausible.

Could you try running from a shell and see what error message Gnumeric
(Well, glib) is trying to print when it dies?
Comment 4 Davide Mancusi 2006-08-01 10:26:19 UTC
There we go.

/home/davide/.gtk_qt_engine_rc:71: error: unexpected character `{', expected character `}'
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting
QPixmap::operator=: Cannot assign to pixmap during painting

GLib-ERROR **: gmem.c:172: failed to allocate 536870912 bytes
aborting...
/home/davide/.gtk_qt_engine_rc:71: error: unexpected character `{', expected character `}'
Comment 5 Morten Welinder 2006-08-01 13:44:37 UTC
Ok, I see it.

It is trying to allocated 320M (20 * 256 * 8192) in anticipation of using
20 bytes per cell in the sheet.  A lower code level rounds that up to 512M
and you do not have that much, even as swap.

Note, that the code in question will only be called when some other
application requests that the selection be rendered as text.  Gnumeric
will not do this by itself, so I am guessing that you have some kind
of problematic clipboard daemon running.  I am going to fix the code
to not ask for more that ~16M which is the size of the result, but
that is still a lot of work for nothing.

As a workaround, you can set up swap.

Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.
Comment 6 Morten Welinder 2006-11-03 19:31:16 UTC
*** Bug 370135 has been marked as a duplicate of this bug. ***
Comment 7 Morten Welinder 2006-12-13 14:38:27 UTC
*** Bug 385294 has been marked as a duplicate of this bug. ***