Open Heasterian opened 3 years ago
So it went a bit further.
Using emulated libnuma.so.1
0009:err:ole:CoGetClassObject class {4590f811-1d3a-11d0-891f-00aa004b2e24} not registered
0009:err:ole:CoGetClassObject no class object {4590f811-1d3a-11d0-891f-00aa004b2e24} could be created for context 0x1
Warning, jumping to a no-block address (nil) from 0x7f699f0038 (db=0x7f6401e870, x64addr=0x140222d4f)
7901|SIGSEGV @0x648ce3fc (???(/usr/local/bin/box64/0x648ce3fc)) (x64pc=0x1/???:"???", rsp=0x10fe088, stack=0x1000000:0x1104000 own=(nil) fp=0x10ff7d9), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x7bcb9e30
Warning, jumping to a no-block address (nil) from 0x7f699f0038 (db=0x7f6401e870, x64addr=0x140222d4f)
7901|SIGSEGV @0x648ce3fc (???(/usr/local/bin/box64/0x648ce3fc)) (x64pc=0x1/???:"???", rsp=0x10fcb08, stack=0x1000000:0x1104000 own=(nil) fp=0x10ff7d9), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x7bcb9e30
Warning, jumping to a no-block address (nil) from 0x7f6803feb8 (db=0x97b9e520, x64addr=0x140406e51)
7500|SIGSEGV @0x648ce3fc (???(/usr/local/bin/box64/0x648ce3fc)) (x64pc=0x1/???:"???", rsp=0x22d438, stack=0x7f7d7ad000:0x7f7dfad000 own=(nil) fp=0x22f3c9), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x7bcb9e30
Warning, jumping to a no-block address (nil) from 0x7f699f0038 (db=0x7f6401e870, x64addr=0x140222d4f)
7901|SIGSEGV @0x648ce3fc (???(/usr/local/bin/box64/0x648ce3fc)) (x64pc=0x1/???:"???", rsp=0x10fb588, stack=0x1000000:0x1104000 own=(nil) fp=0x10ff7d9), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x7bcb9e30
Warning, jumping to a no-block address (nil) from 0x7f699f0038 (db=0x7f6401e870, x64addr=0x140222d4f)
7901|SIGSEGV @0x648ce3fc (???(/usr/local/bin/box64/0x648ce3fc)) (x64pc=0x1/???:"???", rsp=0x10fa008, stack=0x1000000:0x1104000 own=(nil) fp=0x10ff7d9), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x7bcb9e30
Warning, jumping to a no-block address (nil) from 0x7f699f0038 (db=0x7f6401e870, x64addr=0x140222d4f)
7901|SIGSEGV @0x648ce3fc (???(/usr/local/bin/box64/0x648ce3fc)) (x64pc=0x1/???:"???", rsp=0x10f8a88, stack=0x1000000:0x1104000 own=(nil) fp=0x10ff7d9), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x7bcb9e30
Warning, jumping to a no-block address (nil) from 0x7f699f0038 (db=0x7f6401e870, x64addr=0x140222d4f)
7901|SIGSEGV @0x648ce3fc (???(/usr/local/bin/box64/0x648ce3fc)) (x64pc=0x1/???:"???", rsp=0x10f7508, stack=0x1000000:0x1104000 own=(nil) fp=0x10ff7d9), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x7bcb9e30
Warning, jumping to a no-block address (nil) from 0x7f699f0038 (db=0x7f6401e870, x64addr=0x140222d4f)
7901|SIGSEGV @0x648ce3fc (???(/usr/local/bin/box64/0x648ce3fc)) (x64pc=0x1/???:"???", rsp=0x10f5f88, stack=0x1000000:0x1104000 own=(nil) fp=0x10ff7d9), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x7bcb9e30
addr2line -a 0x648ce3fc -e /usr/local/bin/box64
0x00000000648ce3fc
/home/heasterian/box64/src/emu/x64run.c:66 (discriminator 3)
Also, I get another opcode.
18629|0x22d930: Unimplemented Opcode (00) 0F 00 01 00 80 1F 00 00 7B 00 7B 00 7B 00 33
Cemu is now able to launch on box64 + Wine 6.0 when downloading wldap32.dll to the Cemu.exe directory and forcing the dll to load via winecfg.
When trying to launch Mario Kart 8 on Cemu though, the game opens for a brief moment and then crashes due to an unimplemented opcode:
19741|0x538f2c51: Unimplemented Opcode (C0) F3 0F BD EE 89 74 24 1C 48 89 EE C1 EE 05 89
Edit: I found another one when launching Zelda BotW:
21059|0x57361622: Unimplemented Opcode (14) F3 0F BD C3 48 89 D3 83 C3 08 89 54 24 08 89
Thanks.
Now I have gotten two other missing opcodes (with MK8):
23352|0x140b50329: Unimplemented Opcode (00) CD 29 41 B8 01 00 00 00 BA 15 00 00 40 41 8D
23352|0x13e42: Unimplemented Opcode (00) 6F 00 67 00 72 00 61 00 6D 00 44 00 61 00 74
23352|0x140b50329: Unimplemented Opcode (00) CD 29 41 B8 01 00 00 00 BA 15 00 00 40 41 8D
the "CD 29" is "INT 29". While I would know what to do on DOS, I don't understand what is expected under Windows 64bits.
23352|0x13e42: Unimplemented Opcode (00) 6F 00 67 00 72 00 61 00 6D 00 44 00 61 00 74
I don't think that's opcode. More like utf16 text: "ogramDat"
I'll leave it here, just to not lose it: https://docs.microsoft.com/en-us/cpp/intrinsics/fastfail?redirectedfrom=MSDN&view=msvc-160
I have tested Cemu again with Mario Kart 8 using the latest box64 version. Now the unimplemented opcode errors are gone but Cemu crashes with a SIGSEGV error:
78741|SIGSEGV @0x9f20bedc (???(0x9f20bedc)) (x64pc=0x1402bfa53/???:"???", rsp=0x1321fdf0, stack=0x7f8c613000:0x7f8ce13000 own=(nil) fp=(nil)), for accessing 0x180060008 (code=2/prot=40), db=0x9f3a2520(0x9f20be8c:0x9f20bfb4/0x1402bfa35:0x1402bfa85/???:clean, hash:581759/581759) handler=0x10004fe00
Edit: I have now attached a log made with BOX64_DLSYM_ERROR=1
as well:
cemu.log
I have launched Cemu again with Wine 6.0 and box64 (v0.1.3 3aa12a5) to see if something changed. Now it crashes due to an unimplemented opcode:
24794|0x14004818e: Unimplemented Opcode (EA) 66 0F 3A 22 D8 03 49 8D 40 03 66 0F 7F 5C 24
That opcode is now implemented but now I get a symbol not found error (also with Wine 6.0):
Error: Symbol heim_abort not found, cannot apply R_X86_64_JUMP_SLOT @0x101f30178 (0xcfc6) in /media/firlaev-hans/HDDEXT4/lib/x86_64-linux-gnu/libgssapi.so.3
Error: relocating Plt symbols in elf libgssapi.so.3
Error initializing needed lib libgssapi.so.3
This same symbol has also been a problem with multiple other games, such as Sleeping Dogs: Definitive Edition
this libgssapi.so.3 probably needs some wrapping on box side. That would make things easier to use the native version of it.
Is this fixed now?
Yes, both the Windows version and the native Linux version (which didn't exist when this issue was made) seem to at least launch fine now. I can't do much further testing at the moment.
Emulator is crashing with message below.