WineHQ
Bug Tracking Database – Bug 33523

 Bugzilla

 

Last modified: 2021-07-18 03:01:53 UTC  

.NET Framework 3.5 WPF 3.x apps need windowscodecsext.dll.DllGetClassObject

Bug 33523 - .NET Framework 3.5 WPF 3.x apps need windowscodecsext.dll.DllGetClassObject
.NET Framework 3.5 WPF 3.x apps need windowscodecsext.dll.DllGetClassObject
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: windowscodecs
1.5.29
x86 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
https://web.archive.org/web/201908070...
: dotnet, download
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-05-04 10:07 UTC by Anastasius Focht
Modified: 2021-07-18 03:01 UTC (History)
1 user (show)

See Also:
Regression SHA1:
Fixed by SHA1: de8498c781143b934e30671076b975111f377d23
Distribution: ---
Staged patchset:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anastasius Focht 2013-05-04 10:07:01 UTC
Hello folks,

some guys complained about .NET Framework 3.5 WPF 3.x apps not working ... so I looked into it.

Example app: "Adobe Digital Editions 2.0" which requires .NET 3.5 SP1

Prerequisite: clean 32-bit WINEPREFIX and 'winetricks -q dotnet35sp1'

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/Adobe/Adobe Digital Editions 2.0
...
wine ./DigitalEditions.exe
...
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00001388,(nil),0x000b,0x00000104,0x3009b09c,0x5ec5d4): stub
err:eventlog:ReportEventW L"clr20r3"
err:eventlog:ReportEventW L"digitaleditions.exe"
err:eventlog:ReportEventW L"2.0.0.0"
err:eventlog:ReportEventW L"5058357c"
err:eventlog:ReportEventW L"presentationcore"
err:eventlog:ReportEventW L"3.0.0.0"
err:eventlog:ReportEventW L"488f140b"
err:eventlog:ReportEventW L"4975"
err:eventlog:ReportEventW L"159"
err:eventlog:ReportEventW L"system.invalidcastexception"
err:eventlog:ReportEventW L"NIL"
...
Unhandled Exception: System.InvalidCastException: Specified cast is not valid.
   at System.Windows.Media.Imaging.BitmapSource.get_DUCECompatibleMILPtr()
   at System.Windows.Media.Imaging.BitmapSource.UpdateBitmapSourceResource(Channel channel, Boolean skipOnChannelCheck)
   at System.Windows.Media.Imaging.BitmapSource.UpdateResource(Channel channel, Boolean skipOnChannelCheck)
   at System.Windows.Media.Imaging.BitmapSource.AddRefOnChannelCore(Channel channel)
   at System.Windows.Media.Imaging.BitmapSource.System.Windows.Media.Composition.DUCE.IResource.AddRefOnChannel(Channel channel)
   at System.Windows.Media.ImageBrush.AddRefOnChannelCore(Channel channel)
   at System.Windows.Media.Brush.System.Windows.Media.Composition.DUCE.IResource.AddRefOnChannel(Channel channel)
   at System.Windows.Media.RenderData.System.Windows.Media.Composition.DUCE.IResource.AddRefOnChannel(Channel channel)
   at System.Windows.UIElement.RenderContent(RenderContext ctx, Boolean isOnChannel)
...
--- snip ---

Well, that's bug 33384 -> 'winetricks -q windowscodecs'

It goes further but still crashes, now with:

