GNOME Bugzilla – Bug 348922
Gnumeric crashes when copying whole sheets
Last modified: 2006-12-13 14:38:27 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 ()
+ Trace 69687
Thread 1 (Thread -1497012544 (LWP 24322))
------- Bug created by bug-buddy at 2006-07-27 12:29 -------
according to the backtrace teh crash happens inside glib. Which exact version of gnumeric and glib are you running?
(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?)
"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?
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 `}'
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.
*** Bug 370135 has been marked as a duplicate of this bug. ***
*** Bug 385294 has been marked as a duplicate of this bug. ***