Jump to content

Wine Compatibility Error w/ PKHeX


RetroChomp

Recommended Posts

Hi PKHeX'ers, I'm here to report a bug. Or something similar to it, because it technically works. Emphasis on the technically. I can open PKHeX using Wine perfectly well (yes I'm using Wine to run PKHeX bc I'm on a M1 and the Mac version doesnt work with M1s yet as far as I can tell), and open up my Save to see my Box. Here's the problem: The moment I try to edit my Pokemon's Species, Moves, or Level I instantly crash. I can edit IVs and EVs fine for some reason? Anyway, here's a screenshot of the error I get, and the Error Log. Cheers!

 

PKHe-X-Error.png

 

And here's the Error Log:

Unhandled exception: page fault on read access to 0x0063006f00680053 in 64-bit code (0x00000003af6f2230).
Register dump:
 rip:00000003af6f2230 rsp:000000000011e728 rbp:0000000000000070 eflags:00000206 (   - --  I   - -P- )
 rax:000000000166ee10 rbx:0000000001669640 rcx:0063006f00680053 rdx:000000000011e7d8
 rsi:0063006f00680053 rdi:000000000011e7d8  r8:000000000237f828  r9:0000000000000000 r10:0000000000002010
 r11:00000001801c5550 r12:00000000190026c0 r13:0000000004737cc8 r14:000000000166ee10 r15:0000000000000400
Stack dump:
0x000000000011e728:  0000000180212aea 000000000237f828
0x000000000011e738:  00000001802388a4 0000000001668ed0
0x000000000011e748:  0000000004737cc8 0000000000002020
0x000000000011e758:  0000000001669640 0063006f00680053
0x000000000011e768:  000000000011e7d8 0000000011c9d600
0x000000000011e778:  00000001801d033d 00000000049cee6b
0x000000000011e788:  0000000000000000 0000000001668ed0
0x000000000011e798:  0063006f00680053 0000000001668ed0
0x000000000011e7a8:  00000001801c558e 000000000173d870
0x000000000011e7b8:  0000000003a24976 000000000011e928
0x000000000011e7c8:  000000000011ea0c 0000000a0000000a
0x000000000011e7d8:  0000000800000000 000000000011ede0
Backtrace:
=>0 0x00000003af6f2230 _Cbuild+0x378f0() in ucrtbase (0x0000000000000070)
  1 0x0000000180212aea MonoFixupExe+0x7702a() in libmono-2.0-x86_64 (0x0000000000000070)
  2 0x00000001801d033d MonoFixupExe+0x3487d() in libmono-2.0-x86_64 (0x0000000000000070)
  3 0x00000001801c558e MonoFixupExe+0x29ace() in libmono-2.0-x86_64 (0x0000000000000070)
