https://bugs.winehq.org/show_bug.cgi?id=50246
Bug ID: 50246 Summary: FUJIFILM X-RAW Studio failed at launch : mscorlib.dll - TypeInitializationException member:(null) Product: Wine Version: 5.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mscoree Assignee: wine-bugs@winehq.org Reporter: testing.tigerwolf@mail.com Distribution: ---
Created attachment 68756 --> https://bugs.winehq.org/attachment.cgi?id=68756 wine64 execution backtrace
FUJIFILM X-RAW Studio is a RAW development software for Fujifilm cameras. It could be download here: https://fujifilm-x.com/fr-fr/support/download/software/x-raw-studio/
This application should be launched with the 64 bits prefix
Environment: Debian 10 Buster (amd64) AMD RADEON drivers
After installation, software crash at launch with following errors:
00e4:err:mscoree:FixupVTableEntry unsupported vtable fixup flags 0
Failed to run module constructor due to (null) assembly:C:\windows\mono\mono-2.0\lib\mono\4.5\mscorlib.dll type:TypeInitializationException member:(null)
See attachments for more details
https://bugs.winehq.org/show_bug.cgi?id=50246
--- Comment #1 from testing.tigerwolf@mail.com --- Created attachment 68757 --> https://bugs.winehq.org/attachment.cgi?id=68757 mono execution backtrace
https://bugs.winehq.org/show_bug.cgi?id=50246
testing.tigerwolf@mail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Debian URL| |https://dl.fujifilm-x.com/s | |upport/software/x-raw-studi | |o-win1110-kq10gz16/XRawStud | |io1110.exe
https://bugs.winehq.org/show_bug.cgi?id=50246
testing.tigerwolf@mail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|Debian |---
https://bugs.winehq.org/show_bug.cgi?id=50246
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Keywords| |download Status|UNCONFIRMED |NEW
--- Comment #2 from Gijs Vermeulen gijsvrm@gmail.com --- I can confirm this on wine-6.0-rc1.
https://bugs.winehq.org/show_bug.cgi?id=50246
--- Comment #3 from Esme Povirk madewokherd@gmail.com --- Actual cause:
[00000000000000fc:] EXCEPTION handling: System.InvalidProgramException: Invalid IL code in <Module>:?A0xd558e8ff.??__E?A0xd558e8ff@gFileInfoArray@@YMXXZ (): IL_0036: call 0x0a000019
It's calling a varargs pinvoke method, which Mono doesn't have any support for yet.
https://bugs.winehq.org/show_bug.cgi?id=50246
--- Comment #4 from Esme Povirk madewokherd@gmail.com --- With varargs pinvoke implemented, I get an invalid IL error with this code: IL_058a: ldloc.3 # [3] valuetype '<CppImplementationDetails>.$ArrayType$$$BY0EAA@_W'*, IL_058b: ldloca.s 26 # [26] valuetype '<CppImplementationDetails>.$ArrayType$$$BY0EAA@_W', IL_058d: sub IL_058e: ldc.i4.1 IL_058f: shr
The shr instruction is considered invalid. Based on ECMA-335 and my reading of Mono's code, the subtraction should result in a native int, which should be valid to shift by an int32.
https://bugs.winehq.org/show_bug.cgi?id=50246
--- Comment #5 from Esme Povirk madewokherd@gmail.com --- Print statement debugging shows that the first input to the shr instruction is a pointer, not a native int. That implies that one of the inputs to the subtraction is an int, not a pointer.
I'm guessing it's the pointer-type local.
https://bugs.winehq.org/show_bug.cgi?id=50246
--- Comment #6 from Esme Povirk madewokherd@gmail.com --- It's not clear to me from the spec how pointer-type locals are supposed to work, and interpreting these as "pointers" in the IL stack seems to cause problems. So I will just do what I usually do and make Mono's JIT more permissive.
This leads to an exception as it tries to read z:\boot\efi.
https://bugs.winehq.org/show_bug.cgi?id=50246
--- Comment #7 from Esme Povirk madewokherd@gmail.com --- The exception can be worked around by limiting the drive mappings to only contain paths that the use can access. After that, the program starts. But there will be inaccessible files in any Windows install, so presumably that shouldn't be needed.
The stack trace:
System.UnauthorizedAccessException: Access to the path 'Z:\boot\efi' is denied. at System.IO.Enumeration.FileSystemEnumerator`1[TResult].CreateDirectoryHandle (System.String path, System.Boolean ignoreNotFound) [0x0004d] in <e148055c56854bf499fcfc49938417cf>:0 at System.IO.Enumeration.FileSystemEnumerator`1[TResult]..ctor (System.String directory, System.IO.EnumerationOptions options) [0x00050] in <e148055c56854bf499fcfc49938417cf>:0 at System.IO.Enumeration.FileSystemEnumerable`1+DelegateEnumerator[TResult]..ctor (System.IO.Enumeration.FileSystemEnumerable`1[TResult] enumerable) [0x00000] in <e148055c56854bf499fcfc49938417cf>:0 at System.IO.Enumeration.FileSystemEnumerable`1[TResult]..ctor (System.String directory, System.IO.Enumeration.FileSystemEnumerable`1+FindTransform[TResult] transform, System.IO.EnumerationOptions options) [0x00042] in <e148055c56854bf499fcfc49938417cf>:0 at System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories (System.String directory, System.String expression, System.IO.EnumerationOptions options) [0x00014] in <e148055c56854bf499fcfc49938417cf>:0 at System.IO.Directory.InternalEnumeratePaths (System.String path, System.String searchPattern, System.IO.SearchTarget searchTarget, System.IO.EnumerationOptions options) [0x00045] in <e148055c56854bf499fcfc49938417cf>:0 at System.IO.Directory.GetDirectories (System.String path, System.String searchPattern, System.IO.EnumerationOptions enumerationOptions) [0x00000] in <e148055c56854bf499fcfc49938417cf>:0 at System.IO.Directory.GetDirectories (System.String path) [0x0000b] in <e148055c56854bf499fcfc49938417cf>:0 at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) [0x00012] in <5b19279d6f21448386325d955c3a5f7e>:0 at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) [0x00022] in <5b19279d6f21448386325d955c3a5f7e>:0 at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) [0x00022] in <5b19279d6f21448386325d955c3a5f7e>:0 at System.IO.DefaultWatcher.UpdateDataAndDispatch (System.IO.DefaultWatcherData data, System.Boolean dispatch) [0x00040] in <5b19279d6f21448386325d955c3a5f7e>:0 at System.IO.DefaultWatcher.Monitor () [0x0007b] in <5b19279d6f21448386325d955c3a5f7e>:0 at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <e148055c56854bf499fcfc49938417cf>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <e148055c56854bf499fcfc49938417cf>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <e148055c56854bf499fcfc49938417cf>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <e148055c56854bf499fcfc49938417cf>:0 at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <e148055c56854bf499fcfc49938417cf>:0
It would appear that this is a bug in System.IO.DefaultWatcher, as it does not handle the UnauthorizedAccessException.
https://bugs.winehq.org/show_bug.cgi?id=50246
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|FUJIFILM X-RAW Studio |FUJIFILM X-RAW Studio fails |failed at launch : |to start with Wine-Mono: |mscorlib.dll - |'System.InvalidProgramExcep |TypeInitializationException |tion: Invalid IL code' |member:(null) | CC| |focht@gmx.net URL|https://dl.fujifilm-x.com/s |https://web.archive.org/web |upport/software/x-raw-studi |/20210310073420/https://dl. |o-win1110-kq10gz16/XRawStud |fujifilm-x.com/support/soft |io1110.exe |ware/x-raw-studio-win1110-k | |q10gz16/XRawStudio1110.exe
https://bugs.winehq.org/show_bug.cgi?id=50246
Esme Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com