https://bugs.winehq.org/show_bug.cgi?id=55486
Bug ID: 55486 Summary: Finale 27 printing mangled Product: Wine Version: 8.14 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wineps.drv Assignee: wine-bugs@winehq.org Reporter: davech@t-online.de Distribution: ---
Created attachment 75044 --> https://bugs.winehq.org/attachment.cgi?id=75044 screenshot from program
Printing from Finale 27 (https://www.finalemusic.com/) using the wine ps driver severely mangles the output (example attached).
This is reproducible on all wine versions from 8.0 The output from wine 7.0.2 is correct
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #1 from davech@t-online.de --- Created attachment 75045 --> https://bugs.winehq.org/attachment.cgi?id=75045 screenshot from program
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #2 from davech@t-online.de --- Created attachment 75046 --> https://bugs.winehq.org/attachment.cgi?id=75046 printed output
https://bugs.winehq.org/show_bug.cgi?id=55486
davech@t-online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #75045|0 |1 is obsolete| |
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #3 from davech@t-online.de --- Created attachment 75047 --> https://bugs.winehq.org/attachment.cgi?id=75047 screenshot of printed output
for the benefit of those who don't have the Maestro font installed
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #4 from Rafał Mużyło galtgendo@o2.pl --- ...I'm not sure if it would be helpful for the dev, but just so we're comparing the same thing, could/would you also attach the correct ps output ?
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #5 from davech@t-online.de --- Created attachment 75048 --> https://bugs.winehq.org/attachment.cgi?id=75048 correct output (wine 7.0.2)
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #6 from davech@t-online.de --- Created attachment 75049 --> https://bugs.winehq.org/attachment.cgi?id=75049 screenshot of correct output
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #7 from davech@t-online.de --- Wine was compiled from source on a Gentoo Linux system using the standard Gentoo ebuild
https://bugs.winehq.org/show_bug.cgi?id=55486
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |printing, regression
https://bugs.winehq.org/show_bug.cgi?id=55486
davech@t-online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |davech@t-online.de
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #8 from Rafał Mużyło galtgendo@o2.pl --- ...well, it seems there's no dodging it: attach console output with 'psdrv' channel.
The ps output is a bit weird.
For one, older version applies part of the scaling at a different point, but that's not the buggy part, following is:
-396 1996 moveto -3496 1996 lineto +99 500 moveto +69 1400136549 lineto
(those are diff lines; the 4x reduction is that scaling mentioned above, but that overflow (?) is the bug; why does it affect one command, but not the other ?)
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #9 from davech@t-online.de --- Created attachment 75054 --> https://bugs.winehq.org/attachment.cgi?id=75054 console output with WINEDEBUG=+psdrv
https://bugs.winehq.org/show_bug.cgi?id=55486
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #10 from Piotr Caban piotr.caban@gmail.com --- I can reproduce the problem on Gentoo. For some reason x86_64-w64-mingw32-gcc optimizes the loop out in hmf_proc -> EMR_POLYDRAW16 case. Because of that only first element of the pts table is initialized.
If wineps is compiled with -O0 flag printing works correctly. I don't know yet what is causing it.
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #11 from Piotr Caban piotr.caban@gmail.com --- The relevant code is compiled to: 56db: 44 8b 4b 18 mov 0x18(%rbx),%r9d 56df: 45 85 c9 test %r9d,%r9d 56e2: 74 0e je 56f2 <hmf_proc+0x1562> 56e4: 0f bf 43 1c movswl 0x1c(%rbx),%eax 56e8: 89 45 00 mov %eax,0x0(%rbp) 56eb: 0f bf 43 1e movswl 0x1e(%rbx),%eax 56ef: 89 45 04 mov %eax,0x4(%rbp) 56f2: 44 89 c8 mov %r9d,%eax 56f5: 48 8b 4f 20 mov 0x20(%rdi),%rcx 56f9: 48 89 ea mov %rbp,%rdx 56fc: 4c 8d 44 83 1c lea 0x1c(%rbx,%rax,4),%r8 5701: e8 6a a9 ff ff call 70 <poly_draw>
gcc version 12.3.1 20230526 (Gentoo 12.3.1_p20230526 p2)
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #12 from Piotr Caban piotr.caban@gmail.com --- I've sent a patch that printing: https://gitlab.winehq.org/wine/wine/-/merge_requests/3841
https://bugs.winehq.org/show_bug.cgi?id=55486
--- Comment #13 from davech@t-online.de --- Wine 8.16 fixed this
https://bugs.winehq.org/show_bug.cgi?id=55486
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |4d26d30574b2162eabde73140ab | |0fac18cfb46ff Resolution|--- |FIXED
--- Comment #14 from Piotr Caban piotr.caban@gmail.com --- Marking as fixed.
https://bugs.winehq.org/show_bug.cgi?id=55486
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.17.