Unhandled Exception with .NET 2.0 version of program

Questions about Wine on Linux
Locked
Jacksaur
Newbie
Newbie
Posts: 2
Joined: Thu Dec 16, 2021 10:14 am

Unhandled Exception with .NET 2.0 version of program

Post by Jacksaur »

Been trying to run Athena's Armor Set Search to get myself acquainted with WINE. It's a simple program that just filters a text based list, with a different version made for each game in the series it's designed for. https://monsterhunter.fandom.com/wiki/A ... Set_Search
Initially I had problems even starting it, so following advice I found from an old reddit post (itself drawing from an old now dead forum) I found a user who was able to get it running under a much earlier version of WINE and used their method to make the most progress.
Running it under a 32 bit Wineprefix and installing VC++ 2005 and 2008, and .NET 2.0 through Winetricks gets the program to finally start. But after installing .NET the program now just immediately crashes with an unhandled exception every time, pasted below.
This seems to be a problem with .NET 2.0 specifically, as all versions of the program give an identical exception. The Generations, Generations Ultimate and World versions of the program run on .NET 4.0, and run perfectly once that's installed.

Anything I can do myself to work around this? I'm on Kubuntu 21.10 and the latest WINE Development build.

Code: Select all

Unhandled exception: 0xe0434352 in 32-bit code (0x7b0110c6).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7b0110c6 ESP:0021eaa4 EBP:0021eb18 EFLAGS:00000246(   - --  I  Z- -P- )
 EAX:0021eab0 EBX:00000000 ECX:00000010 EDX:0021eb7c
 ESI:e0434352 EDI:0025aa18
Stack dump:
0x0021eaa4:  00000000 00002026 0021eb20 e0434352
0x0021eab4:  00000001 00000000 7b0110c6 00000005
0x0021eac4:  80131534 00000000 00000000 00000000
0x0021ead4:  79140000 00000059 00000000 0021eb7c
0x0021eae4:  79881000 02000059 0021eafc 79150579
0x0021eaf4:  0021eb04 02000059 0021eb08 7915bc5e
Backtrace:
=>0 0x7b0110c6 RaiseException+0x51(code=<internal error>, flags=<internal error>, count=<internal error>, args=<internal error>) [Z:\usr\src\packages\BUILD\dlls\kernelbase\debug.c:302] in kernelbase (0x0021eb18)
  1 0x791cac08 CoUninitializeEE+0x6ca40() in clr (0x0021ebb0)
  2 0x793b5e83 AttachProfiler+0x972fb() in clr (0x0021ebd0)
  3 0x793b5eff AttachProfiler+0x97377() in clr (0x0021ebfc)
  4 0x793b5f3d AttachProfiler+0x973b5() in clr (0x0021ec2c)
  5 0x793b5f50 AttachProfiler+0x973c8() in clr (0x0021ec40)
  6 0x792e0896 EntryPoint+0xeafa6() in clr (0x0021f598)
  7 0x792f2a34 EntryPoint+0xfd144() in clr (0x0021f5e4)
  8 0x792e40e3 EntryPoint+0xee7f3() in clr (0x0021f5f0)
  9 0x79195685 CoUninitializeEE+0x374bd() in clr (0x0021f878)
  10 0x7919550e CoUninitializeEE+0x37346() in clr (0x0021f8cc)
  11 0x7919118a CoUninitializeEE+0x32fc2() in clr (0x0021f944)
  12 0x7922cbcc EntryPoint+0x372dc() in clr (0x0021fe34)
  13 0x7922d199 EntryPoint+0x378a9() in clr (0x0021fe88)
  14 0x7922d09a EntryPoint+0x377aa() in clr (0x0021fed4)
  15 0x792aaf00 EntryPoint+0xb5610() in clr (0x0021ff0c)
  16 0x603b55ab EntryPoint+0x2033() in mscoreei (0x0021ff18)
  17 0x79007f16 EntryPoint+0x50c2() in mscoree (0x0021ff28)
  18 0x79004de3 EntryPoint+0x1f8f() in mscoree (0x0021ff48)
  19 0x7bc57ae7 RtlWakeConditionVariable+0x57(variable=7B62DF10) [Z:\usr\src\packages\BUILD\dlls\ntdll\sync.c:766] in ntdll (0x0021ff5c)
  20 0x7bc581a0 RtlCreateUserThread(entry=79004DDB, arg=7FFD1000) [Z:\usr\src\packages\BUILD\dlls\ntdll\thread.c:261] in ntdll (0x0021ffec)
