Jump to content

Recommended Posts

Posted (edited)
On 3/13/2025 at 6:02 AM, Taku86 said:

I'm using PKHeX on two machines, one with LXQt+OpenBox (running on X) and one with KDE Plasma (running on Wayland). I've never experienced this issue and I'm unable to reproduce. I've also tried to move them to different desktops, but it still works. Wine version 10.2 and .NET 9.0.2 here.

Might be a Wine regression, then. I just tried downgrading from .NET 9.0.3 to 9.0.2, and PKHeX was still bugged.

EDIT: On second thought, downgrading wine-staging to 10.2 didn't fix the issue, either, so I dunno...

EDIT #2: I just tried using KDE Plasma with Wayland in a virtual machine, and PKHeX was still broken. Maybe something is weird in my PKHeX settings...

EDIT THE THIRD: Finally got PKHeX to behave correctly. I had to open winecfg and disable "Allow the window manager to control the windows" under the Graphics tab.

Edited by autofire372
  • Taku86 changed the title to The ultimate guide on how to run PKHeX on Linux [updated 04/2025]
Posted (edited)
On 3/15/2025 at 10:19 PM, autofire372 said:

EDIT THE THIRD: Finally got PKHeX to behave correctly. I had to open winecfg and disable "Allow the window manager to control the windows" under the Graphics tab.

Thanks, I've added this to the OP. If anyone else can confirm this fixes the problem, that would be great.

Edited by Taku86
  • 3 weeks later...
Posted (edited)

it didn't even launch

mint 22.1

wine 10.0

net 9.0.4

 

Quote

0140:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
0140:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x000003ff,0000000000000000,0x0001,0x00000000,00007FFFFE27FDA0,0000000000000000): stub
0140:err:eventlog:ReportEventW L"Description: A .NET application failed.\n"
0140:err:eventlog:ReportEventW L"Application: PKHeX.exe\n"
0140:err:eventlog:ReportEventW L"Path: Z:\\home\\alex\\Games\\PKHeX.exe\n"
0140:err:eventlog:ReportEventW L"Message: Failure processing application bundle.\n"
0140:err:eventlog:ReportEventW L"Failed to create directory [Z:\\home\\alex\\/home/alex/.cache/dotnet_bundle_extract\\] for extracting bundled files.\n"
0140:err:eventlog:ReportEventW L"\n"
0140:fixme:advapi:DeregisterEventSource (00000000CAFE4242) stub

 

Edited by Alex_Tanuki
logs (i guess)
  • Taku86 changed the title to The ultimate guide on how to run PKHeX on Linux [updated 05/2025]
Posted
On 5/11/2025 at 10:58 PM, Alex_Tanuki said:

it didn't even launch

mint 22.1

wine 10.0

net 9.0.4

Could you be more specific? What error do you get? Post the logs.

Posted

Hi. Thanks to OP for providing a handy reference to keep bookmarked. Currently on Fedora 42, I'm able to create the WINEPREFIX, but the process falls apart when I'm trying to install dotnetdesktop9 via winetricks. I suspect this is because Fedora dropped all 32-bit support a while ago, so now Wine must run in wow64 mode. I couldn't find anything remotely similar to my output on the Winetricks github, much less Google whenever I just paste a string verbatim.

 

kaworu@soul-hackers:~$ WINEPREFIX=$HOME/Desktop/PKHeX winetricks dotnetdesktop9
Executing cd /usr/bin
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
warning: You appear to be using Wine's new wow64 mode. Note that this is EXPERIMENTAL and not yet fully supported. If reporting an issue, be sure to mention this.
------------------------------------------------------
Using winetricks 20250102 - sha256sum: c5bfa1741cb6671f1cf3328548a4e878ddf89f7c4f871519ef1037e78c7633d4 with wine-10.4 (Staging) and WINEARCH=win64
Executing w_do_call dotnetdesktop9
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
warning: You appear to be using Wine's new wow64 mode. Note that this is EXPERIMENTAL and not yet fully supported. If reporting an issue, be sure to mention this.
------------------------------------------------------
Executing load_dotnetdesktop9 
grep: warning: stray \ before /
Executing cd /home/kaworu/.cache/winetricks/dotnetdesktop9
Executing wine windowsdesktop-runtime-9.0.0-win-x86.exe
02b0:fixme:winediag:loader_init wine-staging 10.4 is a testing version containing experimental patches.
02b0:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
02d8:err:environ:init_peb starting L"Y:\\dotnetdesktop9\\windowsdesktop-runtime-9.0.0-win-x86.exe" in experimental wow64 mode
wine: failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: 02b0:err:start:fatal_error FormatMessage failed
------------------------------------------------------
warning: Note: command wine windowsdesktop-runtime-9.0.0-win-x86.exe returned status 1. Aborting.
------------------------------------------------------
kaworu@soul-hackers:~$

 