0x00000003af6f2230 ucrtbase+0x82230: cmpw    $0,(%rcx)
Modules:
Module    Address                    Debug info    Name (82 modules)
PE    0000000000400000-0000000001312000    Deferred        pkhex
PE    00000000035a0000-0000000003a1e000    Deferred        mscorlib
PE    0000000003c20000-0000000003ea2000    Deferred        system
PE    00000000042f0000-0000000004370000    Deferred        system.drawing
PE    0000000004370000-0000000004378000    Deferred        accessibility
PE    00000000043b0000-00000000043fd000    Deferred        monoposixhelper-x86_64
PE    0000000004570000-0000000004594000    Deferred        system.numerics
PE    0000000005660000-0000000005684000    Deferred        system.configuration
PE    0000000005a00000-0000000005a0c000    Deferred        system.runtime
PE    0000000005a30000-0000000005a38000    Deferred        system.resources.resourcemanager
PE    0000000005a40000-0000000005a48000    Deferred        system.runtime.interopservices
PE    0000000005a50000-0000000005a58000    Deferred        system.reflection
PE    0000000005a80000-0000000005a88000    Deferred        system.runtime.extensions
PE    00000000070d0000-00000000071bc000    Deferred        system.runtime.serialization
PE    00000000071c0000-00000000073cc000    Deferred        system.data
PE    00000000073d0000-00000000076de000    Deferred        system.xml
PE    0000000007ba0000-0000000007ba8000    Deferred        system.valuetuple
PE    0000000008260000-0000000008370000    Deferred        system.core
PE    00000000090e0000-0000000009120000    Deferred        mono.security
PE    000000000a710000-000000000a8a6000    Deferred        libmono-btls-x86_64
PE    0000000010000000-000000001079a000    Deferred        system.windows.forms
PE    000000006f3c0000-000000006f3c6000    Deferred        winemac
PE    000000007b000000-000000007b0d5000    Deferred        kernelbase
PE    000000007b600000-000000007b812000    Deferred        kernel32
PE    0000000170000000-000000017009a000    Deferred        ntdll
PE    0000000180000000-000000018045b000    Export          libmono-2.0-x86_64
PE    00000001c4ee0000-00000001c4f10000    Deferred        winspool
PE    00000001c69e0000-00000001c72fc000    Deferred        shell32
PE    00000001c8b40000-00000001c8b60000    Deferred        msacm32
PE    00000001c8db0000-00000001c8e47000    Deferred        msvcrt
PE    00000001c92d0000-00000001c92f7000    Deferred        winecoreaudio
PE    00000001cd860000-00000001cd868000    Deferred        api-ms-win-crt-utility-l1-1-0
PE    00000001d7cb0000-00000001d7cc1000    Deferred        wsock32
PE    00000001dd3f0000-00000001dd4bc000    Deferred        crypt32
PE    00000001ec2b0000-00000001ec2d5000    Deferred        ws2_32
PE    00000001fc170000-00000001fc185000    Deferred        fusion
PE    00000001fedf0000-00000001fee05000    Deferred        api-ms-win-crt-private-l1-1-0
PE    000000021a7e0000-000000021a855000    Deferred        setupapi
PE    0000000228450000-000000022847b000    Deferred        propsys
PE    0000000231ae0000-0000000231b62000    Deferred        rpcrt4
PE    000000023d820000-000000023da68000    Deferred        user32
PE    0000000240030000-000000024005d000    Deferred        iphlpapi
PE    0000000241850000-0000000241857000    Deferred        api-ms-win-crt-environment-l1-1-0
PE    0000000243540000-00000002435c5000    Deferred        gdiplus
PE    00000002522e0000-0000000252324000    Deferred        oleacc
PE    0000000262250000-0000000262259000    Deferred        api-ms-win-crt-runtime-l1-1-0
PE    000000026b4c0000-000000026b53a000    Deferred        gdi32
PE    00000002739c0000-0000000273af6000    Deferred        oleaut32
PE    000000028ba60000-000000028ba67000    Deferred        api-ms-win-crt-time-l1-1-0
PE    000000028dfa0000-000000028dfac000    Deferred        nsi
PE    000000029cfc0000-000000029cfd6000    Deferred        dnsapi
PE    00000002bb750000-00000002bb88f000    Deferred        comctl32
PE    00000002d4d40000-00000002d4d56000    Deferred        bcrypt
PE    00000002d9bc0000-00000002d9bc7000    Deferred        api-ms-win-crt-process-l1-1-0
PE    00000002de970000-00000002de9a2000    Deferred        rsaenh
PE    00000002e3540000-00000002e3591000    Deferred        shlwapi
PE    00000002e8f10000-00000002e902b000    Deferred        ole32
PE    00000002f1fa0000-00000002f1fad000    Deferred        version
PE    00000002f61f0000-00000002f6214000    Deferred        explorerframe
PE    00000002f7230000-00000002f725e000    Deferred        uxtheme
PE    000000030a2c0000-000000030a2c9000    Deferred        api-ms-win-crt-stdio-l1-1-0
PE    00000003126f0000-0000000312709000    Deferred        shcore
PE    000000031f800000-000000031f8ff000    Deferred        comdlg32
PE    0000000327020000-0000000327073000    Deferred        combase
PE    000000032a700000-000000032a729000    Deferred        sechost
PE    0000000330260000-000000033029f000    Deferred        advapi32
PE    0000000330a70000-0000000330a81000    Deferred        uiautomationcore
PE    0000000336850000-000000033687b000    Deferred        mmdevapi
PE    000000033ea00000-000000033ea09000    Deferred        api-ms-win-crt-string-l1-1-0
PE    0000000344840000-0000000344848000    Deferred        api-ms-win-crt-filesystem-l1-1-0
PE    0000000350a30000-0000000350a39000    Deferred        api-ms-win-crt-convert-l1-1-0
PE    0000000355100000-0000000355107000    Deferred        api-ms-win-crt-locale-l1-1-0
PE    0000000356770000-00000003567a9000    Deferred        mscoree
PE    0000000360a80000-0000000360a8a000    Deferred        api-ms-win-crt-math-l1-1-0
PE    0000000361860000-00000003619ec000    Deferred        windowscodecs
PE    00000003738e0000-00000003738e8000    Deferred        api-ms-win-crt-conio-l1-1-0
PE    0000000375610000-0000000375648000    Deferred        win32u
PE    000000039b510000-000000039b518000    Deferred        api-ms-win-crt-heap-l1-1-0
PE    00000003af670000-00000003af730000    Export          ucrtbase
PE    00000003afd00000-00000003afd1a000    Deferred        imm32
PE    00000003b8f00000-00000003b8fc1000    Deferred        winmm
PE    00000003be590000-00000003be604000    Deferred        dbghelp
Threads:
process  tid      prio (all id:s are in hex)
00000020 (D) Z:\Applications\PKHeX\PKHeX.exe
    00000024    0 <==
    000000b8    0
    000000bc    0
    00000118    0
    0000011c    0
    00000128    0
    0000012c    0
    00000130    0
    0000013c    0
    00000160    0
    00000164    0
    00000168    0