0x7b0110c6 RaiseException+0x51 [Z:\usr\src\packages\BUILD\dlls\kernelbase\debug.c:302] in kernelbase: subl	$4,%esp
Unable to access file 'Z:\usr\src\packages\BUILD\dlls\kernelbase\debug.c'
Modules:
Module	Address			Debug info	Name (31 modules)
PE	00400000-00502000	Deferred        athenaass3.42b96_mhf1
PE	00eb0000-01319000	Deferred        ole32
PE	5e0d0000-5e17a000	Deferred        diasymreader
PE	60340000-6034d000	Deferred        culture
PE	603b0000-60416000	Export          mscoreei
PE	60930000-60940000	Deferred        nlssorting
PE	61740000-61836000	Deferred        advapi32
PE	624c0000-624d8000	Deferred        msvcm90
PE	62fc0000-631e2000	Deferred        rpcrt4
PE	63480000-6349a000	Deferred        version
PE	63bc0000-63c05000	Deferred        shcore
PE	64a40000-64b29000	Deferred        shlwapi
PE	66b00000-66b63000	Deferred        win32u
PE	68500000-68648000	Deferred        combase
PE	6a280000-6a4f1000	Deferred        msvcrt
PE	6b300000-6b57f000	Deferred        msvcr90
PE	6bc00000-6bc99000	Deferred        sechost
PE	6bcc0000-6be61000	Deferred        setupapi
PE	6c9c0000-6cbdf000	Deferred        gdi32
PE	6ed00000-6f46a000	Deferred        user32
PE	70b40000-70e17000	Deferred        ucrtbase
PE	71200000-71255000	Deferred        imm32
PE	79000000-7904a000	Export          mscoree
PE	79060000-7911e000	Deferred        msvcr100_clr0400
PE	79140000-797af000	Export          clr
PE	79810000-79870000	Deferred        clrjit
PE	79880000-7a643000	Deferred        mscorlib.ni
PE	7b000000-7b342000	Dwarf-4         kernelbase
PE	7b600000-7b924000	Deferred        kernel32
PE	7bc00000-7be8b000	Dwarf-4         ntdll
PE	7e270000-7e274000	Deferred        winex11
Threads:
process  tid      prio (all id:s are in hex)
00000038 services.exe
	0000003c    0
	00000040    0
	0000004c    0
	00000050    0
	00000064    0
	00000070    0
	00000084    0
	000000b0    0
	000000c4    0
	000000dc    0
	000000e0    0
00000044 svchost.exe
	00000048    0
	00000054    0
	00000058    0
0000005c winedevice.exe
	00000060    0
	00000068    0
	0000006c    0
	00000074    0
	00000078    0
	000000c0    0
0000007c winedevice.exe
	00000080    0
	00000088    0
	0000008c    0
	00000090    0
	00000094    0
	000000a0    0
	000000a4    0
00000098 explorer.exe
	0000009c    0
	000000c8    0
	000000cc    0
000000a8 plugplay.exe
	000000ac    0
	000000b4    0
	000000b8    0
	000000bc    0
000000d4 rpcss.exe
	000000d8    0
	000000e4    0
	000000e8    0
	000000ec    0
	000000f0    0
	000000f4    0
	000000f8    0
00000104 (D) Z:\home\james\Desktop\Athena\Athena MHF1\AthenaASS3.42b96_MHF1.exe
	00000108    0 <==
	0000010c    0
	00000110    2
0000011c conhost.exe
	00000120    0
System information:
    Wine build: wine-7.0-rc1
    Platform: i386
    Version: Windows XP
    Host system: Linux
    Host version: 5.13.0-22-generic
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Unhandled Exception with .NET 2.0 version of program

Post by jkfloris »

Could you try the program in a clean 32-bit wineprefix with dotnet35 and vcrun2008 as winetricks?
Jacksaur
Newbie
Newbie
Posts: 2
Joined: Thu Dec 16, 2021 10:14 am

Re: Unhandled Exception with .NET 2.0 version of program

Post by Jacksaur »

Works perfectly! Thanks!
I really didn't expect it to be that easy, were my assumptions just incorrect and the program was running on 3.5 instead of 2.0?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Unhandled Exception with .NET 2.0 version of program

Post by jkfloris »

It is not entirely clear which version the program requires. When I open the program with a hex editor it shows the following: mscorlib, Version=2.0.0.0 ... v2.0.50727. But .Net 3.5 programs have the same string.
So it's a bit of a guess.
Locked