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 669141 - Crash on printing image page centre
Crash on printing image page centre
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Printing
2.24.x
Other Windows
: Normal critical
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-01-31 22:29 UTC by mbourne
Modified: 2018-02-10 03:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description mbourne 2012-01-31 22:29:51 UTC
Found while trying to produce a test-case for bug #562619. When trying to print an image page centre, the Print plug-in crashes in at least some cases. Not sure if this is correct filed against GIMP, or whether it should be against GTK+ (as bug #562619 is).

On Windows Vista, 32-bit Business edition.


Setup
-----
Install GIMP 2.7.4 using gimp-2.7.4-setup.exe from
http://sourceforge.net/projects/gimp-win/files/
Install PDFCreator 1.2.3 from http://www.pdfforge.org/

Start GIMP

Set background colour to black

File > New
- Width:        20mm (rounds to 20.11)
- Height:       20mm (rounds to 20.11)
- X resolution: 72.000
- Y resolution: 72.000
- Color space:  RGB color
- Fill with:    Background color

File > Page Setup
- Size:   A4 210 x 297 mm
- Source: Sheet
- Orientation: Portrait
- All Margins: 6.35 mm

File > Print
- Select Printer: PDFCreator
- Image Settings tab:
  - Width, Height, X & Y resolutions as above
  - Center: Both
  - Position Left: automatically set to  94.95   Right:  automatically set to 
94.95
  - Position Top:  automatically set to 138.45   Bottom: automatically set to
138.45
  - Ignore Page Margins
- Click Print

Windows displays an error:
  "GNU Image Manipulation Program Plug-In has stopped working
  Problem signature:
    Problem Event Name:    APPCRASH
    Application Name:    print.exe
    Application Version:    2.7.4.0
    Application Timestamp:    4ee92c53
    Fault Module Name:    libgtk-win32-2.0-0.dll
    Fault Module Version:    2.24.9.0
    Fault Module Timestamp:    4eeca880
    Exception Code:    c0000005
    Exception Offset:    001d87db
    OS Version:    6.0.6002.2.2.0.256.6
    Locale ID:    2057
    Additional Information 1:    50d1
    Additional Information 2:    0239e205757b6336adef9d7815ae8399
    Additional Information 3:    5e73
    Additional Information 4:    785e9560b70f878375f3fdac857b8ee5

GIMP continues running (which is quite nice!), but nothing is printed.

If the values selected automatically here for left and top position (94.95 and 138.45) are instead typed manually, the resulting automatically set values for right and bottom position are 94.94 and 138.44 respectively - 0.01 less than when selecting Center: Both - and there is no crash (resulting offset still isn't right, but that's the subject of bug #562619).

Perhaps there's some sort of rounding error when Center: Both is selected, leading to the crash as the dimensions don't all add up correctly?
Comment 1 mbourne 2012-01-31 22:31:01 UTC
Should have added - this crash does not occur in GIMP 2.6.10.
Comment 2 Michael Natterer 2012-02-24 20:22:31 UTC
This seems one of the many windows print crashes in the middle of GTK+
(Fault Module Name:    libgtk-win32-2.0-0.dll)
Reassigning.
Comment 3 Matthias Clasen 2018-02-10 03:43:37 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.