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 172881 - Reproducible Crash with large files and Debian SID (2.2.4)
Reproducible Crash with large files and Debian SID (2.2.4)
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other Linux
: Normal critical
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
: 314083 327910 370423 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-04-06 22:13 UTC by J. Becker
Modified: 2008-01-15 12:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description J. Becker 2005-04-06 22:13:51 UTC
Easily reproducible. I'm assembling a front, back, and spine JPG covers of a   
book into a single file to export to PDF for a publisher. I create a new 300dpi   
XCF that is 4800x2900 bits (8MB xcf) and then open the three files. Selecting  
and copying   
(control A, control C) the front cover (a 260k JPG file) causes immediate  
crash.  This happens every time unless I chant "don't crash don't crash don't  
crash" while I'm doing the copying, and even then sometimes Gimp doesn't hear  
me, even when I lean closer to the computer. (I have noticed a slight glow in  
my eyes now though.)  
  
I have 1GB of RAM and plenty of swap, and I   
increased tile caches from the default 64MB to 512 MB to see if it would help.   
I do have SMP (2x2Ghz athlon) if that might be the cause.   
   
I launched it from the command line to get the crash details:   
   
$ gimp --version   
GIMP version 2.2.4   
   
$ gimp   
sending pixbuf data as 'image/png' (png)   
sending pixbuf data as 'image/jpeg' (jpeg)   
sending pixbuf data as 'image/png' (png)   
sending pixbuf data as 'image/png' (png)   
sending pixbuf data as 'image/jpeg' (jpeg)   
sending pixbuf data as 'image/png' (png)   
sending pixbuf data as 'image/jpeg' (jpeg)   
The program 'gimp' received an X Window System error.   
This probably reflects a bug in the program.   
The error was 'BadWindow (invalid Window parameter)'.   
  (Details: serial 896500 error_code 3 request_code 18 minor_code 0)   
  (Note to programmers: normally, X errors are reported asynchronously;   
   that is, you will receive the error a while after causing it.   
   To debug your program, run it with the --sync command line   
   option to change this behavior. You can then get a meaningful   
   backtrace from your debugger if you break on the gdk_x_error() function.)   
(script-fu:9385): LibGimpBase-WARNING **: script-fu: wire_read(): error                                                                                                     
   
Happy to provide files (in a tarball via email or an http download link) if   
they would help.   
   
I'm using 2.2.4 on Sid, and no related crash reports seem to have been filed.  
 
$gimp --sync 
sending pixbuf data as 'image/png' (png) 
sending pixbuf data as 'image/jpeg' (jpeg) 
The program 'gimp' received an X Window System error. 
This probably reflects a bug in the program. 
The error was 'BadWindow (invalid Window parameter)'. 
  (Details: serial 177527 error_code 3 request_code 18 minor_code 0) 
  (Note to programmers: normally, X errors are reported asynchronously; 
   that is, you will receive the error a while after causing it. 
   To debug your program, run it with the --sync command line 
   option to change this behavior. You can then get a meaningful 
   backtrace from your debugger if you break on the gdk_x_error() function.) 
 
(script-fu:9538): LibGimpBase-WARNING **: script-fu: wire_read(): error
Comment 1 Sven Neumann 2005-04-06 22:27:52 UTC
You get this when doing copy and paste in the same application? It seems that
you are running one of these broken-by-design clipboard managers then. There is
no reason why the contents of the clipboard should be transferred to the X
server. I suggest you stop using this clipboard manager daemon. There seems to
be a bug somewhere as well since this should of course not crash the application
but this seems to be a bug in GTK+/GDK or your X server rather than a GIMP problem.
Comment 2 J. Becker 2005-04-06 22:47:10 UTC
Brilliant! I killed klipper (I guess it's KDE's version of the Macintosh 
scrapbook, which really was an ingenious invention, but, hey, if it doesn't 
work..) and that fixed it. Thanks Sven!!! And thanks for the rapid response! 
 
Should we leave this open and/or do you need additional details to figure out 
where the corresponding bug in Gimp is? 
Comment 3 Sven Neumann 2005-04-06 23:04:07 UTC
The corresponding bug is most likely a problem with large X selections. Thus the
problem is either in klipper, GDK or your X server. We would need a test case
that allows to reproduce the problem. I have tried to reproduce it here using a
sane clipboard manager (one that only stores the data on request) and GIMP HEAD,
and I had no problems with large clipboard data.

If you are interested in getting this fixed, please make a simple test case and
file a bug report for the relevant product.
Comment 4 Sven Neumann 2005-08-22 13:29:53 UTC
*** Bug 314083 has been marked as a duplicate of this bug. ***
Comment 5 Sven Neumann 2005-08-22 13:32:07 UTC
We now have a test application in the GIMP source tree that allows us to try all
kinds of clipboard operations. This small test app is located in the tools
directory in the GIMP source tree. You could try to reproduce your problem using
this test program.
Comment 6 Simon Budig 2006-01-20 22:30:20 UTC
*** Bug 327910 has been marked as a duplicate of this bug. ***
Comment 7 Simon Budig 2006-01-20 22:35:12 UTC
I suspect this needs to be set NEEDINFO, since we need info on this and the issue is still there for people using Klipper. Anyone with KDE willing to give the test application a try?
Comment 8 David Mulcahy 2006-01-21 17:30:29 UTC
If you point me in the right direction.  I have some time on my hands so I may be able to do some tests.  I am only a user but my offer help is there.  Point me in the direction (name) of the test app and I will see what I can find.  I have a feeling I first had this problem with kde 3.5 (before i down graded to stable) but I cant remember now.  Does this happen in kde 3.5?
Comment 9 weskaggs 2006-08-29 19:40:57 UTC
Resolving as OBSOLETE because it has been NEEDINFO since January and there have been many relevant changes, both the GIMP and KDE.  Please reopen if the bug can still be observed and you can help figure it out.
Comment 10 Michael Natterer 2006-11-04 18:00:34 UTC
*** Bug 370423 has been marked as a duplicate of this bug. ***
Comment 11 Sven Neumann 2007-02-18 18:24:19 UTC
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=411285 finally sheds some light on this issue and it has a stack trace that clearly shows that the bug is GdkPixbuf in the Windows ICO save module.
Comment 12 Sven Neumann 2007-02-18 18:28:06 UTC
Applied a workaround for the crash to trunk.

2007-02-18  Sven Neumann  <sven@gimp.org>

        * app/widgets/gimppixbuf.c (gimp_pixbuf_targets_add): skip Windows
        ICO as writable format. It's not well suited as a general image
        exchange format and the GdkPixbuf save routine seems to be buggy.

Use of Klipper and similar clipboard managers is still very much discouraged as it will still cause GIMP to block for a while whenever anything is copied, even if that content is only meant to be pasted in GIMP again.

Please use http://people.imendio.com/andersca/archives/clipboard-manager-0.3.tar.gz instead.