Jump to content

Recommended Posts

Posted

Hello PKHeXers - I am coming across a certain error/set of errors and was wondering if anyone is familiar with the problem I am having or has suggestions. I can try to run PKHeX on wine for both win32 and win64  - with different errors (I simply switch between the two versions using the command line ``winetricks arch=32`` or 64 for the architecture I want). While most sources suggest 32 I do find that I get further with 64 but without further ado here are the errors:

32, Only a window with the following error message is opened:

Exception Details:
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00098] in <59a01ee1edc64bcebd25e10b5eef399b>:0
  at System.Drawing.Image.get_FrameDimensionsList () [0x0000d] in <59a01ee1edc64bcebd25e10b5eef399b>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.Image.get_FrameDimensionsList()
  at System.Drawing.ImageAnimator.CanAnimate (System.Drawing.Image image) [0x00005] in <59a01ee1edc64bcebd25e10b5eef399b>:0
  at System.Drawing.ImageAnimator.Animate (System.Drawing.Image image, System.EventHandler onFrameChangedHandler) [0x00000] in <59a01ee1edc64bcebd25e10b5eef399b>:0
  at System.Windows.Forms.ButtonBase.Animate (System.Boolean animate) [0x00028] in <4055c35822884d58876b1c889fdafb80>:0
  at System.Windows.Forms.ButtonBase.Animate () [0x00020] in <4055c35822884d58876b1c889fdafb80>:0
  at System.Windows.Forms.ButtonBase.set_Image (System.Drawing.Image value) [0x00057] in <4055c35822884d58876b1c889fdafb80>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ButtonBase.set_Image(System.Drawing.Image)
  at PKHeX.WinForms.Controls.ShinyLeaf.InitializeComponent () [0x0013e] in <9bc37010a829474bbf7248cbb1320dc2>:0
  at PKHeX.WinForms.Controls.ShinyLeaf..ctor () [0x00006] in <9bc37010a829474bbf7248cbb1320dc2>:0
  at (wrapper remoting-invoke-with-check) PKHeX.WinForms.Controls.ShinyLeaf..ctor()
  at PKHeX.WinForms.Controls.PKMEditor.InitializeComponent () [0x003f4] in <9bc37010a829474bbf7248cbb1320dc2>:0
  at PKHeX.WinForms.Controls.PKMEditor..ctor () [0x0003c] in <9bc37010a829474bbf7248cbb1320dc2>:0
  at (wrapper remoting-invoke-with-check) PKHeX.WinForms.Controls.PKMEditor..ctor()
  at PKHeX.WinForms.Main.InitializeComponent () [0x001a8] in <9bc37010a829474bbf7248cbb1320dc2>:0
  at PKHeX.WinForms.Main..ctor () [0x0002b] in <9bc37010a829474bbf7248cbb1320dc2>:0
  at (wrapper remoting-invoke-with-check) PKHeX.WinForms.Main..ctor()
  at PKHeX.WinForms.Program.Main () [0x00088] in <9bc37010a829474bbf7248cbb1320dc2>:0

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\mono\mono-2.0\lib\mono\4.5\mscorlib.dll

PKHeX, Version=21.8.6.0, Culture=neutral, PublicKeyToken=null
Z:\home\user\pkhex\PKHeX.exe

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\mono\mono-2.0\lib\mono\gac\System.Windows.Forms\4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\mono\mono-2.0\lib\mono\gac\System\4.0.0.0__b77a5c561934e089\System.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\windows\mono\mono-2.0\lib\mono\gac\System.Drawing\4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\windows\mono\mono-2.0\lib\mono\gac\Accessibility\4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\windows\mono\mono-2.0\lib\mono\gac\System.Configuration\4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\mono\mono-2.0\lib\mono\gac\System.Core\4.0.0.0__b77a5c561934e089\System.Core.dll

System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51


System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\windows\mono\mono-2.0\lib\mono\4.5\Facades\System.Runtime.dll

System.Resources.ResourceManager, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\windows\mono\mono-2.0\lib\mono\4.5\Facades\System.Resources.ResourceManager.dll

System.Runtime.InteropServices, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\windows\mono\mono-2.0\lib\mono\4.5\Facades\System.Runtime.InteropServices.dll

System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a


System.Reflection, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\windows\mono\mono-2.0\lib\mono\4.5\Facades\System.Reflection.dll

Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed


--------------------
User Message:
An unhandled exception has occurred.
PKHeX must now close.


And for 64, the program seems to load and I even hear some sort of chime (I don't know if that's from wine or from PKHeX), but it seems something to do with the display loads incorrectly. No error is displayed, however my shell does output some text which may be of interest (but may also have more to do with wine than with PKHeX)HYc8mmj.png

 

0009:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0027:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 0x6b7e6d0, 0xd8b210, 0x6b7e6d8, 0x6b7e6c8
0027:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 0x6b7e6d0, 0xd8b210, 0x6b7e6d8, 0x6b7e6c8
0009:fixme:uiautomation:UiaClientsAreListening ()
0009:fixme:uiautomation:UiaClientsAreListening ()
0009:fixme:uiautomation:UiaClientsAreListening ()
0009:fixme:uiautomation:UiaClientsAreListening ()
0009:fixme:uiautomation:UiaClientsAreListening ()
0009:fixme:uiautomation:UiaReturnRawElementProvider (000000000001008C, 0, 0, 0000000000000000) stub!
0009:fixme:uiautomation:UiaReturnRawElementProvider (0000000000000000, 0, 0, 0000000000000000) stub!
0009:fixme:shell:SHAutoComplete stub
0009:fixme:uiautomation:UiaClientsAreListening ()
0009:fixme:shell:SHAutoComplete stub
0009:fixme:shell:SHAutoComplete stub
0009:fixme:shell:SHAutoComplete stub
0009:fixme:shell:SHAutoComplete stub
0009:fixme:shell:SHAutoComplete stub
0009:fixme:shell:SHAutoComplete stub
0009:fixme:shell:SHAutoComplete stub
0009:fixme:shell:SHAutoComplete stub
0009:fixme:uiautomation:UiaClientsAreListening ()

the uiaClientsAreListening () line repeats a few dozen times and then is followed by:

0026:fixme:uiautomation:UiaReturnRawElementProvider (000000000001005C, 0, 0, 0000000000000000) stub!
0026:fixme:uiautomation:UiaReturnRawElementProvider (000000000001005E, 0, 0, 0000000000000000) stub!


at which point it stops providing output and in order to close out I have to terminate the process.


Does anyone have any ideas? Am I missing a package or framework? Thanks much for the help.

 

  • 10 months later...
Posted

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


 

Posted
3 hours ago, doppelrogue said:

dotnet40

Per the stickied threads, PKHeX requires net46, which is newer than net40.

Keep in mind that customized forks for ROM hacks should be inquired with the fork author, as their modifications are not my purview.

  • 1 year later...
  • 2 weeks later...
Posted (edited)

Thanks to the work of Fabian Maurer

https://gitlab.winehq.org/wine/wine/-/merge_requests/5064/diffs

PKHex is now compatible with version 24.01.12 on Unix

to update your version execute the following commands

rm -rf $HOME/.local/.share/pkhex
wget "https://bitbucket.org/amidevous/pkhex/raw/master/update.sh" -qO update.sh
chmod +x update.sh
./update.sh
rm -f update.sh

I will update the package on the deposits probably Monday
from the moment you have the dependencies to install
this command will always allow PKHex to be updated on Unix distributions

a big thank you to Fabian Maurer

Edited by amidevous

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...