I have also had issues getting EKHeX (PKHexX for emerald Kaizo) to run using wine on Ubuntu 20.04. This is the output I get whe attempting to run it. I have verified that dotnet40 is installed and I'm running using 32-bit wine prefix. Thank you for any assistance.
$ WINEPREFIX=~/.wine32 WINEARCH=win32 wine EKHeX.exe
002c:err:ole:CoGetContextToken apartment not initialised
0009:err:eventlog:ReportEventW L"Application: EKHeX.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.TypeLoadException\nStack:\n at System.ModuleHandle.ResolveMethod(System.Reflection.RuntimeModule, Int32, IntPtr*, Int32, IntPtr*, Int32)\n"...
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount)
at System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount)
at System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.CustomAttributeData..ctor(RuntimeModule scope, CustomAttributeRecord caRecord)
at System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule module, Int32 tkTarget)
at System.Reflection.CustomAttributeData.GetCustomAttributesInternal(RuntimeAssembly target)
at System.Reflection.RuntimeAssembly.GetCustomAttributesData()
at System.Reflection.CustomAttributeData.GetCustomAttributes(Assembly target)
at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(Assembly a, UltimateResourceFallbackLocation& fallbackLocation)
at System.Resources.ResourceManager.CommonSatelliteAssemblyInit()
at System.Resources.ResourceManager..ctor(String baseName, Assembly assembly)
at PKHeX.WinForms.Properties.Resources.get_ResourceManager()
at PKHeX.WinForms.Properties.Resources.get_Icon()
at PKHeX.WinForms.SplashScreen.InitializeComponent()
at PKHeX.WinForms.SplashScreen..ctor()
at PKHeX.WinForms.Program.Main()
wine: Unhandled exception 0xe0434352 in thread 9 at address 7B032F82 (thread 0009), starting debugger...
Unhandled exception: 0xe0434352 in 32-bit code (0x7b032f82).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:006b GS:0063
EIP:7b032f82 ESP:0032ee64 EBP:0032eee8 EFLAGS:00000212( - -- I -A- - )
EAX:0032ee7c EBX:e0434352 ECX:0032ee60 EDX:0032ee90
ESI:00000000 EDI:012e2888
Stack dump:
0x0032ee64: 0032ef4c 00000014 0179079c 00000000
0x0032ee74: 00000000 00000000 e0434352 00000001
0x0032ee84: 00000000 7b032f82 00000005 80131522
0x0032ee94: 00000000 00000000 00000000 79140000
0x0032eea4: 7919c5d4 00000059 00000000 0032ef4c
0x0032eeb4: 003624b0 02000059 0032eecc 79150579
Backtrace:
=>0 0x7b032f82 (0x0032eee8)
1 0x791cac08 EntryPoint+0xffffffff() in clr (0x0032ef80)
2 0x7923ab0b EntryPoint+0x4521a() in clr (0x0032efbc)
3 0x7948d662 AttachProfiler+0x16ead9() in clr (0x0032f018)
4 0x0498d2f5 (0x0032f078)
5 0x0498cfef (0x0032f0b0)
6 0x0498ce26 (0x0032f0e0)
7 0x0498c7f8 (0x0032f260)
8 0x0498c5ac (0x0032f288)
9 0x0498c459 (0x0032f2a4)
10 0x0498c3f6 (0x0032f2b4)
11 0x0498c0fc (0x0032f300)
12 0x0498beef (0x0032f320)
13 0x0498bd03 (0x0032f334)
14 0x0498bc7f (0x0032f348)
15 0x0498bbea (0x0032f354)
16 0x0498494f (0x0032f364)
17 0x041b7e44 (0x0032f370)
18 0x041b2b3e (0x0032f384)
19 0x791421db EntryPoint+0xffffffff() in clr (0x0032f394)
20 0x79164a2a EntryPoint+0xffffffff() in clr (0x0032f410)
21 0x79164bcc EntryPoint+0xffffffff() in clr (0x0032f550)
22 0x79164c01 EntryPoint+0xffffffff() in clr (0x0032f56c)
23 0x79164c21 EntryPoint+0xffffffff() in clr (0x0032f584)
24 0x7922ce82 EntryPoint+0x37591() in clr (0x0032f6e8)
25 0x7922cf90 EntryPoint+0x3769f() in clr (0x0032f950)
26 0x7922cda4 EntryPoint+0x374b3() in clr (0x0032fe34)
27 0x7922d199 EntryPoint+0x378a8() in clr (0x0032fe88)
28 0x7922d09a EntryPoint+0x377a9() in clr (0x0032fed4)
29 0x792aaf00 EntryPoint+0xb560f() in clr (0x0032ff0c)
30 0x603b55ab EntryPoint+0x2032() in mscoreei (0x0032ff18)
31 0x79007f16 EntryPoint+0x50c1() in mscoree (0x0032ff28)
32 0x79004de3 EntryPoint+0x1f8e() in mscoree (0x0032ff48)
33 0x7b454cfc in kernel32 (+0x34cfb) (0x0032ffd8)
34 0x7b45488e in kernel32 (+0x3488d) (0x0032ffec)
0x7b032f82: addl $12,%esp
Modules:
Module Address Debug info Name (26 modules)
PE 400000- cd4000 Deferred ekhex
PE 5e0d0000-5e17a000 Deferred diasymreader
PE 603b0000-60416000 Export mscoreei
PE 60930000-60940000 Deferred nlssorting
PE 79000000-7904a000 Export mscoree
PE 79060000-7911e000 Deferred msvcr100_clr0400
PE 79140000-797af000 Export clr
PE 79810000-79870000 Deferred clrjit
PE 7b020000-7b023000 Deferred kernelbase
PE 7b420000-7b5db000 Export kernel32
PE 7bc30000-7bc34000 Deferred ntdll
PE 7e8a0000-7e8a4000 Deferred ucrtbase
PE 7e9a0000-7e9a3000 Deferred shcore
PE 7e9d0000-7e9d4000 Deferred gdiplus
PE 7ea60000-7ea63000 Deferred usp10
PE 7ead0000-7eb4e000 Deferred comctl32
PE 7ed30000-7ed3f000 Deferred setupapi
PE 7efa0000-7efa4000 Deferred winex11
PE 7f060000-7f064000 Deferred rpcrt4
PE 7f250000-7f254000 Deferred imm32
PE 7f4a0000-7f4a4000 Deferred msvcrt
PE 7f570000-7f577000 Deferred gdi32
PE 7f6e0000-7f7c8000 Deferred user32
PE 7f900000-7f908000 Deferred shlwapi
PE 7f970000-7f974000 Deferred advapi32
PE f7d70000-f7d74000 Deferred version
Threads:
process tid prio (all id:s are in hex)
00000008 (D) Z:\home\drew\Games\Pokemon - Emerald Version (U)\EKHeX.exe
0000002c 2
0000002b 0
00000009 0 <==
0000000e services.exe
00000027 0
00000020 0
0000001b 0
00000014 0
00000013 0
00000010 0
0000000f 0
00000011 winedevice.exe
00000018 0
00000017 0
00000016 0
00000012 0
00000019 plugplay.exe
0000001d 0
0000001c 0
0000001a 0
0000001e winedevice.exe
00000026 0
00000023 0
00000022 0
00000021 0
0000001f 0
00000024 explorer.exe
0000002a 0
00000029 0
00000028 0
00000025 0
System information:
Wine build: wine-5.0 (Ubuntu 5.0-3ubuntu1)
Platform: i386
Version: Windows 7
Host system: Linux
Host version: 5.13.0-52-generic