https://bugs.winehq.org/show_bug.cgi?id=45809
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Summary|grandMA3D_v3.4.0.2 crashes |grandMA3D_v3.4.0.2 (.NET | |4.0 app) crashes on startup | |with Wine-Mono CC| |focht@gmx.net Component|-unknown |mscoree Version|unspecified |2.9
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
works fine here with recent Wine version and .NET Framework 4.0 installed. The installer bundles VC++ runtime and .NET Framework installers and runs them as needed as part of post-install steps.
--- snip --- $ 7z l MA3D_v3.4.0.2.exe
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=en_US.utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz (306C3),ASM,AES-NI)
Scanning the drive for archives: 1 file, 228611320 bytes (219 MiB)
Listing archive: MA3D_v3.4.0.2.exe
-- Path = MA3D_v3.4.0.2.exe Type = PE Physical Size = 228611320 CPU = x86 Characteristics = Executable 32-bit NoRelocs NoLineNums NoLocalSyms Created = 2009-12-05 23:50:52 Headers Size = 1024 Checksum = 228658167 Image Size = 253952 Section Alignment = 4096 File Alignment = 512 Code Size = 24064 Initialized Data Size = 164864 Uninitialized Data Size = 1024 Linker Version = 6.0 OS Version = 4.0 Image Version = 6.0 Subsystem Version = 4.0 Subsystem = Windows GUI DLL Characteristics = TerminalServerAware Stack Reserve = 1048576 Stack Commit = 4096 Heap Reserve = 1048576 Heap Commit = 4096 Image Base = 4194304 Comment = FileVersion: 3.4.0.2 ProductVersion: 3.4.0.2 Comments: gMA2: 3.4.0.2; gHash: 4d91081daafe73a3a0977b9b0fb713f5544c4713 CompanyName: MA Lighting Technology GmbH FileDescription: MA 3D v3.4.0.2; gHash: 4d91081daafe73a3a0977b9b0fb713f5544c4713/RELEASE LegalCopyright: © MA Lighting Technology GmbH ProductName: MA 3D v3.4.0.2 ---- Path = [0] Size = 228554424 Packed Size = 228554424 Virtual Size = 228554424 Offset = 49152 -- Path = [0] Type = Nsis Physical Size = 228554417 Tail Size = 7 Method = Deflate Solid = - Headers Size = 511000 Embedded Stub Size = 0 SubType = NSIS-2
Date Time Attr Size Compressed Name ------------------- ----- ------------ ------------ ------------------------ ..... 8005 $PLUGINSDIR/InstallOptions.dll 2017-11-10 12:23:52 ..... 134 $PLUGINSDIR/ioSpecial.ini 2017-11-10 12:23:52 ..... 1886 $PLUGINSDIR/modern-wizard.bmp ..... 6175 $PLUGINSDIR/System.dll 2017-11-10 12:23:42 ....A 891959 V_3.4.0/win32/d3dx9_43.dll 2018-07-13 09:56:08 ....A 7753 V_3.4.0/win32/MALighting.BaseTypes.dll 2018-07-13 09:56:14 ....A 58940 V_3.4.0/win32/MALighting.Common.Managed.dll ... 2018-01-30 15:06:08 ..... 13942578 V_3.4.0/setup/vc_redist.x86.exe 2018-01-30 15:06:08 ..... 14775858 V_3.4.0/setup/vc_redist.x64.exe 2017-11-10 12:23:46 ..... 42906240 V_3.4.0/setup/dotNetFx40_Client_x86_x64.exe ..... 3142 $PLUGINSDIR/nsExec.dll ..... 9588 V_3.4.0/uninst.exe.nsis ------------------- ----- ------------ ------------ ------------------------ 2018-07-13 10:03:40 31107702 229964052 10337 files --- snip --
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/MA Lighting Technologies/MA 3D/V_3.4.0
$ file *.{dll,exe} avcodec-56.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows avdevice-56.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows avfilter-5.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows avformat-56.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows avutil-54.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows d3dx9_43.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows ICSharpCode.SharpZipLib.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.3D.dll: PE32 executable (DLL) (GUI) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.3D.Managed.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.BaseTypes.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.Common.Managed.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.Plugin.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.Plugin.Host.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.Plugin.Loader.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.UI.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.UI.Docking.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows MALighting.UI.XPTable.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows Newtonsoft.Json.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows swresample-1.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows swscale-3.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows XPTable.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows gma2_update.exe: PE32 executable (GUI) Intel 80386, for MS Windows gpm.exe: PE32 executable (console) Intel 80386, for MS Windows MA3D.exe: PE32 executable (GUI) Intel 80386 Mono/.Net assembly, for MS Windows MA3D_import.exe: PE32 executable (GUI) Intel 80386 Mono/.Net assembly, for MS Windows uninst.exe: PE32 executable (GUI) Intel 80386, for MS Windows, Nullsoft Installer self-extracting archive --- snip ---
For the "purists", using Wine-Mono:
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/MA Lighting Technologies/MA 3D/V_3.4.0
$ WINE_MONO_TRACE=all wine ./MA3D.exe ... [00000009: 0.39769 6] LEAVE: System.AppDomain:get_CurrentDomain ()[System.AppDomain:01D94120] [00000009: 0.39786 6] ENTER: (wrapper remoting-invoke-with-check) System.AppDomain:Load (string)(this:01D94120[System.AppDomain mscorlib.dll], [STRING:01D68120:UIAutomationWinforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812], ) [00000009: 0.39806 7] ENTER: System.AppDomain:Load (string)(this:01D94120[System.AppDomain mscorlib.dll], [STRING:01D68120:UIAutomationWinforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812], ) [00000009: 0.39834 8] ENTER: System.AppDomain:Load (string,System.Security.Policy.Evidence,bool)(this:01D94120[System.AppDomain mscorlib.dll], [STRING:01D68120:UIAutomationWinforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812], 00000000, 0, ) [00000009: 0.39866 9] ENTER: (wrapper managed-to-native) System.AppDomain:LoadAssembly (System.AppDomain,string,System.Security.Policy.Evidence,bool)([System.AppDomain:01D94120], [STRING:01D68120:UIAutomationWinforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812], 00000000, 0, ) [00000009: 0.39883 10] ENTER: string:memset (byte*,int,int)(0033F330, 0, 68, ) [00000009: 0.39897 10] LEAVE: string:memset (byte*,int,int) [00000009: 0.40099 10] ENTER: (wrapper runtime-invoke) <Module>:runtime_invoke_object__this___object_object_byte (object,intptr,intptr,intptr)([System.AppDomain:01D94120], 0033F234, 00000000, 003E82D0, ) [00000009: 0.40124 11] ENTER: System.AppDomain:DoAssemblyResolve (string,System.Reflection.Assembly,bool)(this:01D94120[System.AppDomain mscorlib.dll], [STRING:01D68120:UIAutomationWinforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812], 00000000, 0, ) [00000009: 0.40141 11] LEAVE: System.AppDomain:DoAssemblyResolve (string,System.Reflection.Assembly,bool)[OBJECT:00000000] [00000009: 0.40148 10] LEAVE: (wrapper runtime-invoke) <Module>:runtime_invoke_object__this___object_object_byte (object,intptr,intptr,intptr)[OBJECT:00000000] [00000009: 0.40156 9] LEAVE: (wrapper managed-to-native) System.AppDomain:LoadAssembly (System.AppDomain,string,System.Security.Policy.Evidence,bool)[OBJECT:00000000] [00000009: 0.40172 9] ENTER: System.Reflection.Assembly:op_Equality (System.Reflection.Assembly,System.Reflection.Assembly)(00000000, 00000000, ) [00000009: 0.40184 9] LEAVE: System.Reflection.Assembly:op_Equality (System.Reflection.Assembly,System.Reflection.Assembly)result=1 [00000009: 0.40217 9] ENTER: (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object_object (object,intptr,intptr,intptr)([System.IO.FileNotFoundException:00C02D20], 0033F308, 00000000, 003E8750, ) [00000009: 0.40233 10] ENTER: System.IO.FileNotFoundException:.ctor (string,string)(this:00C02D20[System.IO.FileNotFoundException mscorlib.dll], 00000000, [STRING:01D68120:UIAutomationWinforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812], ) ... [00000009: 0.40474 12] ENTER: System.IO.FileLoadException:FormatFileLoadExceptionMessage (string,int)([STRING:01D68120:UIAutomationWinforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812], -2147024894, ) ... [00000009:] EXCEPTION handling: System.IO.FileNotFoundException: Could not load file or assembly 'UIAutomationWinforms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812' or one of its dependencies EXCEPTION: catch found at clause 0 of System.Windows.Forms.Application:InitializeUIAutomation () ... [00000009: 1.47850 6] ENTER: System.IO.StreamWriter:Write (string)(this:00C07340[System.IO.StreamWriter mscorlib.dll], [STRING:00C0C890:------
Object reference not set to an instance of an object
--- Exception at 2018-10-30 23:23:44 @ n550 --- System.NullReferenceException: Object reference not set to an instance of an object --- Stacktrace: at MALighting.GrandMA3D.Program.Main () [0x0000b] in <73abe86a79f943248b05d50b7dac6cc2>:0 --- User: focht CommandLine: "C:\Program Files\MA Lighting Technologies\MA 3D\V_3.4.0\MA3D.exe" OS: Microsoft Windows NT 6.1.7601.65536 Service Pack 1 Framework: 4.0.30319.42000 ------ ], ) [00000009: 1.47887 7] ENTER: System.IO.StreamWriter:CheckAsyncTaskInProgress ()(this:00C07340[System.IO.StreamWriter mscorlib.dll], ) [00000009: 1.47898 7] LEAVE: System.IO.StreamWriter:CheckAsyncTaskInProgress () [00000009: 1.47927 7] ENTER: string:CopyTo (int,char[],int,int)(this:[STRING:00C0C890:------
Object reference not set to an instance of an object
--- Exception at 2018-10-30 23:23:44 @ n550 --- System.NullReferenceException: Object reference not set to an instance of an object --- Stacktrace: at MALighting.GrandMA3D.Program.Main () [0x0000b] in <73abe86a79f943248b05d50b7dac6cc2>:0 --- User: focht CommandLine: "C:\Program Files\MA Lighting Technologies\MA 3D\V_3.4.0\MA3D.exe" OS: Microsoft Windows NT 6.1.7601.65536 Service Pack 1 Framework: 4.0.30319.42000 ------ ], 0, 00C09010, 0, 505, ) [00000009: 1.47953 8] ENTER: string:wstrcpy (char*,char*,int)(00C09020, 00C0C89C, 505, ) ... [00000009: 1.49522 5] LEAVE: MALighting.GrandMA3D.Program:Main () [00000009: 1.49528 4] LEAVE: (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)[OBJECT:00000000] Stacktrace:
================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================
wine: Unhandled page fault on read access to 0x00000000 at address 0x6c770074 (thread 0009), starting debugger... Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x6c770074). 002e:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) "line" in function 002e:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) "opcode" in function Register dump: CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b EIP:6c770074 ESP:0033f95c EBP:0033f9bc EFLAGS:00010246( R- -- I Z- -P- ) EAX:00000000 EBX:00000000 ECX:0033f890 EDX:00000000 ESI:00000000 EDI:0068d2d0 ... Backtrace: =>0 0x6c770074 in libmono-2.0-x86 (+0x230074) (0x0033f9bc) 1 0x6c6fde29 in libmono-2.0-x86 (+0x1bde28) (0x0033f9bc) 2 0x6c701b48 in libmono-2.0-x86 (+0x1c1b47) (0x0033feb8) 3 0x6c5b2182 mono_jit_exec+0xc1() [/vagrant/mono/mono/mini/driver.c:1034] in libmono-2.0-x86 (0x0033feb8) 4 0x7efe26a8 _CorExeMain+0x3e7() [/home/focht/projects/wine/mainline-src/dlls/mscoree/corruntimehost.c:1462] in mscoree (0x0033feb8) 5 0x7b461aa2 call_process_entry+0x11() in kernel32 (0x0033fed8) 6 0x7b463c20 start_process+0x14f(entry=<couldn't compute location>, peb=<couldn't compute location>) [/home/focht/projects/wine/mainline-src/dlls/kernel32/process.c:1273] in kernel32 (0x0033ffd8) 7 0x7b461aae start_process_wrapper+0x9() in kernel32 (0x0033ffec) 0x6c770074: cmpw $0,0x0(%eax) Modules: Module Address Debug info Name (194 modules) PE 400000- 52e000 Deferred ma3d PE 1970000- 1d1e000 Deferred mscorlib PE 1ee0000- 216a000 Deferred system PE 2170000- 3364000 Deferred malighting.3d PE 3480000- 367f000 Deferred d3dx9_43 PE 3cf0000- 3d18000 Deferred malighting.3d.managed PE 3d20000- 3d46000 Deferred malighting.common.managed PE 3d50000- 3f38000 Deferred malighting.ui PE 3f40000- 3f7a000 Deferred mono.posix PE 3f80000- 3fe8000 Deferred system.drawing PE 10000000-102c8000 Deferred system.windows.forms PE 6c540000-6d33c000 Dwarf libmono-2.0-x86 ELF 7a800000-7a940000 Deferred opengl32<elf> -PE 7a820000-7a940000 \ opengl32 ELF 7b400000-7b7ee000 Dwarf kernel32<elf> -PE 7b420000-7b7ee000 \ kernel32 ELF 7bc00000-7bd02000 Deferred ntdll<elf> -PE 7bc10000-7bd02000 \ ntdll ... Threads: process tid prio (all id:s are in hex) 00000008 (D) C:\Program Files\MA Lighting Technologies\MA 3D\V_3.4.0\MA3D.exe 0000002c 0 0000002b 0 0000002a 0 00000029 0 00000009 0 <== --- snip ---
Obviously a Wine-Mono problem -> UI Automation accessibility missing.
I found this: https://github.com/mono/uia2atk ("Home of effort to implement UI Automation (UIA) on Linux.") but that project seems abandoned, along with the original Mono sub-project.
The final crash is on teardown in the runtime itself. Likely another problem. Anyway, an easy workaround exists -> install MS .NET Framework 4+ To whom it may concern ...
$ sha1sum MA3D_v3.4.0.2.exe 3265bd4d347974048815e0f4ea7321b8eb49a8fe MA3D_v3.4.0.2.exe
$ du -sh MA3D_v3.4.0.2.exe 219M MA3D_v3.4.0.2.exe
$ wine --version wine-3.19-50-g3d5a256797
Regards