Posted (edited)

@Kaworu Considering that Winetricks installs first the 32 bit version and then the 64 bit version of .NET, if Fedora doesn't have the 32 bit libraries the process probably gets stuck there at the beginning. PKHeX only needs the 64 bit version. Try to manually install it, it's also in the OP :)

Edited by Taku86
  • Thanks 1
Posted
13 hours ago, Taku86 said:

@Kaworu Considering that Winetricks installs first the 32 bit version and then the 64 bit version of .NET, if Fedora doesn't have the 32 bit libraries the process probably gets stuck there at the beginning. PKHeX only needs the 64 bit version. Try to manually install it, it's also in the OP :)

Thank you. This was ultimately correct, but I unintentionally complicated things for myself along the way.

Just posting what should ideally be done in Fedora 42+ for anyone else in the near future. Assuming you're using Workstation/GNOME Shell.

1. Install winehq-stable from the official [url=https://gitlab.winehq.org/wine/wine/-/wikis/Fedora]WineHQ[/url] repos.

I made the amateur mistake of going with what's in my distro's repos.

2. On GNOME Shell specifically, run "nano ~/.profile" and paste " export PATH="/opt/wine-stable/bin:$PATH" " Log out, then log back in.

I cheated a bit with ChatGPT, apparently this is because GNOME Shell and systemd both recognise $PATH from ~/.profile but not ~/.bashrc. I'm unsure if that's 100% true, I lost the chat logs, and I didn't bother Googling for accuracy. I just did that and everything worked. Before, I could run PKHeX with the command but not graphically.

3. Finish the rest of the tutorial.

  • 3 weeks later...
Posted
On 5/22/2025 at 5:45 PM, Taku86 said:

Could you be more specific? What error do you get? Post the logs.

0128:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
0128:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x000003ff,0000000000000000,0x0001,0x00000000,00007FFFFE27FDA0,0000000000000000): stub
0128:err:eventlog:ReportEventW L"Description: A .NET application failed.\n"
0128:err:eventlog:ReportEventW L"Application: PKHeX.exe\n"
0128:err:eventlog:ReportEventW L"Path: Z:\\home\\alex\\Games\\PKHeX.exe\n"
0128:err:eventlog:ReportEventW L"Message: Failure processing application bundle.\n"
0128:err:eventlog:ReportEventW L"Failed to create directory [Z:\\home\\alex\\/home/alex/.cache/dotnet_bundle_extract\\] for extracting bundled files.\n"
0128:err:eventlog:ReportEventW L"\n"
0128:fixme:advapi:DeregisterEventSource (00000000CAFE4242) stub

 

  • Taku86 changed the title to The ultimate guide on how to run PKHeX on Linux [updated 06/2025]
  • 2 weeks later...
Posted (edited)

Under Wine-staging 10.11, the bug where PKHeX breaks if its window is moved seems to have been fixed. Unfortunately, the following bug is now preventing me from opening the Trainer Info editor for any generation:

Exception Details:
System.Globalization.CultureNotFoundException: Culture is not supported. (Parameter 'name')
en-us-posix is an invalid culture identifier.

This seems to be a Wine regression, as the same versions of PKHeX work just fine on Windows 10.

 

UPDATE: I am now convinced that this is a deeper problem with my desktop's primary Wine prefix, as switching to a different prefix alleviated all issues running PKHeX in Wine.

UPDATE #2: It was definitely a Wine prefix issue; deleting and re-creating the prefix (and reinstalling .NET Desktop 9.0) fixed it.

UPDATE #3: Didn't feel like double-posting. @Taku86 have you had an issue where Unicode characters (such as the nickname field) are cut off at the bottom?

Edited by autofire372
  • 3 weeks later...
  • Taku86 changed the title to The ultimate guide on how to run PKHeX on Linux [updated 09/2025]
  • 2 weeks later...
Posted
Just now, Abieunder said:

i cant even click any of the options on the top or it crashes

Exception Details:
System.ComponentModel.Win32Exception (0x80004005): Failed to get thread's DpiAwareness context.
   at System.Windows.Forms.ScaleHelper.DpiAwarenessScope..ctor(DPI_AWARENESS_CONTEXT context, DPI_HOSTING_BEHAVIOR behavior)
   at System.Windows.Forms.ScaleHelper.EnterDpiAwarenessScope(DPI_AWARENESS_CONTEXT awareness, DPI_HOSTING_BEHAVIOR dpiHosting)
   at System.Windows.Forms.ToolStripManager.ModalMenuFilter.PreFilterMessage(Message& m)
   at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
   at System.Windows.Forms.Application.LightThreadContext.FPushMessageLoop(msoloop uReason)
   at System.Windows.Forms.Application.LightThreadContext.RunMessageLoop(msoloop reason, Boolean fullModal)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
   at PKHeX.WinForms.Program.Main()

Loaded Assemblies:
--------------------
System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Private.CoreLib.dll

PKHeX, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.dll

System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Runtime.dll

System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Windows.Forms.dll

System.ComponentModel.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ComponentModel.Primitives.dll

System.Windows.Forms.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Windows.Forms.Primitives.dll

System.Private.Windows.Core, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Private.Windows.Core.dll

System.Drawing.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Drawing.Primitives.dll

System.Collections.Specialized, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.Specialized.dll

PKHeX.Core, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.Core.dll

System.Threading.Thread, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Threading.Thread.dll

System.Collections, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.dll

System.Runtime.InteropServices, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Runtime.InteropServices.dll

System.Threading, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Threading.dll

System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Text.Json.dll

PKHeX.Drawing.PokeSprite, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.Drawing.PokeSprite.dll

System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Drawing.Common.dll

Microsoft.Win32.SystemEvents, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\Microsoft.Win32.SystemEvents.dll

System.ComponentModel.EventBasedAsync, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ComponentModel.EventBasedAsync.dll

System.Linq, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Linq.dll

Microsoft.Win32.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\Microsoft.Win32.Primitives.dll

System.Memory, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Memory.dll

Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\Accessibility.dll

System.ComponentModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ComponentModel.dll

System.Collections.Concurrent, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.Concurrent.dll

System.Resources.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Resources.Extensions.dll

System.Drawing, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Drawing.dll

System.ComponentModel.TypeConverter, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ComponentModel.TypeConverter.dll

System.Numerics.Vectors, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Numerics.Vectors.dll

System.Runtime.Loader, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Runtime.Loader.dll

System.Collections.NonGeneric, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.NonGeneric.dll

System.Net.Http, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.Http.dll

System.Net.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.Primitives.dll

System.Diagnostics.Tracing, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Diagnostics.Tracing.dll

System.Diagnostics.DiagnosticSource, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Diagnostics.DiagnosticSource.dll

System.Net.Security, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.Security.dll

System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Security.Cryptography.dll

System.ObjectModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ObjectModel.dll

System.Private.Uri, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Private.Uri.dll

System.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Windows.Extensions.dll

PKHeX.Drawing, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.Drawing.dll

PKHeX.Drawing.Misc, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.Drawing.Misc.dll

System.Text.RegularExpressions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Text.RegularExpressions.dll

System.Threading.ThreadPool, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Threading.ThreadPool.dll

Microsoft.Win32.Registry, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\Microsoft.Win32.Registry.dll

System.Net.Sockets, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.Sockets.dll

System.Threading.Overlapped, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Threading.Overlapped.dll

System.Net.NameResolution, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.NameResolution.dll

System.Runtime.Intrinsics, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Runtime.Intrinsics.dll

System.Security.Principal.Windows, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Security.Principal.Windows.dll

System.Security.Claims, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Security.Claims.dll

System.Diagnostics.StackTrace, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Diagnostics.StackTrace.dll

System.Reflection.Metadata, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Reflection.Metadata.dll

System.Collections.Immutable, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.Immutable.dll

--------------------
User Message:
An error occurred in PKHeX. Please report this error to the PKHeX author.
PKHeX must now close.
 

Posted
5 hours ago, Abieunder said:

Exception Details:
System.ComponentModel.Win32Exception (0x80004005): Failed to get thread's DpiAwareness context.
   at System.Windows.Forms.ScaleHelper.DpiAwarenessScope..ctor(DPI_AWARENESS_CONTEXT context, DPI_HOSTING_BEHAVIOR behavior)
   at System.Windows.Forms.ScaleHelper.EnterDpiAwarenessScope(DPI_AWARENESS_CONTEXT awareness, DPI_HOSTING_BEHAVIOR dpiHosting)
   at System.Windows.Forms.ToolStripManager.ModalMenuFilter.PreFilterMessage(Message& m)
   at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
   at System.Windows.Forms.Application.LightThreadContext.FPushMessageLoop(msoloop uReason)
   at System.Windows.Forms.Application.LightThreadContext.RunMessageLoop(msoloop reason, Boolean fullModal)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
   at PKHeX.WinForms.Program.Main()

Loaded Assemblies:
--------------------
System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Private.CoreLib.dll

PKHeX, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.dll

System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Runtime.dll

System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Windows.Forms.dll

System.ComponentModel.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ComponentModel.Primitives.dll

System.Windows.Forms.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Windows.Forms.Primitives.dll

System.Private.Windows.Core, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Private.Windows.Core.dll

System.Drawing.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Drawing.Primitives.dll

System.Collections.Specialized, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.Specialized.dll

PKHeX.Core, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.Core.dll

System.Threading.Thread, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Threading.Thread.dll

System.Collections, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.dll

System.Runtime.InteropServices, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Runtime.InteropServices.dll

System.Threading, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Threading.dll

System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Text.Json.dll

PKHeX.Drawing.PokeSprite, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.Drawing.PokeSprite.dll

System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Drawing.Common.dll

Microsoft.Win32.SystemEvents, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\Microsoft.Win32.SystemEvents.dll

System.ComponentModel.EventBasedAsync, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ComponentModel.EventBasedAsync.dll

System.Linq, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Linq.dll

Microsoft.Win32.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\Microsoft.Win32.Primitives.dll

System.Memory, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Memory.dll

Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\Accessibility.dll

System.ComponentModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ComponentModel.dll

System.Collections.Concurrent, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.Concurrent.dll

System.Resources.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Resources.Extensions.dll

System.Drawing, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Drawing.dll

System.ComponentModel.TypeConverter, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ComponentModel.TypeConverter.dll

System.Numerics.Vectors, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Numerics.Vectors.dll

System.Runtime.Loader, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Runtime.Loader.dll

System.Collections.NonGeneric, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.NonGeneric.dll

System.Net.Http, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.Http.dll

System.Net.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.Primitives.dll

System.Diagnostics.Tracing, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Diagnostics.Tracing.dll

System.Diagnostics.DiagnosticSource, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Diagnostics.DiagnosticSource.dll

System.Net.Security, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.Security.dll

System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Security.Cryptography.dll

System.ObjectModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.ObjectModel.dll

System.Private.Uri, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Private.Uri.dll

System.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\9.0.9\System.Windows.Extensions.dll

PKHeX.Drawing, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.Drawing.dll

PKHeX.Drawing.Misc, Version=25.8.30.0, Culture=neutral, PublicKeyToken=null
C:\users\abieunder\Temp\.net\PKHeX\uCzp0nN9HinW_6oWdZmdUasIEdv_imw=\PKHeX.Drawing.Misc.dll

System.Text.RegularExpressions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Text.RegularExpressions.dll

System.Threading.ThreadPool, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Threading.ThreadPool.dll

Microsoft.Win32.Registry, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\Microsoft.Win32.Registry.dll

System.Net.Sockets, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.Sockets.dll

System.Threading.Overlapped, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Threading.Overlapped.dll

System.Net.NameResolution, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Net.NameResolution.dll

System.Runtime.Intrinsics, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Runtime.Intrinsics.dll

System.Security.Principal.Windows, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Security.Principal.Windows.dll

System.Security.Claims, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Security.Claims.dll

System.Diagnostics.StackTrace, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Diagnostics.StackTrace.dll

System.Reflection.Metadata, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Reflection.Metadata.dll

System.Collections.Immutable, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9\System.Collections.Immutable.dll

--------------------
User Message:
An error occurred in PKHeX. Please report this error to the PKHeX author.
PKHeX must now close.
 

Update your version of Wine. This is an easy google search:

image.png

  • 2 weeks later...
  • Taku86 changed the title to The ultimate guide on how to run PKHeX on Linux [updated 11/2025]

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...