http://bugs.winehq.org/show_bug.cgi?id=24615
Summary: Can't open or save assembly files in SolidWorks Product: Wine Version: 1.3.4 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdiplus AssignedTo: wine-bugs@winehq.org ReportedBy: denis.bonnenfant@diderot.org
Assembly files can't be opened (invalid file format) or saved in SolidWorks
Regression tests shows that problem comes from gdiplus :
denis@bureau:~/wine-git$ git bisect badc8a48f237e43174673fa3686ebe99e42f6a0d8a4 is the first bad commit commit c8a48f237e43174673fa3686ebe99e42f6a0d8a4 Author: Vincent Povirk vincent@codeweavers.com Date: Thu Sep 30 16:07:53 2010 -0500
gdiplus: Don't create a DIB section for non-alpha or reference bitmaps.
http://bugs.winehq.org/show_bug.cgi?id=24615
denis bonnenfant denis.bonnenfant@diderot.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=24615
--- Comment #1 from denis bonnenfant denis.bonnenfant@diderot.org 2010-10-03 16:57:40 CDT --- Setting gdiplus to native solves the problem.
http://bugs.winehq.org/show_bug.cgi?id=24615
--- Comment #2 from Vincent Povirk madewokherd@gmail.com 2010-10-03 18:00:41 CDT --- Any terminal output?
http://bugs.winehq.org/show_bug.cgi?id=24615
--- Comment #3 from denis bonnenfant denis.bonnenfant@diderot.org 2010-10-04 02:47:48 CDT ---
This is the related part of the log, WINEDEBUG=-all,+gdiplus
Here I'm clicking on the assembly file icon<<<
trace:gdiplus:GdiplusStartup 0x32dd54 0x32dd40 (nil) trace:gdiplus:GdiplusStartup GdiplusStartupInput 1 (nil) 0 0 fixme:gdiplus:GdipCreateBitmapFromGdiDib (0x1f6b0020, 0x1f6b0048, 0x32dd0c) - partially implemented trace:gdiplus:GdipCreateBitmapFromScan0 640 480 -2560 0x22009 0x1f7db648 0x32dd0c trace:gdiplus:GdipCreateBitmapFromScan0 <-- 0x11a5ef10 trace:gdiplus:GdipGetImageEncodersSize 0x32dd18 0x32dd14 trace:gdiplus:GdipGetImageEncoders 2 152 0x1d3c6bf0 trace:gdiplus:GdipSaveImageToStream 0x11a5ef10 0x12742bc0 0x32dd58 (nil) trace:gdiplus:GdipGetImageWidth 0x11a5ef10 0x32dc78 trace:gdiplus:GdipGetImageWidth returning 640 trace:gdiplus:GdipGetImageHeight 0x11a5ef10 0x32dc74 trace:gdiplus:GdipGetImageHeight returning 480 trace:gdiplus:GdipBitmapLockBits 0x11a5ef10 0x32dc64 1 0x22009 0x32dc4c
Popup window "invalid file format" is displayed<<
and saving a new file :
trace:gdiplus:GdiplusStartup 0x32d9c0 0x32d9ac (nil) trace:gdiplus:GdiplusStartup GdiplusStartupInput 1 (nil) 0 0 fixme:gdiplus:GdipCreateBitmapFromGdiDib (0x20a40020, 0x20a40048, 0x32d978) - partially implemented trace:gdiplus:GdipCreateBitmapFromScan0 640 480 -2560 0x22009 0x20b6b648 0x32d978 trace:gdiplus:GdipCreateBitmapFromScan0 <-- 0x125193a0 trace:gdiplus:GdipGetImageEncodersSize 0x32d984 0x32d980 trace:gdiplus:GdipGetImageEncoders 2 152 0x201b92d0 trace:gdiplus:GdipSaveImageToStream 0x125193a0 0x12562670 0x32d9c4 (nil) trace:gdiplus:GdipGetImageWidth 0x125193a0 0x32d8e4 trace:gdiplus:GdipGetImageWidth returning 640 trace:gdiplus:GdipGetImageHeight 0x125193a0 0x32d8e0 trace:gdiplus:GdipGetImageHeight returning 480 trace:gdiplus:GdipBitmapLockBits 0x125193a0 0x32d8d0 1 0x22009 0x32d8b8
http://bugs.winehq.org/show_bug.cgi?id=24615
--- Comment #4 from Vincent Povirk madewokherd@gmail.com 2010-11-09 14:30:43 CST --- This sounds like a locking issue, as there's no GdipBitmapUnlockBits call following GdipBitmapLockBits. That would mean that the bitmap is already locked at that point and shouldn't be.
Normally I'd ask for the full +gdiplus log, but I have a change to send today that I'm hoping will fix most of these regressions.
http://bugs.winehq.org/show_bug.cgi?id=24615
--- Comment #5 from Vincent Povirk madewokherd@gmail.com 2010-11-12 10:04:59 CST --- Please retest in Wine master or 1.3.7.
http://bugs.winehq.org/show_bug.cgi?id=24615
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=24615
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |c8a48f237e43174673fa3686ebe | |99e42f6a0d8a4
http://bugs.winehq.org/show_bug.cgi?id=24615
denis bonnenfant denis.bonnenfant@diderot.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #6 from denis bonnenfant denis.bonnenfant@diderot.org 2011-12-11 15:40:35 CST --- Seems to be solved for a while !
http://bugs.winehq.org/show_bug.cgi?id=24615
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2011-12-16 13:29:04 CST --- Closing bugs fixed in 1.3.35.