https://bugs.winehq.org/show_bug.cgi?id=38073
Bug ID: 38073 Summary: GdipDrawPath graphics object has no HDC ( graphical glitches in Adobe Premiere Pro) Product: Wine Version: 1.7.36 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdiplus Assignee: wine-bugs@winehq.org Reporter: fincer89@hotmail.com Distribution: ---
Created attachment 50722 --> https://bugs.winehq.org/attachment.cgi?id=50722 gdiplus trace log sample (Adobe Premiere Pro CS3)
Current GDIPlus library functionality makes some program windows to be rendered in a wrong way or not rendered at all (black areas). One affected program is Adobe Premiere Pro CS3. See sample images provided.
Terminal output (without tracing):
fixme:gdiplus:GdipDrawPath graphics object has no HDC fixme:gdiplus:GdipDrawPath graphics object has no HDC fixme:gdiplus:GdipDrawPath graphics object has no HDC fixme:gdiplus:GdipDrawPath graphics object has no HDC
Trace log is provided as an attachment, too.
Some practical examples described below.
Bug example 1:
If you right click to get a popup settings window in the program, the window is black until you move your cursor on it. Cursor movement makes features such as texts inside the popup window rendered correctly (though the popup window borders still stay black). This is repeatable every time.
Bug example 2:
If you shrink the main application window (do not minimize it to the toolbar) and then maximize it again, some features which were previously rendered correctly, are now either unrendered (black areas) or rendered in a wrong way.
Bug example 3:
Wrong GUI rendering leads also to partially or completely disabled functionality in Premiere Pro, such as:
Video & audio tracks are not rendered correctly in the timeline sequence. You can't see important information of your project audio/video tracks on the left side as you normally would do, thus preventing you to change any settings relevant to the tracks themselves.
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #1 from Pekka Helenius fincer89@hotmail.com --- Created attachment 50723 --> https://bugs.winehq.org/attachment.cgi?id=50723 Premiere Pro CS3, grapgical glitches (gdiplus), example 1
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #2 from Pekka Helenius fincer89@hotmail.com --- Created attachment 50724 --> https://bugs.winehq.org/attachment.cgi?id=50724 Premiere Pro CS3, grapgical glitches (gdiplus), example 2
https://bugs.winehq.org/show_bug.cgi?id=38073
Pekka Helenius fincer89@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|GdipDrawPath graphics |GdipDrawPath graphics |object has no HDC ( |object has no HDC |graphical glitches in Adobe |(graphical glitches in |Premiere Pro) |Adobe Premiere Pro CS3)
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #3 from Pekka Helenius fincer89@hotmail.com --- Created attachment 50725 --> https://bugs.winehq.org/attachment.cgi?id=50725 Premiere Pro CS3, no glitches (as reference to the previous pics)
This screenshot was taken when the program was opened in unmaximized state on Wine. All controls are visible as expected. However, doing *anything* that has an effect on program controls may cause GUI to glitch as seen in previous screenshots (example 1 & 2).
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #4 from Pekka Helenius fincer89@hotmail.com --- gdiplus: Reimplement GdipDrawPath ::
https://www.winehq.org/pipermail/wine-patches/2013-February/122317.html
https://bugs.winehq.org/show_bug.cgi?id=38073
wine@kalvdans.no-ip.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@kalvdans.no-ip.org
https://bugs.winehq.org/show_bug.cgi?id=38073
Jeff D. Hanson jhansonxi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jhansonxi@gmail.com
--- Comment #5 from Jeff D. Hanson jhansonxi@gmail.com --- I believe AutoTRAX Design Express 6 is affected by this bug:
fixme:gdiplus:GdipDrawPath graphics object has no HDC
Has similar symptoms. Native gdiplus results in an error "Application Failure: Parameter is not valid" and abort.
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #6 from Jeff D. Hanson jhansonxi@gmail.com --- Created attachment 53349 --> https://bugs.winehq.org/attachment.cgi?id=53349 AutoTRAX main window screenshot
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #7 from Jeff D. Hanson jhansonxi@gmail.com --- Note that AutoTRAX has a trial download available: https://www.kov.com/Download
https://bugs.winehq.org/show_bug.cgi?id=38073
Andrew Certain certain@thecertains.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |certain@thecertains.com
--- Comment #8 from Andrew Certain certain@thecertains.com ---
This behavior also appears on Photo Supreme. A free trial version is available: http://www.idimager.com/WP/?page_id=20
Happy to attach screen shots or perform other troubleshooting if it would be helpful.
https://bugs.winehq.org/show_bug.cgi?id=38073
cwillu@cwillu.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cwillu@cwillu.com
--- Comment #9 from cwillu@cwillu.com --- Similar bug using GenuTax (free download at http://www.genutax.ca); makes it unusable.
https://bugs.winehq.org/show_bug.cgi?id=38073
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #10 from Fabian Maurer dark.shadow4@web.de --- Created attachment 55524 --> https://bugs.winehq.org/attachment.cgi?id=55524 Inperformant fix for the "graphics object has no HDC" issue
Also affects a program called "flowgorithm".
However, I created a patch, while I assume it's not very performant it solves the issue for me. Can someone try i with Adobe and the other programs it appears in?
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #11 from Fincer fincer89@hotmail.com --- Created attachment 55532 --> https://bugs.winehq.org/attachment.cgi?id=55532 Wine 1.9.17 32-bit with HDC patch + Adobe Premiere Pro CS3
Tested your patch with wine 1.9.17 + Adobe Premiere Pro CS3 (x86). I got no terminal complaints about HDC. There are still minor glitches visible but the situation has somewhat improved, though (see attachment).
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #12 from Fincer fincer89@hotmail.com --- P.S. Compared to native GDIPlus, with this patch it takes longer to start Premiere Pro CS3, however.
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #13 from Fabian Maurer dark.shadow4@web.de --- Yeah, it's slower since it renders into an temporary HDC and then blends the result onto the image. Thing is, the function for that uses "GdipBitmapGetPixel" and "GdipBitmapSetPixel" internally, so it's not too performant. But it looks a lot better.
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #14 from Vincent Povirk madewokherd@gmail.com --- Created attachment 55534 --> https://bugs.winehq.org/attachment.cgi?id=55534 partial implementation
Here's a WIP to show what it will eventually look like. I wanted to get dash patterns in there before submitting it.
https://bugs.winehq.org/show_bug.cgi?id=38073
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #15 from Fabian Maurer dark.shadow4@web.de --- Does this WIP already work? Because it crashes the program for me.
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #16 from Vincent Povirk madewokherd@gmail.com --- It's missing features, but I don't expect it to crash.
https://bugs.winehq.org/show_bug.cgi?id=38073
katsunori.kumatani@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katsunori.kumatani@gmail.co | |m
--- Comment #17 from katsunori.kumatani@gmail.com --- On wine 1.9.21, this works fine. But it has no anti-aliasing, is that a missing feature or unrelated?
Shouldn't this bug be marked as NEW by the way?
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #18 from Vincent Povirk madewokherd@gmail.com --- Yes, there's no anti-aliasing in Wine's gdiplus.
https://bugs.winehq.org/show_bug.cgi?id=38073
Fincer fincer89@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fincer89@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=38073
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |download CC| |xerox.xerox2000x@gmail.com Ever confirmed|0 |1
--- Comment #19 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Vincent Povirk from comment #14)
Created attachment 55534 [details] partial implementation
Here's a WIP to show what it will eventually look like. I wanted to get dash patterns in there before submitting it.
Hi, isn`t this bug already fixed? AFAICT the fixme:gdiplus:GdipDrawPath graphics object has no HDC is not even present anymore in current source of gdiplus
I tried flowgorithm (from comment 10) and i don`t see this issue, though i see another crash. Could you retest (preferably Adobe Premiere Pro CS3). I set this bug as confirmed as several comments indicate it was present in other programs as well
https://bugs.winehq.org/show_bug.cgi?id=38073
--- Comment #20 from Andrew Certain certain@thecertains.com ---
I tried the latest 64-bit version of Photo Supreme Server and it no longer displays this bug (still doesn't run, though).
https://bugs.winehq.org/show_bug.cgi?id=38073
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #21 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Andrew Certain from comment #20)
I tried the latest 64-bit version of Photo Supreme Server and it no longer displays this bug (still doesn't run, though).
Thanks for testing. I tried it too from http://trial.idimager.com/setup64_PhotoSupremePostgreSQL_V4.exe and it doesn`t run indeed, but it`s not due to gdiplus issue ( tried native gdiplus, didn`t help) You could open a new bugreport for that if you want.
Anyway, i think the initial issue is fixed, and new follow-up issues should be tracked by new bugreports
https://bugs.winehq.org/show_bug.cgi?id=38073
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #22 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.8.