00000038 services.exe
    0000003c    0
    00000040    0
    0000004c    0
    0000006c    0
    00000090    0
    000000a8    0
    000000dc    0
00000044 winedevice.exe
    00000048    0
    00000054    0
    00000058    0
    0000005c    0
    00000060    0
    000000b4    0
00000064 winedevice.exe
    00000068    0
    00000070    0
    00000074    0
    00000078    0
    0000007c    0
    00000080    0
    00000084    0
00000088 plugplay.exe
    0000008c    0
    00000094    0
    00000098    0
    0000009c    0
000000a0 svchost.exe
    000000a4    0
    000000ac    0
    000000b0    0
000000c0 explorer.exe
    000000c4    0
    000000c8    0
    000000cc    0
000000d4 rpcss.exe
    000000d8    0
    000000e4    0
    000000e8    0
    000000ec    0
    000000f0    0
    000000f4    0
System information:
    Wine build: wine-7.0
    Platform: x86_64
    Version: Windows 7
    Host system: Darwin
    Host version: 21.6.0
 

Edited by RetroChomp
Unsightly
Link to comment
Share on other sites

  • 2 weeks later...
On 8/22/2022 at 7:23 PM, Kaphotics said:

Not sure which .NET Framework you have set up; be sure you're on at least .NET 4.6.1 (4.8 would work too).

 

PKHeX is gradually shifting away from the .NET Framework and will eventually jump to .NET 6+ (before or after November), which will no longer work with Wine.

I eventually found out the issue (which is that I was trying to type in the Pokemon Species, not click the dropdown menu to select them) sorry for being a nuisance!

Link to comment
Share on other sites

  • 1 month later...
On 8/22/2022 at 2:23 PM, Kaphotics said:

Not sure which .NET Framework you have set up; be sure you're on at least .NET 4.6.1 (4.8 would work too).

 

PKHeX is gradually shifting away from the .NET Framework and will eventually jump to .NET 6+ (before or after November), which will no longer work with Wine.

Will WindowsForms also be done away with to make it cross-platform if .NET 4.6 is gone? Or will this simply become a Windows-only shenanigans?

Link to comment
Share on other sites

1 hour ago, Wiglett said:

Will WindowsForms also be done away with to make it cross-platform if .NET 4.6 is gone? Or will this simply become a Windows-only shenanigans?

It will still be WinForms, it just will no longer run on the .NET Framework; .NET6+ will be required. Since WinForms w/ .NET Core and above isn't supported by mono/wine, you'll have to use a Windows VM instead.

Link to comment
Share on other sites

  • 1 month later...

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