http://bugs.winehq.org/show_bug.cgi?id=34942
Bug #: 34942 Summary: WinLaunch 0.4.6.1 (OSX Style free Launcher) needs support for WIC encoder "InterlaceOption" option (property bag) Product: Wine Version: 1.7.6 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: windowscodecs AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net Classification: Unclassified
Hello folks,
continuation of bug 34911
Prerequisite: 'winetricks -q dotnet40'
If you switch themes/save settings the app displays a message box "Error HRESULT E_FAIL has been returned from a call to a COM component."
--- snip --- $ WINEDEBUG=+tid,+seh,+loaddll,+process,+wincodecs wine ./WinLaunch.exe
log.txt 2>&1
... 002b:trace:wincodecs:PngEncoder_Initialize (0x90c18e8,0x9e6de08,2) 002b:trace:wincodecs:PngEncoder_CreateNewFrame (0x90c18e8,0x33e834,0x33e830) 002b:trace:wincodecs:PngEncoder_AddRef (0x90c18e8) refcount=2 002b:trace:wincodecs:PropertyBag_Write (0x5815010,1,0x33e74c,0x33e76c) 002b:fixme:wincodecs:PropertyBag_Write Application tried to set the unknown option L"InterlaceOption". 002b:trace:seh:raise_exception code=e0434352 flags=1 addr=0x7b83a8bf ip=7b83a8bf tid=002b 002b:trace:seh:raise_exception info[0]=80004005 002b:trace:seh:raise_exception info[1]=00000000 002b:trace:seh:raise_exception info[2]=00000000 002b:trace:seh:raise_exception info[3]=00000000 002b:trace:seh:raise_exception info[4]=79140000 002b:trace:seh:raise_exception eax=7b8268f1 ebx=7b8ba000 ecx=80004005 edx=0033e5a4 esi=0033e64c edi=0012c750 002b:trace:seh:raise_exception ebp=0033e5e8 esp=0033e584 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00200283 ... --- snip ---
MSDN info here: http://msdn.microsoft.com/en-us/library/windows/desktop/ee719871%28v=vs.85%2... (Encoder Options/Usage).
Source: http://source.winehq.org/git/wine.git/blob/4a5bc1375ee446a9aec04cc3f39ee6ac2...
--- snip --- 1596 static HRESULT WINAPI PngEncoder_CreateNewFrame(IWICBitmapEncoder *iface, 1597 IWICBitmapFrameEncode **ppIFrameEncode, IPropertyBag2 **ppIEncoderOptions) 1598 { 1599 PngEncoder *This = impl_from_IWICBitmapEncoder(iface); 1600 HRESULT hr; 1601 TRACE("(%p,%p,%p)\n", iface, ppIFrameEncode, ppIEncoderOptions); 1602 1603 EnterCriticalSection(&This->lock); 1604 1605 if (This->frame_count != 0) 1606 { 1607 LeaveCriticalSection(&This->lock); 1608 return WINCODEC_ERR_UNSUPPORTEDOPERATION; 1609 } 1610 1611 if (!This->stream) 1612 { 1613 LeaveCriticalSection(&This->lock); 1614 return WINCODEC_ERR_NOTINITIALIZED; 1615 } 1616 1617 hr = CreatePropertyBag2(NULL, 0, ppIEncoderOptions); 1618 if (FAILED(hr)) 1619 { 1620 LeaveCriticalSection(&This->lock); 1621 return hr; 1622 } 1623 1624 This->frame_count = 1; 1625 1626 LeaveCriticalSection(&This->lock); 1627 1628 IWICBitmapEncoder_AddRef(iface); 1629 *ppIFrameEncode = &This->IWICBitmapFrameEncode_iface; 1630 1631 return S_OK; 1632 } --- snip ---
-> CreatePropertyBag2(NULL, 0, ppIEncoderOptions)
'winetricks -q windowscodecs' works around.
$ sha1sum WinLaunch.zip 5d79fb1d160354a04548fc7bba1a78012800c59c WinLaunch.zip
$ du -sh WinLaunch.zip 20M WinLaunch.zip
$ wine --version wine-1.7.6-273-ga4d8627
Regards
http://bugs.winehq.org/show_bug.cgi?id=34942
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download URL| |http://winlaunch.bplaced.ne | |t/
http://bugs.winehq.org/show_bug.cgi?id=34942
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2013-11-19 14:42:50 CST --- Created attachment 46579 --> http://bugs.winehq.org/attachment.cgi?id=46579 patch
Does this help?
http://bugs.winehq.org/show_bug.cgi?id=34942
--- Comment #2 from Anastasius Focht focht@gmx.net 2013-11-19 17:28:24 CST --- Hello Vincent,
yes ... with that patch it goes further and now shows a dialog box "Value does not fall within expected range". Though this might not be directly related.
--- snip --- ... 0009:trace:wincodecs:PngEncoder_CreateInstance ((nil),{00000103-a8f2-4877-ba0a-fd2b6645fb94},0x33e6cc) 0009:trace:wincodecs:PngEncoder_QueryInterface (0x5809dd0,{00000103-a8f2-4877-ba0a-fd2b6645fb94},0x33e6cc) 0009:trace:wincodecs:PngEncoder_AddRef (0x5809dd0) refcount=2 0009:trace:wincodecs:PngEncoder_Release (0x5809dd0) refcount=1 0009:trace:wincodecs:ClassFactoryImpl_Release (0x7947e78) refcount=0 0009:trace:wincodecs:BitmapEncoderInfo_Release (0x589a7f0) refcount=2 0009:trace:wincodecs:BitmapEncoderInfo_Release (0x589a7f0) refcount=1 0009:trace:wincodecs:ComponentEnum_Release (0x7947920) refcount=0 0009:trace:wincodecs:BitmapEncoderInfo_Release (0x16c628) refcount=0 0009:trace:wincodecs:BitmapEncoderInfo_Release (0x15d6b8) refcount=0 0009:trace:wincodecs:BitmapEncoderInfo_Release (0x589a7f0) refcount=0 0009:trace:wincodecs:BitmapEncoderInfo_Release (0x15fe48) refcount=0 0009:trace:wincodecs:BitmapEncoderInfo_Release (0x203f08) refcount=0 0009:trace:wincodecs:ComponentFactory_Release (0x16b588) refcount=0 0009:trace:wincodecs:PngEncoder_Initialize (0x5809dd0,0x1af968,2) 0009:trace:wincodecs:PngEncoder_CreateNewFrame (0x5809dd0,0x33e834,0x33e830) 0009:trace:wincodecs:PngEncoder_AddRef (0x5809dd0) refcount=2 0009:trace:wincodecs:PropertyBag_Write (0x1aefe8,1,0x33e74c,0x33e76c) 0009:trace:wincodecs:PngFrameEncode_Initialize (0x5809dd4,0x1aefe8) 0009:trace:wincodecs:PropertyBag_Read (0x1aefe8,1,0x33e614,(nil),0x33e600,0x33e5fc) 0009:trace:wincodecs:PngFrameEncode_SetSize (0x5809dd4,238,139) 0009:trace:wincodecs:PngFrameEncode_SetResolution (0x5809dd4,72.01,72.01) 0009:trace:wincodecs:WICSetEncoderFormat_Proxy 0x5806fdc,(nil),0x5809dd4,0x33e75c 0009:trace:wincodecs:BitmapImpl_GetPixelFormat (0x5806fdc,0x33e698) 0009:trace:wincodecs:PngFrameEncode_SetPixelFormat (0x5809dd4,{6fddc324-4e03-4bfe-b185-3d77768dc90f}) 0009:trace:wincodecs:BitmapImpl_AddRef (0x5806fdc) refcount=6 0009:trace:wincodecs:PngFrameEncode_WriteSource (0x5809dd4,0x5806fdc,0x33e814) 0009:trace:wincodecs:BitmapImpl_GetPixelFormat (0x5806fdc,0x33e5fc) 0009:trace:seh:raise_exception code=e0434352 flags=1 addr=0x7b83a8bf ip=7b83a8bf tid=0009 0009:trace:seh:raise_exception info[0]=80070057 0009:trace:seh:raise_exception info[1]=00000000 0009:trace:seh:raise_exception info[2]=00000000 0009:trace:seh:raise_exception info[3]=00000000 0009:trace:seh:raise_exception info[4]=79140000 0009:trace:seh:raise_exception eax=7b8268f1 ebx=7b8ba000 ecx=79140000 edx=0033e618 esi=0033e6ac edi=0012e018 0009:trace:seh:raise_exception ebp=0033e648 esp=0033e5e4 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00200287 --- snip ---
The 80070057 comes from:
--- snip --- 002b:Call windowscodecs.IWICBitmapFrameEncode_WriteSource_Proxy(001b852c,0582e1c4,0033e7d4) ret=05eb1cdb 002b:trace:wincodecs:PngFrameEncode_WriteSource (0x1b852c,0x582e1c4,0x33e7d4) 002b:trace:wincodecs:BitmapImpl_GetPixelFormat (0x582e1c4,0x33e58c) 002b:Ret windowscodecs.IWICBitmapFrameEncode_WriteSource_Proxy() retval=80070057 ret=05eb1cdb --- snip ---
Regards
http://bugs.winehq.org/show_bug.cgi?id=34942
--- Comment #3 from Vincent Povirk madewokherd@gmail.com 2013-11-20 10:42:20 CST --- Odd, I guess the width of the rectangle passed to WriteSource doesn't match the size of the PngFrameEncode. Can you check the size of prc in PngFrameEncode_WriteSource?
It could also be interesting to know the size of the bitmap source.
http://bugs.winehq.org/show_bug.cgi?id=34942
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=34942
--- Comment #4 from AdeC adec2010@hotmail.co.uk 2013-11-22 16:05:56 CST --- Created attachment 46613 --> http://bugs.winehq.org/attachment.cgi?id=46613 Log file of Error
http://bugs.winehq.org/show_bug.cgi?id=34942
AdeC adec2010@hotmail.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adec2010@hotmail.co.uk
http://bugs.winehq.org/show_bug.cgi?id=34942
--- Comment #5 from AdeC adec2010@hotmail.co.uk --- Same problem in 1.7.15
http://bugs.winehq.org/show_bug.cgi?id=34942
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |3ccaad8b41fe9514b95aa7610a1 | |b33bb745b3c7d Status|NEW |RESOLVED URL|http://winlaunch.bplaced.ne |http://sourceforge.net/proj |t/ |ects/winlaunch/files/WinLau | |nch.zip/download Resolution|--- |FIXED
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit http://source.winehq.org/git/wine.git/commitdiff/3ccaad8b41fe9514b95aa7610a1...
Thanks Vincent
Regards
https://bugs.winehq.org/show_bug.cgi?id=34942
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.21.
https://bugs.winehq.org/show_bug.cgi?id=34942
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://sourceforge.net/proj |https://web.archive.org/web |ects/winlaunch/files/WinLau |/20210726125551/https://jzt |nch.zip/download |kft.dl.sourceforge.net/proj | |ect/winlaunch/WinLaunch.zip