https://bugs.winehq.org/show_bug.cgi?id=39453
Bug ID: 39453 Summary: Graphs not rendering using gdiplus Product: Wine Version: 1.7.52 Hardware: x86 OS: other Status: UNCONFIRMED Severity: minor Priority: P2 Component: gdiplus Assignee: wine-bugs@winehq.org Reporter: ldv1452@gmail.com
Created attachment 52566 --> https://bugs.winehq.org/attachment.cgi?id=52566 Comparison builtin gdiplus vs native gdiplus
Certain graphs (e.g. box plots) and graph components (e.g. axes) are not rendered while using builtin gdiplus. This happens irrespective of the OS and is solved when using native gdiplus (see attached examples).
The problem can be observed using this software:
https://sourceforge.net/projects/fruits/files/FRUITS2_installer.msi/download
a file needs to be loaded and run (by pressing Estimate in the software) to generate the graphs:
https://sourceforge.net/projects/fruits/files/simple_CN_model.frt/download
I created the software (using Visual Studio). If requested I can provide the source code.
https://bugs.winehq.org/show_bug.cgi?id=39453
ldv1452@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #52566|Comparison builtin gdiplus |Output using native gdiplus description|vs native gdiplus |
https://bugs.winehq.org/show_bug.cgi?id=39453
ldv1452@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #52566|0 |1 is obsolete| |
https://bugs.winehq.org/show_bug.cgi?id=39453
--- Comment #1 from ldv1452@gmail.com --- Created attachment 52567 --> https://bugs.winehq.org/attachment.cgi?id=52567 Comparison of output using builtin gdiplus vs native gdiplus
https://bugs.winehq.org/show_bug.cgi?id=39453
--- Comment #2 from Vincent Povirk madewokherd@gmail.com --- Are you by any chance drawing lines/curves onto Bitmap objects? That doesn't work for most pixel formats currently (it may work for RGB formats with no alpha channel).
https://bugs.winehq.org/show_bug.cgi?id=39453
--- Comment #3 from ldv1452@gmail.com --- (In reply to Vincent Povirk from comment #2)
Are you by any chance drawing lines/curves onto Bitmap objects? That doesn't work for most pixel formats currently (it may work for RGB formats with no alpha channel).
Do you mean superimposing the lines on a bitmap? If so, that is not the case. I'm using Visual Studio functions to draw different graph types (e.g. box plots, column graphs) in a very similar way to what is done using Excel.
https://bugs.winehq.org/show_bug.cgi?id=39453
--- Comment #4 from Vincent Povirk madewokherd@gmail.com --- Then, you're not using gdiplus directly but using some intermediate library?
Does this patch have any effect? https://www.winehq.org/pipermail/wine-patches/2013-February/122317.html
https://bugs.winehq.org/show_bug.cgi?id=39453
--- Comment #5 from ldv1452@gmail.com --- (In reply to Vincent Povirk from comment #4)
Then, you're not using gdiplus directly but using some intermediate library?
Does this patch have any effect? https://www.winehq.org/pipermail/wine-patches/2013-February/122317.html
Indeed: System.Web.DataVisualization.dll. However, the issues are only solved if I use the native gdiplus.
As for the patch, I would not know how to apply it! I developed the software for a specific scientific purpose and my programming knowledge is limited (working with Visual Basic).
https://bugs.winehq.org/show_bug.cgi?id=39453
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |https://sourceforge.net/pro | |jects/fruits/files/FRUITS2_ | |installer.msi/download
--- Comment #6 from Austin English austinenglish@gmail.com --- (In reply to ldv1452 from comment #5)
(In reply to Vincent Povirk from comment #4)
Then, you're not using gdiplus directly but using some intermediate library?
Does this patch have any effect? https://www.winehq.org/pipermail/wine-patches/2013-February/122317.html
Indeed: System.Web.DataVisualization.dll. However, the issues are only solved if I use the native gdiplus.
As for the patch, I would not know how to apply it! I developed the software for a specific scientific purpose and my programming knowledge is limited (working with Visual Basic).
http://wiki.winehq.org/Patching
https://bugs.winehq.org/show_bug.cgi?id=39453
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #7 from winetest@luukku.com --- Seems to require dotnet45 or at least it starts with that version.
I have opened 3 test files (1,2 and 3) and pressed estimate, it complains with one of them something being wrong, but the 2 other examples work.
It's really hard to tell if anything is missing. I don't get a match with the picture attached here earlier. Not with builtin or native version in the picutre.
Can you test newer wine to confirm what you see?
Example 3 was too complex to show for some reason.
wine 1.9.21-git.
https://bugs.winehq.org/show_bug.cgi?id=39453
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com Keywords| |source
https://bugs.winehq.org/show_bug.cgi?id=39453
David Kahurani k.kahurani@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |k.kahurani@gmail.com
--- Comment #8 from David Kahurani k.kahurani@gmail.com --- Created attachment 74581 --> https://bugs.winehq.org/attachment.cgi?id=74581 X and Y offsets to GdipTranslateWorldTransform
https://bugs.winehq.org/show_bug.cgi?id=39453
--- Comment #9 from David Kahurani k.kahurani@gmail.com --- It appears to me that the issue is still there.
I injected into this process on Windows 7, hooked onto the API 'GdipTranslateWorldTransform' and dumped the arguments. This is because I see the application requesting suspicious transform while tracing on Wine. The dump is attached and as can be seen, the requested transforms are not suspicious.
Meanwhile, tracing on Wine gives some suspicious transform requests like
0024:trace:gdiplus:GdipCreateMatrix (0032F28C) 0024:trace:gdiplus:GdipGetWorldTransform (00015DB8, 0179D328) 0024:trace:gdiplus:GdipGetWorldTransform 1.000000, 0.000000, -0.000000, 1.000000, 0.000000, 0.000000 0024:trace:gdiplus:GdipTranslateWorldTransform (00015DB8, 335553.69, 16.00, 0) 0024:trace:gdiplus:GdipTranslateMatrix (00015DFC, 335553.69, 16.00, 0) 0024:trace:gdiplus:GdipCreateRegion 0032F290 0024:trace:gdiplus:GdipCreateRegion => 0179D348
Essentially, this process is literally requesting to draw in space.
https://bugs.winehq.org/show_bug.cgi?id=39453
--- Comment #10 from David Kahurani k.kahurani@gmail.com --- Woops, I posted in the wrong thread :-(
https://bugs.winehq.org/show_bug.cgi?id=39453
Bartosz gang65@poczta.onet.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gang65@poczta.onet.pl
--- Comment #11 from Bartosz gang65@poczta.onet.pl --- In logs there are fixme warnings:
fixme:gdiplus:GdipWidenPath unimplemented pen alignment 1 (PenAlignmentInset)
More information: https://learn.microsoft.com/en-us/windows/win32/api/gdipluspen/nf-gdipluspen...
Do you think it could be the case?
https://bugs.winehq.org/show_bug.cgi?id=39453
--- Comment #12 from Bartosz gang65@poczta.onet.pl --- Created attachment 75178 --> https://bugs.winehq.org/attachment.cgi?id=75178 How it looks like with Wine 8.16
https://bugs.winehq.org/show_bug.cgi?id=39453
Jeff Smith whydoubt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |whydoubt@gmail.com
--- Comment #13 from Jeff Smith whydoubt@gmail.com --- As far as I can see, the issue has been fixed. When I ran it, I was able to see the lines that were missing in the original comparison image (the box plots on the left graph, and the axes on both graphs).
https://bugs.winehq.org/show_bug.cgi?id=39453
Esme Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com