--- snip ---
...
LIBRARY_LOADED
has 1 records
fixme:shell:URL_ParseUrl failed to parse L"System.Web"
fixme:time:GetDynamicTimeZoneInformation (0x145b60) stub!
err:ole:CoInitializeEx Attempt to change threading model of this apartment from apartment threaded to multi-threaded
wine: Call from 0x7b83aa5b to unimplemented function windowscodecsext.dll.DllGetClassObject, aborting
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003ff,(nil),0x0001,0x00000000,0x32bd5c,(nil)): stub
err:eventlog:ReportEventW L".NET Runtime version 2.0.50727.3053 - Unrecoverable system error."
...
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime 2.0 Error Reporting"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00001388,(nil),0x000b,0x000000d2,0x3009b09c,0x5ec5d4): stub
err:eventlog:ReportEventW L"clr20r3"
err:eventlog:ReportEventW L"digitaleditions.exe"
err:eventlog:ReportEventW L"2.0.0.0"
err:eventlog:ReportEventW L"5058357c"
err:eventlog:ReportEventW L"windowsbase"
err:eventlog:ReportEventW L"3.0.0.0"
err:eventlog:ReportEventW L"488f1338"
err:eventlog:ReportEventW L"da"
err:eventlog:ReportEventW L"1b"
err:eventlog:ReportEventW L"fatalerror"
err:eventlog:ReportEventW L"NIL"
...
--- snip ---

Setting 'windowscodecsext' to 'native' works around (just like 'windowscodecs' in winetricks recipe).

Source: http://source.winehq.org/git/wine.git/blob/e002d2eacfc5371bc4a964515448c9ad2db52e76:/dlls/windowscodecsext/windowscodecsext.spec

--- snip ---
   1 @ stub DllGetClassObject
   2 @ stdcall IWICColorTransform_Initialize_Proxy(ptr ptr ptr ptr ptr) IWICColorTransform_Initialize_Proxy_W
   3 @ stdcall WICCreateColorTransform_Proxy(ptr)
--- snip ---

@austin/winetricks maintainers:

For the time being it might be useful to add this additional override to winetricks by default as part of 'winetricks windowscodecs' recipe.

With that modified recipe the app goes further ... only to crash again.

+relay gives a hint:

--- snip ---
002b:Call KERNEL32.OutputDebugStringW(7a09e7d8 L"CLR: Managed code called FailFast, saying \"") ret=7a14be4c
002b:Ret  KERNEL32.OutputDebugStringW() retval=0032c130 ret=7a14be4c
002b:Call KERNEL32.OutputDebugStringW(7a3c3f80 L"Unrecoverable system error.") ret=7a14be4c
002b:Ret  KERNEL32.OutputDebugStringW() retval=0032c130 ret=7a14be4c
002b:Call KERNEL32.OutputDebugStringW(7a09e7cc L"\"\r\n") ret=7a14be4c
002b:Ret  KERNEL32.OutputDebugStringW() retval=0032c130 ret=7a14be4c 
--- snip ---

FailFast? That looks like bug 32323
Indeed, 'winetricks corefonts' works around (actually only 'arial32.exe' installer is needed).

With the small recipes in place "Adobe Digital Editions 2.0" starts successfully and ebooks can be managed/read.

Regards
Comment 1 Anastasius Focht 2013-05-04 10:08:14 UTC
Hello folks,

filling fields

$ du -sh ADE_2.0_Installer.exe 
5.7M	ADE_2.0_Installer.exe

$ sha1sum ADE_2.0_Installer.exe 
cd471f807b661890800cad18ae4bad34b177a00f  ADE_2.0_Installer.exe

$ wine --version
wine-1.5.29-122-g865d53d

Regards
Comment 2 Austin English 2013-05-05 12:26:27 UTC
(In reply to comment #0)
> @austin/winetricks maintainers:
> 
> For the time being it might be useful to add this additional override to
> winetricks by default as part of 'winetricks windowscodecs' recipe.

http://code.google.com/p/winetricks/source/detail?r=952
Comment 3 Alistair Leslie-Hughes 2013-07-30 18:46:41 UTC
Stub has been added
http://source.winehq.org/git/wine.git/?a=commit;h=de8498c781143b934e30671076b975111f377d23
Comment 4 Anastasius Focht 2013-08-02 02:30:28 UTC
Hello Alistair,

thanks, indeed works fine with stub added.

Regards
Comment 5 Alexandre Julliard 2013-08-02 13:18:31 UTC
Closing bugs fixed in 1.7.0.
Comment 6 Alexandre Julliard 2013-11-15 13:40:01 UTC
Removing 1.6.x milestone from bugs included in 1.6.1.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers