http://bugs.winehq.org/show_bug.cgi?id=28979
Bug #: 28979 Summary: monochrome bitmap printing problem Product: Wine Version: 1.3.31 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: ralf.habacker@freenet.de Classification: Unclassified
I have a test program which prints out a monochrome and colored bitmap and some text. It prints outs the monochrome image inverted and non inverted. On windows this test app works as expected, it prints black drawings with white background on none inverted page, white pixels and black background on inverted pages. I tested this with PDFCreator and a real HP laserjet compatible printer.
Running this application on wine shows coloring problems (see appended screenshots).
I have verified that this is not an os related problem by running this test on two different opensuse linux machines, one with running version 11.2 and the other opensuse 11.4. On both machines this problems occurs with slightly different wrong colors (green on the other machine)
I created the appended pdf files on both machines using a generic postscript level 2 printer driver and converted it to pdf with ps2pdf.
Binaries, source and wine log with WINEDEBUG=+all of the related test program are also appended. The related gdi commands are located in the source at PrintThread.cpp:AddContentToPage()
To print start the app, press <STRG-N>, enter 7 then enter <return> and <STRG-P>
Content of appended testcase.zip
GdiPrintSample-bin.zip GdiPrintSample-patched.zip output-windows.pdf output-wine.pdf wine_debug.bz2
http://bugs.winehq.org/show_bug.cgi?id=28979
--- Comment #1 from Ralf Habacker ralf.habacker@freenet.de 2011-11-03 07:45:15 CDT --- Created attachment 37269 --> http://bugs.winehq.org/attachment.cgi?id=37269 windows output
http://bugs.winehq.org/show_bug.cgi?id=28979
--- Comment #2 from Ralf Habacker ralf.habacker@freenet.de 2011-11-03 07:48:02 CDT --- Created attachment 37270 --> http://bugs.winehq.org/attachment.cgi?id=37270 wine output
the resulting output pdf is to big for uploading, so there is a screenshot
http://bugs.winehq.org/show_bug.cgi?id=28979
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |minor
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru 2011-11-03 09:38:00 CDT --- http://bugs.winehq.org/page.cgi?id=fields.html#bug_severity
http://bugs.winehq.org/show_bug.cgi?id=28979
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |printing
http://bugs.winehq.org/show_bug.cgi?id=28979
Ralf Habacker ralf.habacker@freenet.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #37269|0 |1 is obsolete| |
--- Comment #4 from Ralf Habacker ralf.habacker@freenet.de 2011-11-04 03:20:40 CDT --- Created attachment 37284 --> http://bugs.winehq.org/attachment.cgi?id=37284 windows output (updated)
http://bugs.winehq.org/show_bug.cgi?id=28979
Ralf Habacker ralf.habacker@freenet.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #37270|0 |1 is obsolete| |
--- Comment #5 from Ralf Habacker ralf.habacker@freenet.de 2011-11-04 03:22:00 CDT --- Created attachment 37285 --> http://bugs.winehq.org/attachment.cgi?id=37285 wine output 1 (updated)
This output is generated when the app is build in release mode
http://bugs.winehq.org/show_bug.cgi?id=28979
--- Comment #6 from Ralf Habacker ralf.habacker@freenet.de 2011-11-04 03:22:57 CDT --- Created attachment 37286 --> http://bugs.winehq.org/attachment.cgi?id=37286 wine output 2 (updated)
This output is generated when the application is build in debug mode
http://bugs.winehq.org/show_bug.cgi?id=28979
--- Comment #7 from Ralf Habacker ralf.habacker@freenet.de 2011-11-04 03:23:26 CDT --- Created attachment 37287 --> http://bugs.winehq.org/attachment.cgi?id=37287 executable (release build)
http://bugs.winehq.org/show_bug.cgi?id=28979
--- Comment #8 from Ralf Habacker ralf.habacker@freenet.de 2011-11-04 03:26:08 CDT --- Created attachment 37288 --> http://bugs.winehq.org/attachment.cgi?id=37288 source with cmake build system
http://bugs.winehq.org/show_bug.cgi?id=28979
--- Comment #9 from Ralf Habacker ralf.habacker@freenet.de 2011-11-04 03:29:40 CDT --- Because of the upload limit I refactored the testcase and uploaded the new output, executable and source.
http://bugs.winehq.org/show_bug.cgi?id=28979
--- Comment #10 from Ralf Habacker ralf.habacker@freenet.de 2011-11-04 03:41:57 CDT --- (In reply to comment #3)
This testcase has been submitted while hinting for a wine printing problem in a commercial application http://www.gausz.de. which is used as printing backend for a gis information portal located at http://planauskunft.rwe.com for a big german power supplier.
The still unsolved color problem is that the backend prints white pixels on a white background, which means in fact there is nothing printed, which I would say is a "loss of functionality".
Because there seems to be a color mapping problem in wine with monochrome bitmaps the chance is good, that our still existing problem may be affected in any way by this bug.
http://bugs.winehq.org/show_bug.cgi?id=28979
--- Comment #11 from Austin English austinenglish@gmail.com 2011-11-04 12:19:40 CDT --- Did this work in older versions of wine? The DIB engine work may be related..
http://bugs.winehq.org/show_bug.cgi?id=28979
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bfb41db3a2d6307513536cd0551 | |f91912f226e59 Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #12 from Alexandre Julliard julliard@winehq.org 2011-11-04 12:20:20 CDT --- Fixed.
http://bugs.winehq.org/show_bug.cgi?id=28979
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |gdi32
http://bugs.winehq.org/show_bug.cgi?id=28979
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org 2011-11-04 14:14:52 CDT --- Closing bugs fixed in 1.3.32.