My .net windows app crashes in wine for linux

Questions about Wine on Linux
Locked
trinsic
Level 1
Level 1
Posts: 8
Joined: Mon Aug 22, 2022 9:20 am

My .net windows app crashes in wine for linux

Post by trinsic »

I migrated from Windows to Linux last year and its been a great experience. I have one windows native dotnet app that I am trying to get running in Wine using Winetricks. It looks like the app requires that latest version of dotnet so I installed it with wintricks. When I launch the app, I get a unhandled exception error. I read the documentation and it says that wine only supports native dotnet in 32bit. I checked the developer site and he doesnt display anything about the system requirements that I could find so I do not know if this app is 32 or 64 bit. The app is called ithoughts and I am running the latest version. The error is below. I was wondering what would be the best way to get help on this issue.

Code: Select all

Unhandled exception: 0xe0434352 in 64-bit code (0x000000007b011e0e).
Register dump:
 rip:000000007b011e0e rsp:000000000021de70 rbp:0000000000000000 eflags:00000202 (   - --  I   - - - )
 rax:000000000021deb0 rbx:0000000000000001 rcx:000000000021de90 rdx:0000000000000001
 rsi:000000000021e010 rdi:000000000021ded8  r8:0000000000000005  r9:000000000021dfe8 r10:0000000000000005
 r11:000000000021dfe8 r12:0000000000004000 r13:00000000034f84d0 r14:00000000e0434352 r15:00000000034f7618
Stack dump:
0x000000000021de70:  000000000021de90 0000000000000c18
0x000000000021de80:  00000000034f7618 0000619dc2840ed9
0x000000000021de90:  00000001e0434352 0000000000000000
0x000000000021dea0:  000000007b011e0e 0000064400000005
0x000000000021deb0:  ffffffff80131509 0000000000000000
0x000000000021dec0:  0000000000000000 0000000000000000
0x000000000021ded0:  0000000001f30000 0000000080000000
0x000000000021dee0:  fffffffffffffffe 000000000265fcb8
0x000000000021def0:  000000000265fca8 000000000265fcc8
0x000000000021df00:  000000000265fca8 0000000000000000
0x000000000021df10:  0000000000000000 0000000001f90719
0x000000000021df20:  0000000000000000 00000000000b7fe0
Backtrace:
=>0 0x000000007b011e0e EntryPoint+0xffffffffffffffff() in kernelbase (0x0000000000000000)
  1 0x0000000001f906fa EntryPoint+0x56ae9() in clr (0x0000000000000000)
  2 0x0000000001f90baa EntryPoint+0x56f99() in clr (0x0000000000000000)
  3 0x0000064478ebe43f in mscorlib.ni (+0xebe43e) (0x0000000000000000)
  4 0x0000064430adca0b in windowsbase.ni (+0x11ca0a) (0x0000000000000000)
  5 0x0000064430adc8c5 in windowsbase.ni (+0x11c8c4) (0x000000000021e2e0)
  6 0x0000064430adf9d1 in windowsbase.ni (+0x11f9d0) (0x000000000021e360)
  7 0x0000064430d090c7 in windowsbase.ni (+0x3490c6) (0x000000000021e470)
  8 0x00000644784ed740 in mscorlib.ni (+0x4ed73f) (0x000000000021e470)
  9 0x00000644784ed5d4 in mscorlib.ni (+0x4ed5d3) (0x000000000021e540)
  10 0x00000644784ed5a2 in mscorlib.ni (+0x4ed5a1) (0x000000000021e540)
  11 0x0000064430adf648 in windowsbase.ni (+0x11f647) (0x000000000021e540)
  12 0x0000064430adf440 in windowsbase.ni (+0x11f43f) (0x000000000021e5a0)
  13 0x0000064430ada924 in windowsbase.ni (+0x11a923) (0x000000000021e640)
  14 0x0000064430adad3d in windowsbase.ni (+0x11ad3c) (0x000000000021e6c0)
  15 0x0000064430adcc3f in windowsbase.ni (+0x11cc3e) (0x0000000002e8f19c)
  16 0x0000064430adcb70 in windowsbase.ni (+0x11cb6f) (0x0000000000000000)
  17 0x0000064430adc9c9 in windowsbase.ni (+0x11c9c8) (0x0000000000000000)
  18 0x0000064430adc8c5 in windowsbase.ni (+0x11c8c4) (0x000000000021e860)
  19 0x0000064430ada234 in windowsbase.ni (+0x11a233) (0x000000000021e900)
  20 0x0000064430adc1fb in windowsbase.ni (+0x11c1fa) (0x000000000021ea00)
  21 0x0000064430cbd491 in windowsbase.ni (+0x2fd490) (0x000000000021ea70)
  22 0x0000000001f3220e EntryPoint+0xffffffffffffffff() in clr (0x000000000021eaa0)
  23 0x000000023d8bead5 EntryPoint+0x1ffff9544() in user32 (0x000000000021ec88)
  24 0x000000023d8c0d09 EntryPoint+0x1ffffb778() in user32 (0x0000000000000000)
  25 0x000000023d881aa1 EntryPoint+0x1fffbc510() in user32 (0x000000000021ee80)
  26 0x0000064430b1bd88 in windowsbase.ni (+0x15bd87) (0x000000000021ee80)
  27 0x0000064430ad782b in windowsbase.ni (+0x11782a) (0x000000000021ef20)
  28 0x000006442d02c5eb in presentationframework.ni (+0x40c5ea) (0x000000000021f020)
  29 0x000006442d02c3e6 in presentationframework.ni (+0x40c3e5) (0x000000000021f020)
0x000000007b011e0e EntryPoint+0xffffffffffffffff in kernelbase: nop	
Modules:
Module	Address					Debug info	Name (66 modules)
PE	          400000-         18b8000	Deferred        ithoughts
PE	         1f30000-         2917000	Export          clr
PE	         2920000-         2a17000	Deferred        msvcr120_clr0400
PE	        1b550000-        1c32c000	Deferred        presentationcore.ni
PE	        1c350000-        1c500000	Deferred        wpfgfx_v0400
PE	        1c500000-        1c5ae000	Deferred        msvcp120_clr0400
PE	        1c5b0000-        1c6c0000	Deferred        presentationnative_v0400
PE	        1c6c0000-        1c7e8000	Deferred        clrjit
PE	        1c800000-        1c816000	Deferred        nlssorting
PE	        268f0000-        26a28000	Deferred        diasymreader
PE	        7a850000-        7a854000	Deferred        opengl32
PE	        7b000000-        7b3fd000	Dwarf           kernelbase
PE	        7b600000-        7b969000	Deferred        kernel32
PE	        7bc00000-        7bf3c000	Deferred        ntdll
PE	       180000000-       18009c000	Deferred        mscoreei
PE	       1c8890000-       1c8a59000	Deferred        d3dcompiler_47
PE	       1c8db0000-       1c9097000	Deferred        msvcrt
PE	       1ce210000-       1ce537000	Deferred        ieframe
PE	       1dd3f0000-       1dd758000	Deferred        crypt32
PE	       205950000-       20595f000	Deferred        api-ms-win-appmodel-runtime-l1-1-2
PE	       21a7e0000-       21a9ce000	Deferred        setupapi
PE	       228450000-       2284c4000	Deferred        propsys
PE	       231ae0000-       231d60000	Deferred        rpcrt4
PE	       23d820000-       23dfc2000	Dwarf           user32
PE	       241b90000-       241bb9000	Deferred        zlib1
PE	       24f470000-       24f4d5000	Deferred        mpr
PE	       25cf30000-       25cf3f000	Deferred        api-ms-win-core-winrt-string-l1-1-0
PE	       25d740000-       25d75f000	Deferred        dwmapi
PE	       26b4c0000-       26bbb9000	Deferred        gdi32
PE	       2739c0000-       273ec9000	Deferred        oleaut32
PE	       2967b0000-       296949000	Deferred        d3d9
PE	       2bb750000-       2bbcd8000	Deferred        comctl32
PE	       2bc830000-       2bc83f000	Deferred        api-ms-win-core-quirks-l1-1-0
PE	       2d4d40000-       2d4d96000	Deferred        bcrypt
PE	       2de970000-       2dea2e000	Deferred        rsaenh
PE	       2e3540000-       2e364f000	Deferred        shlwapi
PE	       2e64e0000-       2e64ee000	Deferred        api-ms-win-core-xstate-l2-1-0
PE	       2e8f10000-       2e948f000	Deferred        ole32
PE	       2f1fa0000-       2f1fbe000	Deferred        version
PE	       3126f0000-       312744000	Deferred        shcore
PE	       327020000-       3271a4000	Deferred        combase
PE	       32a700000-       32a7bc000	Deferred        sechost
PE	       330260000-       330387000	Deferred        advapi32
PE	       34ea20000-       35019b000	Deferred        mshtml
PE	       3543d0000-       35441a000	Deferred        sxs
PE	       3a0440000-       3a0691000	Deferred        wininet
PE	       3af670000-       3af9dd000	Deferred        ucrtbase
PE	       3afd00000-       3afd62000	Deferred        imm32
PE	     6427ee50000-     6427eebf000	Deferred        mscoree
PE	     6442cb00000-     6442cb53000	Deferred        presentationframework.classic.ni
PE	     6442cc20000-     6442e25f000	Export          presentationframework.ni
PE	     6442f400000-     6442f409000	Deferred        presentationframework-systemxml.ni
PE	     644301a0000-     6443040c000	Deferred        system.xaml.ni
PE	     64430900000-     64430930000	Deferred        uiautomationtypes.ni
PE	     644309c0000-     64430ea8000	Export          windowsbase.ni
PE	     644406e0000-     64440809000	Deferred        system.configuration.ni
PE	     64443400000-     64443e0a000	Deferred        system.core.ni
PE	     644442c0000-     64444b50000	Deferred        system.xml.ni
PE	     64474a80000-     644756ba000	Deferred        system.ni
PE	     64478000000-     6447957a000	Export          mscorlib.ni
PE	     644a0000000-     644a0211000	Deferred        system.windows.controls.ribbon.ni
PE	    7fdd772c0000-    7fdd772c6000	Deferred        ws2_32
PE	    7fdd77420000-    7fdd77cf2000	Deferred        shell32
PE	    7fdd7c7d0000-    7fdd7c7d4000	Deferred        wined3d
PE	    7fdd7c980000-    7fdd7c983000	Deferred        dwrite
PE	    7fdd7d3f0000-    7fdd7d3f4000	Deferred        winex11
Threads:
process  tid      prio (all id:s are in hex)
00000038 services.exe
	0000003c    0
	00000040    0
	0000004c    0
	00000064    0
	00000084    0
	0000009c    0
	000000b8    0
	000000d0    0
	000000d4    0
00000044 svchost.exe
	00000048    0
	00000054    0
	00000058    0
0000005c winedevice.exe
	00000060    0
	00000068    0
	0000006c    0
	00000070    0
00000074 plugplay.exe
	00000078    0
	00000088    0
	0000008c    0
	00000090    0
	000000ac    0
0000007c explorer.exe
	00000080    0
	000000bc    0
	000000c0    0
00000094 winedevice.exe
	00000098    0
	000000a0    0
	000000a4    0
	000000a8    0
	000000b4    0
000000c8 rpcss.exe
	000000cc    0
	000000d8    0
	000000dc    0
	000000e0    0
	000000e4    0
	000000e8    0
	0000010c    0
	00000110    0
000000f0 (D) C:\Program Files (x86)\toketaWare\iThoughts\iThoughts.exe
	000000f4    0 <==
	000000f8    0
	000000fc    2
	00000108    0
	0000011c    0
System information:
    Wine build: wine-6.0.3 (Ubuntu 6.0.3~repack-1)
    Platform: x86_64
    Version: Windows 7
    Host system: Linux
    Host version: 5.18.10-76051810-generic
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: My .net windows app crashes in wine for linux

Post by jkfloris »

This program also suffers from bug 49804.
Fortunately, there is also a solution. Install dotnet48 and d3dcompiler_47 with winetricks.

Code: Select all

winetricks -q dotnet48 d3dcompiler_47
With the trial version of iThoughts I did get a crash about the spell checker could not be found, but you can turn it off in the settings. After disabling the spellcheck, the program seems to work.
trinsic
Level 1
Level 1
Posts: 8
Joined: Mon Aug 22, 2022 9:20 am

Re: My .net windows app crashes in wine for linux

Post by trinsic »

Thank you for the help! So I tried to run that command. wine reported an error that I am using the 64 bit version of "WINEPREFIX"
Error below:

Code: Select all

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.
------------------------------------------------------
Using winetricks 20210206 - sha256sum: 0f21da98811e0bfda16a7d6d6b8e860a9cedbd4e836c7dd9b02f068d3092ee2e with wine-6.0.3 (Ubuntu 6.0.3~repack-1) and WINEARCH=win64
Executing w_do_call dotnet48
Executing mkdir -p /home/xxx
------------------------------------------------------
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.
------------------------------------------------------
Executing load_dotnet48 
------------------------------------------------------
warning: This package (dotnet48) is broken in wine-6.0.3. Broken since 5.18. See https://bugs.winehq.org/show_bug.cgi?id=49897 for more info. Use --force to try anyway.
trinsic
Level 1
Level 1
Posts: 8
Joined: Mon Aug 22, 2022 9:20 am

Re: My .net windows app crashes in wine for linux

Post by trinsic »

BTW I am running PopOS 22.04 and I did try to force the install but I got an error that said user aborted the operation, or something similar, but I did not press any key. I am assuming I have the wrong version of wine installed, do I need the 32bit version>
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: My .net windows app crashes in wine for linux

Post by jkfloris »

Winetricks is very generous with its warnings. And a warning is not an error. So you often don't have to worry about that.

The problem is in your Wine version. You can download a newer version from https://wiki.winehq.org/Ubuntu
and follow the instructions for Ubuntu 22.04. (At the moment you can only choose between the winehq-devel or the winehq-staging packages.)

Also, I recommend to update your winetricks version. This can be done easily with:

Code: Select all

sudo winetricks --self-update
trinsic
Level 1
Level 1
Posts: 8
Joined: Mon Aug 22, 2022 9:20 am

Re: My .net windows app crashes in wine for linux

Post by trinsic »

It looks like upgrading to the latest version of Wine requires that I uninstall my current version. I am concerned that I am going to break my steam games. Do you know if Steam relies on Wine? or does it have a self-contained environment for launch Windows games?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: My .net windows app crashes in wine for linux

Post by jkfloris »

Linux Steam comes with its own Wine version, so that one doesn't need wine.
If you used wine to install the Windows version of Steam, the WineHQ wine version will also work.

It is also possible to install the Winehq wine packages alongside the Ubuntu wine packages.
To do this, install the following three packages:

Code: Select all

sudo apt install --install-recommends wine-devel wine-devel-amd64 wine-devel-i386:i386
After this, you can run the new Wine version with:

Code: Select all

WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine program.exe
So in your case it would be:

Code: Select all

# Use the new Wine version and use winetricks to install dotnet48 d3dcompiler_47
WINEPREFIX=${HOME}/.winehq WINE=/opt/wine-devel/bin/wine winetricks -q dotnet48 d3dcompiler_47

# Install iThoughts
WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine msiexec /i ${HOME}/Downloads/iThoughts.msi

# Run iThoughts
cd "${HOME}/.winehq/drive_c/Program Files (x86)/toketaWare/iThoughts/"
WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine iThoughts.exe
trinsic
Level 1
Level 1
Posts: 8
Joined: Mon Aug 22, 2022 9:20 am

Re: My .net windows app crashes in wine for linux

Post by trinsic »

jkfloris wrote: Thu Aug 25, 2022 10:03 am Linux Steam comes with its own Wine version, so that one doesn't need wine.
If you used wine to install the Windows version of Steam, the WineHQ wine version will also work.

It is also possible to install the Winehq wine packages alongside the Ubuntu wine packages.
To do this, install the following three packages:

Code: Select all

sudo apt install --install-recommends wine-devel wine-devel-amd64 wine-devel-i386:i386
After this, you can run the new Wine version with:

Code: Select all

WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine program.exe
So in your case it would be:

Code: Select all

# Use the new Wine version and use winetricks to install dotnet48 d3dcompiler_47
WINEPREFIX=${HOME}/.winehq WINE=/opt/wine-devel/bin/wine winetricks -q dotnet48 d3dcompiler_47

# Install iThoughts
WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine msiexec /i ${HOME}/Downloads/iThoughts.msi

# Run iThoughts
cd "${HOME}/.winehq/drive_c/Program Files (x86)/toketaWare/iThoughts/"
WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine iThoughts.exe
Ok I did the install but It doesnt launch. Not sure what I am missing:

Code: Select all

xxx@pop-os:~$ sudo apt install --install-recommends wine-devel wine-devel-amd64 wine-devel-i386:i386
The following packages were automatically installed and are no longer required:
  crda gtk-sharp2 gtk-sharp2-examples gtk-sharp2-gapi libappindicator0.1-cil
  libappindicator1 libdbusmenu-gtk4 libglade2-0 libglade2.0-cil
  libglade2.0-cil-dev libglib2.0-cil libglib2.0-cil-dev libgtk2.0-cil
  libgtk2.0-cil-dev libsass1 libxml-libxml-perl libxml-namespacesupport-perl
  libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl
  linux-headers-5.16.19-76051619 monodoc-gtk2.0-manual
  pipewire-audio-client-libraries
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libcurl3-gnutls:i386 libgdbm-compat4:i386 libgdbm6:i386 libglu1-mesa:i386
  libieee1284-3:i386 libnspr4:i386 libnss3:i386 libodbc1:i386 libodbccr2:i386
  libopengl0:i386 libpci3:i386 libperl5.34:i386 libpoppler-glib8:i386
  libpoppler118:i386 libsane1:i386 libsnmp40:i386 libwrap0:i386
Suggested packages:
  gdbm-l10n:i386 hplip:i386
Recommended packages:
  sane-airscan:i386
The following NEW packages will be installed:
  libcurl3-gnutls:i386 libgdbm-compat4:i386 libgdbm6:i386 libglu1-mesa:i386
  libieee1284-3:i386 libnspr4:i386 libnss3:i386 libodbc1:i386 libodbccr2:i386
  libopengl0:i386 libpci3:i386 libperl5.34:i386 libpoppler-glib8:i386
  libpoppler118:i386 libsane1:i386 libsnmp40:i386 libwrap0:i386 wine-devel
  wine-devel-amd64 wine-devel-i386:i386
0 upgraded, 20 newly installed, 0 to remove and 5 not upgraded.
Need to get 217 MB of archives.
After this operation, 1,354 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://apt.pop-os.org/ubuntu jammy-security/main i386 libcurl3-gnutls i386 7.81.0-1ubuntu1.3 [313 kB]
Get:2 https://dl.winehq.org/wine-builds/ubuntu jammy/main i386 wine-devel-i386 i386 7.15~jammy-1 [99.9 MB]
Get:3 http://apt.pop-os.org/ubuntu jammy/main i386 libieee1284-3 i386 0.2.11-14build2 [24.9 kB]
Get:4 http://apt.pop-os.org/ubuntu jammy/main i386 libnspr4 i386 2:4.32-3build1 [128 kB]
Get:5 http://apt.pop-os.org/ubuntu jammy-security/main i386 libnss3 i386 2:3.68.2-0ubuntu1.1 [1,389 kB]
Get:6 http://apt.pop-os.org/ubuntu jammy/main i386 libpoppler118 i386 22.02.0-2 [1,153 kB]
Get:7 http://apt.pop-os.org/ubuntu jammy/main i386 libpoppler-glib8 i386 22.02.0-2 [147 kB]
Get:8 http://apt.pop-os.org/ubuntu jammy/main i386 libpci3 i386 1:3.7.0-6 [30.7 kB]
Get:9 http://apt.pop-os.org/ubuntu jammy/main i386 libgdbm6 i386 1.23-1 [39.9 kB]
Get:10 http://apt.pop-os.org/ubuntu jammy/main i386 libgdbm-compat4 i386 1.23-1 [7,144 B]
Get:11 http://apt.pop-os.org/ubuntu jammy/main i386 libperl5.34 i386 5.34.0-3ubuntu1 [4,359 kB]
Get:12 http://apt.pop-os.org/ubuntu jammy/main i386 libwrap0 i386 7.6.q-31build2 [48.8 kB]
Get:13 http://apt.pop-os.org/ubuntu jammy-security/main i386 libsnmp40 i386 5.9.1+dfsg-1ubuntu2.2 [1,099 kB]
Get:14 http://apt.pop-os.org/ubuntu jammy/main i386 libsane1 i386 1.1.1-5 [2,791 kB]
Get:15 http://apt.pop-os.org/ubuntu jammy/main i386 libodbccr2 i386 2.3.9-5 [17.7 kB]
Get:16 http://apt.pop-os.org/ubuntu jammy/main i386 libodbc1 i386 2.3.9-5 [2,528 B]
Get:17 http://apt.pop-os.org/ubuntu jammy/main i386 libopengl0 i386 1.4.0-1 [35.4 kB]
Get:18 http://apt.pop-os.org/ubuntu jammy/main i386 libglu1-mesa i386 9.0.2-1 [199 kB]
Get:19 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 wine-devel-amd64 amd64 7.15~jammy-1 [102 MB]
Get:20 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 wine-devel amd64 7.15~jammy-1 [2,789 kB]
Fetched 217 MB in 34s (6,374 kB/s)                                             
Preconfiguring packages ...
Selecting previously unselected package libcurl3-gnutls:i386.
(Reading database ... 381727 files and directories currently installed.)
Preparing to unpack .../00-libcurl3-gnutls_7.81.0-1ubuntu1.3_i386.deb ...
Unpacking libcurl3-gnutls:i386 (7.81.0-1ubuntu1.3) ...
Selecting previously unselected package libieee1284-3:i386.
Preparing to unpack .../01-libieee1284-3_0.2.11-14build2_i386.deb ...
Unpacking libieee1284-3:i386 (0.2.11-14build2) ...
Selecting previously unselected package libnspr4:i386.
Preparing to unpack .../02-libnspr4_2%3a4.32-3build1_i386.deb ...
Unpacking libnspr4:i386 (2:4.32-3build1) ...
Selecting previously unselected package libnss3:i386.
Preparing to unpack .../03-libnss3_2%3a3.68.2-0ubuntu1.1_i386.deb ...
Unpacking libnss3:i386 (2:3.68.2-0ubuntu1.1) ...
Selecting previously unselected package libpoppler118:i386.
Preparing to unpack .../04-libpoppler118_22.02.0-2_i386.deb ...
Unpacking libpoppler118:i386 (22.02.0-2) ...
Selecting previously unselected package libpoppler-glib8:i386.
Preparing to unpack .../05-libpoppler-glib8_22.02.0-2_i386.deb ...
Unpacking libpoppler-glib8:i386 (22.02.0-2) ...
Selecting previously unselected package libpci3:i386.
Preparing to unpack .../06-libpci3_1%3a3.7.0-6_i386.deb ...
Unpacking libpci3:i386 (1:3.7.0-6) ...
Selecting previously unselected package libgdbm6:i386.
Preparing to unpack .../07-libgdbm6_1.23-1_i386.deb ...
Unpacking libgdbm6:i386 (1.23-1) ...
Selecting previously unselected package libgdbm-compat4:i386.
Preparing to unpack .../08-libgdbm-compat4_1.23-1_i386.deb ...
Unpacking libgdbm-compat4:i386 (1.23-1) ...
Selecting previously unselected package libperl5.34:i386.
Preparing to unpack .../09-libperl5.34_5.34.0-3ubuntu1_i386.deb ...
Unpacking libperl5.34:i386 (5.34.0-3ubuntu1) ...
Selecting previously unselected package libwrap0:i386.
Preparing to unpack .../10-libwrap0_7.6.q-31build2_i386.deb ...
Unpacking libwrap0:i386 (7.6.q-31build2) ...
Selecting previously unselected package libsnmp40:i386.
Preparing to unpack .../11-libsnmp40_5.9.1+dfsg-1ubuntu2.2_i386.deb ...
Unpacking libsnmp40:i386 (5.9.1+dfsg-1ubuntu2.2) ...
Selecting previously unselected package libsane1:i386.
Preparing to unpack .../12-libsane1_1.1.1-5_i386.deb ...
Unpacking libsane1:i386 (1.1.1-5) ...
Selecting previously unselected package wine-devel-i386:i386.
Preparing to unpack .../13-wine-devel-i386_7.15~jammy-1_i386.deb ...
Unpacking wine-devel-i386:i386 (7.15~jammy-1) ...
Selecting previously unselected package wine-devel-amd64.
Preparing to unpack .../14-wine-devel-amd64_7.15~jammy-1_amd64.deb ...
Unpacking wine-devel-amd64 (7.15~jammy-1) ...
Selecting previously unselected package wine-devel.
Preparing to unpack .../15-wine-devel_7.15~jammy-1_amd64.deb ...
Unpacking wine-devel (7.15~jammy-1) ...
Selecting previously unselected package libodbccr2:i386.
Preparing to unpack .../16-libodbccr2_2.3.9-5_i386.deb ...
Unpacking libodbccr2:i386 (2.3.9-5) ...
Selecting previously unselected package libodbc1:i386.
Preparing to unpack .../17-libodbc1_2.3.9-5_i386.deb ...
Unpacking libodbc1:i386 (2.3.9-5) ...
Selecting previously unselected package libopengl0:i386.
Preparing to unpack .../18-libopengl0_1.4.0-1_i386.deb ...
Unpacking libopengl0:i386 (1.4.0-1) ...
Selecting previously unselected package libglu1-mesa:i386.
Preparing to unpack .../19-libglu1-mesa_9.0.2-1_i386.deb ...
Unpacking libglu1-mesa:i386 (9.0.2-1) ...
Setting up libcurl3-gnutls:i386 (7.81.0-1ubuntu1.3) ...
Setting up libopengl0:i386 (1.4.0-1) ...
Setting up wine-devel-amd64 (7.15~jammy-1) ...
Setting up libwrap0:i386 (7.6.q-31build2) ...
Setting up libnspr4:i386 (2:4.32-3build1) ...
Setting up libpci3:i386 (1:3.7.0-6) ...
Setting up libglu1-mesa:i386 (9.0.2-1) ...
Setting up libieee1284-3:i386 (0.2.11-14build2) ...
Setting up libgdbm6:i386 (1.23-1) ...
Setting up libodbccr2:i386 (2.3.9-5) ...
Setting up libnss3:i386 (2:3.68.2-0ubuntu1.1) ...
Setting up libpoppler118:i386 (22.02.0-2) ...
Setting up libgdbm-compat4:i386 (1.23-1) ...
Setting up libodbc1:i386 (2.3.9-5) ...
Setting up libperl5.34:i386 (5.34.0-3ubuntu1) ...
Setting up libpoppler-glib8:i386 (22.02.0-2) ...
Setting up libsnmp40:i386 (5.9.1+dfsg-1ubuntu2.2) ...
Setting up libsane1:i386 (1.1.1-5) ...
Setting up wine-devel-i386:i386 (7.15~jammy-1) ...
Setting up wine-devel (7.15~jammy-1) ...
Processing triggers for udev (249.11-0ubuntu3pop0~1650312774~22.04~cecf6af) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...
xxx@pop-os:~$ WINEPREFIX=${HOME}/.winehq WINE=/opt/wine-devel/bin/wine winetricks -q dotnet48 d3dcompiler_47
Executing mkdir -p /home/xxx
------------------------------------------------------
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.
------------------------------------------------------
Using winetricks 20210206 - sha256sum: 0f21da98811e0bfda16a7d6d6b8e860a9cedbd4e836c7dd9b02f068d3092ee2e with wine-7.15 and WINEARCH=win64
Executing w_do_call dotnet48
Executing mkdir -p /home/xxx
------------------------------------------------------
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.
------------------------------------------------------
Executing load_dotnet48 
------------------------------------------------------
warning: This package (dotnet48) is broken in wine-7.15. Broken since 5.18. See https://bugs.winehq.org/show_bug.cgi?id=49897 for more info. Use --force to try anyway.
------------------------------------------------------
xxx@pop-os:~$ WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine msiexec /i ${HOME}/Downloads/iThoughts.msi
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00d8:fixme:file:NtLockFile I/O completion on lock not implemented yet
00d8:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00d8:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
00d8:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
xxx@pop-os:~$ 011c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
011c:fixme:shcore:GetCurrentProcessExplicitAppUserModelID 00000000019BE3A0: stub
trinsic
Level 1
Level 1
Posts: 8
Joined: Mon Aug 22, 2022 9:20 am

Re: My .net windows app crashes in wine for linux

Post by trinsic »

jkfloris wrote: Thu Aug 25, 2022 10:03 am Linux Steam comes with its own Wine version, so that one doesn't need wine.
If you used wine to install the Windows version of Steam, the WineHQ wine version will also work.

It is also possible to install the Winehq wine packages alongside the Ubuntu wine packages.
To do this, install the following three packages:

Code: Select all

sudo apt install --install-recommends wine-devel wine-devel-amd64 wine-devel-i386:i386
After this, you can run the new Wine version with:

Code: Select all

WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine program.exe
So in your case it would be:

Code: Select all

# Use the new Wine version and use winetricks to install dotnet48 d3dcompiler_47
WINEPREFIX=${HOME}/.winehq WINE=/opt/wine-devel/bin/wine winetricks -q dotnet48 d3dcompiler_47

# Install iThoughts
WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine msiexec /i ${HOME}/Downloads/iThoughts.msi

# Run iThoughts
cd "${HOME}/.winehq/drive_c/Program Files (x86)/toketaWare/iThoughts/"
WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine iThoughts.exe
Part 2:

Code: Select all

Unhandled Exception:
System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.IO.FileNotFoundException: Could not load the file 'System.Windows.Controls.Ribbon'.
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x0007a] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName)
  at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00005] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly (System.Windows.Baml2006.Baml2006SchemaContext+BamlAssembly bamlAssembly) [0x000ed] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetAssembly (System.Int16 assemblyId) [0x0000f] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.EnsureXmlnsAssembliesLoaded (System.String xamlNamespace) [0x0004b] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType (System.String xamlNamespace, System.String name, System.Xaml.XamlType[] typeArguments) [0x00001] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Xaml.XamlSchemaContext.GetXamlType (System.Xaml.Schema.XamlTypeName xamlTypeName) [0x0012c] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.XamlContext.GetXamlType (System.Xaml.Schema.XamlTypeName typeName, System.Boolean returnUnknownTypesOnFailure, System.Boolean skipVisibilityCheck) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.XamlContext.ResolveXamlType (System.String qName, System.Boolean skipVisibilityCheck) [0x00020] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_ResolveXamlType (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at System.Windows.Input.CommandConverter.GetTypeFromContext (System.ComponentModel.ITypeDescriptorContext context, System.String typeName) [0x0002f] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Input.CommandConverter.ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object source) [0x0003b] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue (System.IServiceProvider serviceProvider) [0x00012] in <3f0ca28258364746b90df0026805ef93>:0 
  at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue (System.Windows.Markup.MarkupExtension me, System.IServiceProvider serviceProvider) [0x00002] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Markup.XamlReader.RewrapException (System.Exception e, System.Xaml.IXamlLineInfo lineInfo, System.Uri baseUri) [0x00009] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.WpfXamlLoader.Load (System.Xaml.XamlReader xamlReader, System.Xaml.IXamlObjectWriterFactory writerFactory, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.XamlObjectWriterSettings settings, System.Uri baseUri) [0x00120] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.WpfXamlLoader.LoadBaml (System.Xaml.XamlReader xamlReader, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.Permissions.XamlAccessLevel accessLevel, System.Uri baseUri) [0x00017] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.XamlReader.LoadBaml (System.IO.Stream stream, System.Windows.Markup.ParserContext parserContext, System.Object parent, System.Boolean closeStream) [0x00123] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.LoadComponent (System.Object component, System.Uri resourceLocator) [0x00187] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.MainWindow.InitializeComponent () [0x0001c] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.MainWindow..ctor () [0x00006] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.App.Application_Startup (System.Object sender, System.Windows.StartupEventArgs e) [0x002bf] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at System.Windows.Application.OnStartup (System.Windows.StartupEventArgs e) [0x00027] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.App.<>n__0 (System.Windows.StartupEventArgs e) [0x00000] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.App.OnStartup (System.Windows.StartupEventArgs e) [0x0001f] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000e7] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00001] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeImpl () [0x00099] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext (System.Object state) [0x00008] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper (System.Object obj) [0x0001d] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at MS.Internal.CulturePreservingExecutionContext.Run (MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00047] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.Invoke () [0x00016] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.ProcessQueue () [0x00114] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WndProcHook (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x00061] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndWrapper.WndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x0003a] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndSubclass.DispatcherCallbackOperation (System.Object o) [0x00042] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000c6] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00001] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.LegacyInvokeImpl (System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, System.Object args, System.Int32 numArgs) [0x000fc] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.Invoke (System.Windows.Threading.DispatcherPriority priority, System.Delegate method, System.Object arg) [0x00011] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndSubclass.SubclassWndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam) [0x00154] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at (wrapper native-to-managed) MS.Win32.HwndSubclass.SubclassWndProc(intptr,int,intptr,intptr)
  at (wrapper managed-to-native) MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG&)
  at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage (System.Windows.Interop.MSG& msg) [0x0001a] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrameImpl (System.Windows.Threading.DispatcherFrame frame) [0x0004c] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrame (System.Windows.Threading.DispatcherFrame frame) [0x00077] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.Run () [0x00006] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Application.RunDispatcher (System.Object ignore) [0x00023] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.RunInternal (System.Windows.Window window) [0x0010d] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run (System.Windows.Window window) [0x00008] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run () [0x00009] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.App.Main () [0x0000b] in <146d9ee986ac48379880f4383bbf4a38>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.IO.FileNotFoundException: Could not load the file 'System.Windows.Controls.Ribbon'.
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x0007a] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName)
  at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00005] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly (System.Windows.Baml2006.Baml2006SchemaContext+BamlAssembly bamlAssembly) [0x000ed] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetAssembly (System.Int16 assemblyId) [0x0000f] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.EnsureXmlnsAssembliesLoaded (System.String xamlNamespace) [0x0004b] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType (System.String xamlNamespace, System.String name, System.Xaml.XamlType[] typeArguments) [0x00001] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Xaml.XamlSchemaContext.GetXamlType (System.Xaml.Schema.XamlTypeName xamlTypeName) [0x0012c] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.XamlContext.GetXamlType (System.Xaml.Schema.XamlTypeName typeName, System.Boolean returnUnknownTypesOnFailure, System.Boolean skipVisibilityCheck) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.XamlContext.ResolveXamlType (System.String qName, System.Boolean skipVisibilityCheck) [0x00020] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_ResolveXamlType (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at System.Windows.Input.CommandConverter.GetTypeFromContext (System.ComponentModel.ITypeDescriptorContext context, System.String typeName) [0x0002f] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Input.CommandConverter.ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object source) [0x0003b] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue (System.IServiceProvider serviceProvider) [0x00012] in <3f0ca28258364746b90df0026805ef93>:0 
  at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue (System.Windows.Markup.MarkupExtension me, System.IServiceProvider serviceProvider) [0x00002] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Markup.XamlReader.RewrapException (System.Exception e, System.Xaml.IXamlLineInfo lineInfo, System.Uri baseUri) [0x00009] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.WpfXamlLoader.Load (System.Xaml.XamlReader xamlReader, System.Xaml.IXamlObjectWriterFactory writerFactory, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.XamlObjectWriterSettings settings, System.Uri baseUri) [0x00120] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.WpfXamlLoader.LoadBaml (System.Xaml.XamlReader xamlReader, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.Permissions.XamlAccessLevel accessLevel, System.Uri baseUri) [0x00017] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.XamlReader.LoadBaml (System.IO.Stream stream, System.Windows.Markup.ParserContext parserContext, System.Object parent, System.Boolean closeStream) [0x00123] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.LoadComponent (System.Object component, System.Uri resourceLocator) [0x00187] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.MainWindow.InitializeComponent () [0x0001c] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.MainWindow..ctor () [0x00006] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.App.Application_Startup (System.Object sender, System.Windows.StartupEventArgs e) [0x002bf] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at System.Windows.Application.OnStartup (System.Windows.StartupEventArgs e) [0x00027] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.App.<>n__0 (System.Windows.StartupEventArgs e) [0x00000] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.App.OnStartup (System.Windows.StartupEventArgs e) [0x0001f] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000e7] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00001] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeImpl () [0x00099] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext (System.Object state) [0x00008] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper (System.Object obj) [0x0001d] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at MS.Internal.CulturePreservingExecutionContext.Run (MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00047] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.Invoke () [0x00016] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.ProcessQueue () [0x00114] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WndProcHook (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x00061] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndWrapper.WndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x0003a] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndSubclass.DispatcherCallbackOperation (System.Object o) [0x00042] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000c6] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00001] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.LegacyInvokeImpl (System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, System.Object args, System.Int32 numArgs) [0x000fc] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.Invoke (System.Windows.Threading.DispatcherPriority priority, System.Delegate method, System.Object arg) [0x00011] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndSubclass.SubclassWndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam) [0x00154] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at (wrapper native-to-managed) MS.Win32.HwndSubclass.SubclassWndProc(intptr,int,intptr,intptr)
  at (wrapper managed-to-native) MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG&)
  at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage (System.Windows.Interop.MSG& msg) [0x0001a] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrameImpl (System.Windows.Threading.DispatcherFrame frame) [0x0004c] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrame (System.Windows.Threading.DispatcherFrame frame) [0x00077] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.Run () [0x00006] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Application.RunDispatcher (System.Object ignore) [0x00023] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.RunInternal (System.Windows.Window window) [0x0010d] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run (System.Windows.Window window) [0x00008] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run () [0x00009] in <3f0ca28258364746b90df0026805ef93>:0 

xxx@pop-os:~$ cd "${HOME}/.winehq/drive_c/Program Files (x86)/toketaWare/iThoughts/"
WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine iThoughts.exe
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00d8:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00d8:fixme:shcore:GetCurrentProcessExplicitAppUserModelID 00000000019BE3A0: stub

Unhandled Exception:
System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.IO.FileNotFoundException: Could not load the file 'System.Windows.Controls.Ribbon'.
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x0007a] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName)
  at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00005] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly (System.Windows.Baml2006.Baml2006SchemaContext+BamlAssembly bamlAssembly) [0x000ed] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetAssembly (System.Int16 assemblyId) [0x0000f] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.EnsureXmlnsAssembliesLoaded (System.String xamlNamespace) [0x0004b] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType (System.String xamlNamespace, System.String name, System.Xaml.XamlType[] typeArguments) [0x00001] in 
  
  [TRUNCATED]
  
  at MS.Win32.HwndSubclass.SubclassWndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam) [0x00154] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at (wrapper native-to-managed) MS.Win32.HwndSubclass.SubclassWndProc(intptr,int,intptr,intptr)
  at (wrapper managed-to-native) MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG&)
  at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage (System.Windows.Interop.MSG& msg) [0x0001a] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrameImpl (System.Windows.Threading.DispatcherFrame frame) [0x0004c] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrame (System.Windows.Threading.DispatcherFrame frame) [0x00077] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.Run () [0x00006] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Application.RunDispatcher (System.Object ignore) [0x00023] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.RunInternal (System.Windows.Window window) [0x0010d] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run (System.Windows.Window window) [0x00008] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run () [0x00009] in <3f0ca28258364746b90df0026805ef93>:0 
xxx@pop-os:~/.winehq/drive_c/Program Files (x86)/toketaWare/iThoughts$ WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine iThoughts.exe
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00d8:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00d8:fixme:shcore:GetCurrentProcessExplicitAppUserModelID 00000000019BE3A0: stub

Unhandled Exception:
System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.IO.FileNotFoundException: Could not load the file 'System.Windows.Controls.Ribbon'.
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x0007a] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName)
  at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00005] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly (System.Windows.Baml2006.Baml2006SchemaContext+BamlAssembly bamlAssembly) [0x000ed] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetAssembly (System.Int16 assemblyId) [0x0000f] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.EnsureXmlnsAssembliesLoaded (System.String xamlNamespace) [0x0004b] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType (System.String xamlNamespace, System.String name, System.Xaml.XamlType[] typeArguments) [0x00001] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Xaml.XamlSchemaContext.GetXamlType (System.Xaml.Schema.XamlTypeName xamlTypeName) [0x0012c] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.XamlContext.GetXamlType (System.Xaml.Schema.XamlTypeName typeName, System.Boolean returnUnknownTypesOnFailure, System.Boolean skipVisibilityCheck) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.XamlContext.ResolveXamlType (System.String qName, System.Boolean skipVisibilityCheck) [0x00020] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_ResolveXamlType (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at System.Windows.Input.CommandConverter.GetTypeFromContext (System.ComponentModel.ITypeDescriptorContext context, System.String typeName) [0x0002f] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Input.CommandConverter.ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object source) [0x0003b] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue (System.IServiceProvider serviceProvider) [0x00012] in <3f0ca28258364746b90df0026805ef93>:0 
  at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue (System.Windows.Markup.MarkupExtension me, System.IServiceProvider serviceProvider) [0x00002] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Markup.XamlReader.RewrapException (System.Exception e, System.Xaml.IXamlLineInfo lineInfo, System.Uri baseUri) [0x00009] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.WpfXamlLoader.Load (System.Xaml.XamlReader xamlReader, System.Xaml.IXamlObjectWriterFactory writerFactory, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.XamlObjectWriterSettings settings, System.Uri baseUri) [0x00120] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.WpfXamlLoader.LoadBaml (System.Xaml.XamlReader xamlReader, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.Permissions.XamlAccessLevel accessLevel, System.Uri baseUri) [0x00017] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.XamlReader.LoadBaml (System.IO.Stream stream, System.Windows.Markup.ParserContext parserContext, System.Object parent, System.Boolean closeStream) [0x00123] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.LoadComponent (System.Object component, System.Uri resourceLocator) [0x00187] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.MainWindow.InitializeComponent () [0x0001c] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.MainWindow..ctor () [0x00006] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.App.Application_Startup (System.Object sender, System.Windows.StartupEventArgs e) [0x002bf] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at System.Windows.Application.OnStartup (System.Windows.StartupEventArgs e) [0x00027] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.App.<>n__0 (System.Windows.StartupEventArgs e) [0x00000] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.App.OnStartup (System.Windows.StartupEventArgs e) [0x0001f] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000e7] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00001] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeImpl () [0x00099] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext (System.Object state) [0x00008] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper (System.Object obj) [0x0001d] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at MS.Internal.CulturePreservingExecutionContext.Run (MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00047] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.Invoke () [0x00016] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.ProcessQueue () [0x00114] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WndProcHook (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x00061] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndWrapper.WndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x0003a] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndSubclass.DispatcherCallbackOperation (System.Object o) [0x00042] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000c6] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00001] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.LegacyInvokeImpl (System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, System.Object args, System.Int32 numArgs) [0x000fc] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.Invoke (System.Windows.Threading.DispatcherPriority priority, System.Delegate method, System.Object arg) [0x00011] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndSubclass.SubclassWndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam) [0x00154] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at (wrapper native-to-managed) MS.Win32.HwndSubclass.SubclassWndProc(intptr,int,intptr,intptr)
  at (wrapper managed-to-native) MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG&)
  at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage (System.Windows.Interop.MSG& msg) [0x0001a] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrameImpl (System.Windows.Threading.DispatcherFrame frame) [0x0004c] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrame (System.Windows.Threading.DispatcherFrame frame) [0x00077] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.Run () [0x00006] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Application.RunDispatcher (System.Object ignore) [0x00023] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.RunInternal (System.Windows.Window window) [0x0010d] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run (System.Windows.Window window) [0x00008] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run () [0x00009] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.App.Main () [0x0000b] in <146d9ee986ac48379880f4383bbf4a38>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.IO.FileNotFoundException: Could not load the file 'System.Windows.Controls.Ribbon'.
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x0007a] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName)
  at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00005] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly (System.Windows.Baml2006.Baml2006SchemaContext+BamlAssembly bamlAssembly) [0x000ed] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetAssembly (System.Int16 assemblyId) [0x0000f] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.EnsureXmlnsAssembliesLoaded (System.String xamlNamespace) [0x0004b] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType (System.String xamlNamespace, System.String name, System.Xaml.XamlType[] typeArguments) [0x00001] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Xaml.XamlSchemaContext.GetXamlType (System.Xaml.Schema.XamlTypeName xamlTypeName) [0x0012c] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.XamlContext.GetXamlType (System.Xaml.Schema.XamlTypeName typeName, System.Boolean returnUnknownTypesOnFailure, System.Boolean skipVisibilityCheck) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.XamlContext.ResolveXamlType (System.String qName, System.Boolean skipVisibilityCheck) [0x00020] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_ResolveXamlType (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve (System.String qName) [0x00001] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
  at System.Windows.Input.CommandConverter.GetTypeFromContext (System.ComponentModel.ITypeDescriptorContext context, System.String typeName) [0x0002f] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Input.CommandConverter.ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object source) [0x0003b] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue (System.IServiceProvider serviceProvider) [0x00012] in <3f0ca28258364746b90df0026805ef93>:0 
  at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue (System.Windows.Markup.MarkupExtension me, System.IServiceProvider serviceProvider) [0x00002] in <98b5c5acfee84bfd9199e8e6fe16ac54>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Markup.XamlReader.RewrapException (System.Exception e, System.Xaml.IXamlLineInfo lineInfo, System.Uri baseUri) [0x00009] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.WpfXamlLoader.Load (System.Xaml.XamlReader xamlReader, System.Xaml.IXamlObjectWriterFactory writerFactory, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.XamlObjectWriterSettings settings, System.Uri baseUri) [0x00120] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.WpfXamlLoader.LoadBaml (System.Xaml.XamlReader xamlReader, System.Boolean skipJournaledProperties, System.Object rootObject, System.Xaml.Permissions.XamlAccessLevel accessLevel, System.Uri baseUri) [0x00017] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Markup.XamlReader.LoadBaml (System.IO.Stream stream, System.Windows.Markup.ParserContext parserContext, System.Object parent, System.Boolean closeStream) [0x00123] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.LoadComponent (System.Object component, System.Uri resourceLocator) [0x00187] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.MainWindow.InitializeComponent () [0x0001c] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.MainWindow..ctor () [0x00006] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.App.Application_Startup (System.Object sender, System.Windows.StartupEventArgs e) [0x002bf] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at System.Windows.Application.OnStartup (System.Windows.StartupEventArgs e) [0x00027] in <3f0ca28258364746b90df0026805ef93>:0 
  at iThoughts.App.<>n__0 (System.Windows.StartupEventArgs e) [0x00000] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at iThoughts.App.OnStartup (System.Windows.StartupEventArgs e) [0x0001f] in <146d9ee986ac48379880f4383bbf4a38>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000e7] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00001] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeImpl () [0x00099] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext (System.Object state) [0x00008] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper (System.Object obj) [0x0001d] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <e70d6e9587d64cb3abb4b3f99bbf5a0d>:0 
  at MS.Internal.CulturePreservingExecutionContext.Run (MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00047] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.DispatcherOperation.Invoke () [0x00016] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.ProcessQueue () [0x00114] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WndProcHook (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x00061] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndWrapper.WndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x0003a] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndSubclass.DispatcherCallbackOperation (System.Object o) [0x00042] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000c6] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00001] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.LegacyInvokeImpl (System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, System.Object args, System.Int32 numArgs) [0x000fc] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.Invoke (System.Windows.Threading.DispatcherPriority priority, System.Delegate method, System.Object arg) [0x00011] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at MS.Win32.HwndSubclass.SubclassWndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam) [0x00154] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at (wrapper native-to-managed) MS.Win32.HwndSubclass.SubclassWndProc(intptr,int,intptr,intptr)
  at (wrapper managed-to-native) MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG&)
  at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage (System.Windows.Interop.MSG& msg) [0x0001a] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrameImpl (System.Windows.Threading.DispatcherFrame frame) [0x0004c] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.PushFrame (System.Windows.Threading.DispatcherFrame frame) [0x00077] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Threading.Dispatcher.Run () [0x00006] in <3fca9819a0fd4fe2950d9c6ef1f9bd63>:0 
  at System.Windows.Application.RunDispatcher (System.Object ignore) [0x00023] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.RunInternal (System.Windows.Window window) [0x0010d] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run (System.Windows.Window window) [0x00008] in <3f0ca28258364746b90df0026805ef93>:0 
  at System.Windows.Application.Run () [0x00009] in <3f0ca28258364746b90df0026805ef93>:0 
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: My .net windows app crashes in wine for linux

Post by jkfloris »

Code: Select all

...
Using winetricks 20210206
...
This version of winetricks doesn't contain the fix that as of version 6.6 the .Net Framework can be installed again. You can update winetricks with:

Code: Select all

sudo winetricks --self-update
And try to install the .Net Framework again

Code: Select all

WINEPREFIX=${HOME}/.winehq WINE=/opt/wine-devel/bin/wine winetricks -q dotnet48 d3dcompiler_47
trinsic
Level 1
Level 1
Posts: 8
Joined: Mon Aug 22, 2022 9:20 am

Re: My .net windows app crashes in wine for linux

Post by trinsic »

jkfloris wrote: Fri Aug 26, 2022 11:56 am

Code: Select all

...
Using winetricks 20210206
...
This version of winetricks doesn't contain the fix that as of version 6.6 the .Net Framework can be installed again. You can update winetricks with:

Code: Select all

sudo winetricks --self-update
And try to install the .Net Framework again

Code: Select all

WINEPREFIX=${HOME}/.winehq WINE=/opt/wine-devel/bin/wine winetricks -q dotnet48 d3dcompiler_47
Thanks for your help so far.

Ok I updated winetricks using the self update option. Then I ran the dotnet48 and d3dcompliier_47 it seems to carry some commands over into the prompt. I cleared them out, cd'ed into the directory and ran

Code: Select all

WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine iThoughts.exe
and got an error:

Code: Select all

WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine iThoughts.exe
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00dc:fixme:heap:RtlSetHeapInformation handle 0000000002300000, info_class 0, info 00000000019BF6A0, size 4 stub!
00dc:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 00000001800725B7, 28) stub
00dc:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0000000003C7CDE4, 28) stub
00dc:fixme:heap:GetNumaHighestNodeNumber semi-stub: 00000000019BF9A8
00dc:fixme:seh:WerRegisterRuntimeExceptionModule (L"C:\\windows\\Microsoft.NET\\Framework64\\v4.0.30319\\mscordacwks.dll", 0000000003480000) stub
00dc:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0118:err:ole:CoGetContextToken apartment not initialised
00dc:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 000000001E41AEF1, 28) stub
00dc:fixme:nls:get_dummy_preferred_ui_language (0x8 00000000019B9BB4 0000000000000000 00000000019B9BB0) returning a dummy value (current locale)
00dc:fixme:nls:get_dummy_preferred_ui_language (0x8 00000000019B9BB4 0000000001B7A4A0 00000000019B9BB0) returning a dummy value (current locale)
00dc:fixme:nls:LCMapStringEx unsupported lparam 1b77050
00dc:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0000000004B6D628, 64) stub
00dc:fixme:ntdll:NtQuerySystemInformation (0x000000ce,0x19bbc60,0x00000008,(nil)) stub
00dc:fixme:bcrypt:BCryptGetFipsAlgorithmMode 00000000019BBA00 - semi-stub
00dc:fixme:shcore:GetCurrentProcessExplicitAppUserModelID 00000000019BE8C8: stub
00dc:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0000000004C164C0, 40) stub
00dc:fixme:msg:ChangeWindowMessageFilter c037 00000001
00dc:fixme:dwmapi:DwmAttachMilContent (000000000002004C) stub
011c:fixme:gdi:GdiEntry13 stub
011c:fixme:dwrite:dwritefactory_CreateMonitorRenderingParams (0000000000000001): monitor setting ignored
011c:fixme:d3d:wined3d_check_device_format_conversion output 0000000001BCD110, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
00dc:fixme:virtual:NtFlushProcessWriteBuffers stub
00dc:err:ole:com_get_class_object class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
00dc:err:ole:create_server class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
00dc:fixme:ole:com_get_class_object CLSCTX_REMOTE_SERVER not supported
00dc:err:ole:com_get_class_object no class object {7ab36653-1796-484b-bdfa-e74f1db7c1dc} could be created for context 0x15
00dc:err:ole:com_get_class_object class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
00dc:err:ole:create_server class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
00dc:fixme:ole:com_get_class_object CLSCTX_REMOTE_SERVER not supported
00dc:err:ole:com_get_class_object no class object {7ab36653-1796-484b-bdfa-e74f1db7c1dc} could be created for context 0x15
00dc:fixme:ieframe:ClassFactory_QueryInterface (00000001CE23D158)->({b196b28f-bab4-101a-b69c-00aa00341d07} 00000000019BD438)
00dc:fixme:ieframe:WebBrowser_QueryInterface (0000000001D14D00)->({c3fcc19e-a970-11d2-8b5a-00a0c9b7c9c4} 00000000019BD2A0) interface not supported
00dc:fixme:ieframe:WebBrowser_QueryInterface (0000000001D14D00)->({af86e2e0-b12d-4c6a-9c5a-d7aa65101e90} 00000000019BCAA8) interface not supported
00dc:fixme:ieframe:WebBrowser_QueryInterface (0000000001D14D00)->({ecc8691b-c1db-4dc0-855e-65f6c551af49} 00000000019BC948) interface not supported
00dc:fixme:ieframe:WebBrowser_QueryInterface (0000000001D14D00)->({94ea2b94-e9cc-49e0-c0ff-ee64ca8f5b90} 00000000019BC8D0) interface not supported
00dc:fixme:ieframe:WebBrowser_QueryInterface (0000000001D14D00)->({00000144-0000-0000-c000-000000000046} 00000000019BCEB0) interface not supported
00dc:fixme:ieframe:WBOleCommandTarget_Exec (0000000001D14D00)->((null) 23 0 0000000001CF3470 {VT_BOOL: 0} 0000000000000000)
012c:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0000000029758F20, context 0000000003067B70, init_notify 0, handle 0000000020B4FA90): stub
00dc:fixme:imm:ImmGetDescriptionW (0000000004090409, 0000000000000000, 0): semi stub
00dc:fixme:imm:ImmGetDescriptionW (0000000004090409, 0000000032EE0B08, 9): semi stub
00dc:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (00000000215D3030)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 00000000019BB2C0)
00dc:fixme:file:NtLockFile I/O completion on lock not implemented yet
00dc:fixme:ieframe:BrowserService_GetTravelLog 000000002158BF80 00000000019BBCB0
00dc:fixme:ieframe:ClientSite_GetContainer (0000000001D14E60)->(00000000019BBC28)
00dc:fixme:ieframe:ClientSite_GetContainer (0000000001D14E60)->(00000000019BC6C8)
00dc:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 00000000019BD760, 0000000001D61D00, 00000000019BD768, 00000000019BD758
00dc:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 00000000019BD760, 0000000001D61D00, 00000000019BD768, 00000000019BD758
00dc:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 00000000019BD760, 0000000001D61D00, 00000000019BD768, 00000000019BD758
00dc:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
00dc:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x00000401,0000000000000000,0x0001,0x00000000,00000000019BC6B0,0000000000000000): stub
00dc:err:eventlog:ReportEventW L"Application: iThoughts.exe\nFramework Version: v4.0.30319\nDescription: The application requested process termination through System.Environment.FailFast(string message).\nMessage: Unrecoverable system error.\nStack:\n   at System.Environment.FailFast(System.String)\n   at System.Windows."...
00dc:fixme:advapi:DeregisterEventSource (00000000CAFE4242) stub
00dc:fixme:seh:RaiseFailFastException (00000000019BD2C0, 00000000019BD360, 0) stub
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: My .net windows app crashes in wine for linux

Post by jkfloris »

Why the program doesn't work for you is not entirely clear to me.

Many .Net programs require one of the standard Windows fonts. You can install these fonts with:

Code: Select all

sudo apt install ttf-mscorefonts-installer
Also, there may be incorrect data in: ${HOME}/.winehq/drive_c/users/$USER/AppData/Roaming/com.toketaware/
You can delete this folder, iToughts will create it again.

This section is about the missing spell checker.

Code: Select all

00dc:err:ole:com_get_class_object class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
00dc:err:ole:create_server class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
You can turn this off in the registry.

Code: Select all

WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine regedit
Browse to HKEY_CURRENT_USER\Software\com.toketaware\iThoughts
Edit → New → String Value Value name: spellCheck Value data: 0
Make sure all Wine programs are shut down.

Code: Select all

WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wineserver -k
trinsic
Level 1
Level 1
Posts: 8
Joined: Mon Aug 22, 2022 9:20 am

Re: My .net windows app crashes in wine for linux

Post by trinsic »

Alright so I installed ttf-mscorefonts, removed the ${HOME}/.winehq/drive_c/users/$USER/AppData/Roaming/com.toketaware/ folder and turned off fonts in the registry.

Just for good measure, I reinstalled Ithoughts, i noticed that it hangs on the last line and I need to press return to complete the execution. I got this output:

Code: Select all

WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine msiexec /i ${HOME}/Downloads/iThoughts.msi
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00dc:fixme:file:NtLockFile I/O completion on lock not implemented yet
00dc:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00dc:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 10003241, 28) stub
00dc:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
00dc:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
trinsic@pop-os:~$ 0120:fixme:heap:RtlSetHeapInformation handle 0000000002300000, info_class 0, info 00000000019BF6A0, size 4 stub!
0120:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 00000001800725B7, 28) stub
0120:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0000000003C7CDE4, 28) stub
0120:fixme:heap:GetNumaHighestNodeNumber semi-stub: 00000000019BF9A8
0120:fixme:seh:WerRegisterRuntimeExceptionModule (L"C:\\windows\\Microsoft.NET\\Framework64\\v4.0.30319\\mscordacwks.dll", 0000000003480000) stub
0120:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0128:err:ole:CoGetContextToken apartment not initialised
0120:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 000000001E41AEF1, 28) stub
0120:fixme:nls:get_dummy_preferred_ui_language (0x8 00000000019B9BB4 0000000000000000 00000000019B9BB0) returning a dummy value (current locale)
0120:fixme:nls:get_dummy_preferred_ui_language (0x8 00000000019B9BB4 0000000001B7A0E0 00000000019B9BB0) returning a dummy value (current locale)
0120:fixme:nls:LCMapStringEx unsupported lparam 1b76c90
0120:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0000000004B6D628, 64) stub
0120:fixme:ntdll:NtQuerySystemInformation (0x000000ce,0x19bbc30,0x00000008,(nil)) stub
0120:fixme:bcrypt:BCryptGetFipsAlgorithmMode 00000000019BB9D0 - semi-stub
0120:fixme:shcore:GetCurrentProcessExplicitAppUserModelID 00000000019BE8C8: stub
0120:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0000000004C164C0, 40) stub
0120:fixme:msg:ChangeWindowMessageFilter c038 00000001
0120:fixme:dwmapi:DwmAttachMilContent (0000000000020044) stub
012c:fixme:gdi:GdiEntry13 stub
012c:fixme:dwrite:dwritefactory_CreateMonitorRenderingParams (0000000000000001): monitor setting ignored
012c:fixme:d3d:wined3d_check_device_format_conversion output 0000000001BB4810, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
0120:fixme:virtual:NtFlushProcessWriteBuffers stub
0120:err:ole:com_get_class_object class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
0120:err:ole:create_server class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
0120:fixme:ole:com_get_class_object CLSCTX_REMOTE_SERVER not supported
0120:err:ole:com_get_class_object no class object {7ab36653-1796-484b-bdfa-e74f1db7c1dc} could be created for context 0x15
0120:err:ole:com_get_class_object class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
0120:err:ole:create_server class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
0120:fixme:ole:com_get_class_object CLSCTX_REMOTE_SERVER not supported
0120:err:ole:com_get_class_object no class object {7ab36653-1796-484b-bdfa-e74f1db7c1dc} could be created for context 0x15
0120:fixme:ieframe:ClassFactory_QueryInterface (00000001CE23D158)->({b196b28f-bab4-101a-b69c-00aa00341d07} 00000000019BD438)
0120:fixme:ieframe:WebBrowser_QueryInterface (0000000001D148C0)->({c3fcc19e-a970-11d2-8b5a-00a0c9b7c9c4} 00000000019BD2A0) interface not supported
0120:fixme:ieframe:WebBrowser_QueryInterface (0000000001D148C0)->({af86e2e0-b12d-4c6a-9c5a-d7aa65101e90} 00000000019BCAA8) interface not supported
0120:fixme:ieframe:WebBrowser_QueryInterface (0000000001D148C0)->({ecc8691b-c1db-4dc0-855e-65f6c551af49} 00000000019BC948) interface not supported
0120:fixme:ieframe:WebBrowser_QueryInterface (0000000001D148C0)->({94ea2b94-e9cc-49e0-c0ff-ee64ca8f5b90} 00000000019BC8D0) interface not supported
0120:fixme:ieframe:WebBrowser_QueryInterface (0000000001D148C0)->({00000144-0000-0000-c000-000000000046} 00000000019BCEB0) interface not supported
0120:fixme:ieframe:WBOleCommandTarget_Exec (0000000001D148C0)->((null) 23 0 0000000001B8D380 {VT_BOOL: 0} 0000000000000000)
013c:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0000000029758F20, context 0000000003067B60, init_notify 0, handle 0000000020B4FA90): stub
0120:fixme:imm:ImmGetDescriptionW (0000000004090409, 0000000000000000, 0): semi stub
0120:fixme:imm:ImmGetDescriptionW (0000000004090409, 0000000032EE0B08, 9): semi stub
0120:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (00000000215D15D0)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 00000000019BB2B0)
0120:fixme:file:NtLockFile I/O completion on lock not implemented yet
0120:fixme:ieframe:BrowserService_GetTravelLog 000000002158A540 00000000019BBCA0
0120:fixme:ieframe:ClientSite_GetContainer (0000000001D14A20)->(00000000019BBC18)
0120:fixme:ieframe:ClientSite_GetContainer (0000000001D14A20)->(00000000019BC6B8)
0120:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 00000000019BD760, 0000000001D62850, 00000000019BD768, 00000000019BD758
0120:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 00000000019BD760, 0000000001D62850, 00000000019BD768, 00000000019BD758
0120:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 00000000019BD760, 0000000001D62850, 00000000019BD768, 00000000019BD758
0120:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
0120:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x00000401,0000000000000000,0x0001,0x00000000,00000000019BC6B0,0000000000000000): stub
0120:err:eventlog:ReportEventW L"Application: iThoughts.exe\nFramework Version: v4.0.30319\nDescription: The application requested process termination through System.Environment.FailFast(string message).\nMessage: Unrecoverable system error.\nStack:\n   at System.Environment.FailFast(System.String)\n   at System.Windows."...
0120:fixme:advapi:DeregisterEventSource (00000000CAFE4242) stub
0120:fixme:seh:RaiseFailFastException (00000000019BD2C0, 00000000019BD360, 0) stub


Then I ran the command from the directory and I think its the same error.

Code: Select all

~/.winehq/drive_c/Program Files (x86)/toketaWare/iThoughts$ WINEPREFIX=${HOME}/.winehq /opt/wine-devel/bin/wine iThoughts.exe
009c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
009c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
009c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
009c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00e0:fixme:heap:RtlSetHeapInformation handle 0000000002300000, info_class 0, info 00000000019BF6A0, size 4 stub!
00e0:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 00000001800725B7, 28) stub
00e0:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0000000003C7CDE4, 28) stub
00e0:fixme:heap:GetNumaHighestNodeNumber semi-stub: 00000000019BF9A8
00e0:fixme:seh:WerRegisterRuntimeExceptionModule (L"C:\\windows\\Microsoft.NET\\Framework64\\v4.0.30319\\mscordacwks.dll", 0000000003480000) stub
00e0:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
011c:err:ole:CoGetContextToken apartment not initialised
00e0:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 000000001E41AEF1, 28) stub
00e0:fixme:nls:get_dummy_preferred_ui_language (0x8 00000000019B9BB4 0000000000000000 00000000019B9BB0) returning a dummy value (current locale)
00e0:fixme:nls:get_dummy_preferred_ui_language (0x8 00000000019B9BB4 0000000001B7A4B0 00000000019B9BB0) returning a dummy value (current locale)
00e0:fixme:nls:LCMapStringEx unsupported lparam 1b7acb0
00e0:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0000000004B6D628, 64) stub
00e0:fixme:ntdll:NtQuerySystemInformation (0x000000ce,0x19bbc30,0x00000008,(nil)) stub
00e0:fixme:bcrypt:BCryptGetFipsAlgorithmMode 00000000019BB9D0 - semi-stub
00e0:fixme:shcore:GetCurrentProcessExplicitAppUserModelID 00000000019BE8C8: stub
00e0:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0000000004C164C0, 40) stub
00e0:fixme:msg:ChangeWindowMessageFilter c037 00000001
00e0:fixme:dwmapi:DwmAttachMilContent (000000000002004C) stub
0120:fixme:gdi:GdiEntry13 stub
0120:fixme:dwrite:dwritefactory_CreateMonitorRenderingParams (0000000000000001): monitor setting ignored
0120:fixme:d3d:wined3d_check_device_format_conversion output 0000000001BB76A0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
00e0:fixme:virtual:NtFlushProcessWriteBuffers stub
00e0:err:ole:com_get_class_object class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
00e0:err:ole:create_server class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
00e0:fixme:ole:com_get_class_object CLSCTX_REMOTE_SERVER not supported
00e0:err:ole:com_get_class_object no class object {7ab36653-1796-484b-bdfa-e74f1db7c1dc} could be created for context 0x15
00e0:err:ole:com_get_class_object class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
00e0:err:ole:create_server class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
00e0:fixme:ole:com_get_class_object CLSCTX_REMOTE_SERVER not supported
00e0:err:ole:com_get_class_object no class object {7ab36653-1796-484b-bdfa-e74f1db7c1dc} could be created for context 0x15
00e0:fixme:ieframe:ClassFactory_QueryInterface (00000001CE23D158)->({b196b28f-bab4-101a-b69c-00aa00341d07} 00000000019BD438)
00e0:fixme:ieframe:WebBrowser_QueryInterface (0000000001CFFBC0)->({c3fcc19e-a970-11d2-8b5a-00a0c9b7c9c4} 00000000019BD2A0) interface not supported
00e0:fixme:ieframe:WebBrowser_QueryInterface (0000000001CFFBC0)->({af86e2e0-b12d-4c6a-9c5a-d7aa65101e90} 00000000019BCAA8) interface not supported
00e0:fixme:ieframe:WebBrowser_QueryInterface (0000000001CFFBC0)->({ecc8691b-c1db-4dc0-855e-65f6c551af49} 00000000019BC948) interface not supported
00e0:fixme:ieframe:WebBrowser_QueryInterface (0000000001CFFBC0)->({94ea2b94-e9cc-49e0-c0ff-ee64ca8f5b90} 00000000019BC8D0) interface not supported
00e0:fixme:ieframe:WebBrowser_QueryInterface (0000000001CFFBC0)->({00000144-0000-0000-c000-000000000046} 00000000019BCEB0) interface not supported
00e0:fixme:ieframe:WBOleCommandTarget_Exec (0000000001CFFBC0)->((null) 23 0 0000000001D00230 {VT_BOOL: 0} 0000000000000000)
0130:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0000000029758F20, context 0000000003067B70, init_notify 0, handle 0000000020B4FA90): stub
00e0:fixme:imm:ImmGetDescriptionW (0000000004090409, 0000000000000000, 0): semi stub
00e0:fixme:imm:ImmGetDescriptionW (0000000004090409, 0000000032EE0B08, 9): semi stub
00e0:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (00000000215D3030)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 00000000019BB2B0)
00e0:fixme:file:NtLockFile I/O completion on lock not implemented yet
00e0:fixme:ieframe:BrowserService_GetTravelLog 000000002158BF90 00000000019BBCA0
00e0:fixme:ieframe:ClientSite_GetContainer (0000000001CFFD20)->(00000000019BBC18)
00e0:fixme:ieframe:ClientSite_GetContainer (0000000001CFFD20)->(00000000019BC6B8)
00e0:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 00000000019BD760, 0000000001D62B90, 00000000019BD768, 00000000019BD758
00e0:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 00000000019BD760, 0000000001D62B90, 00000000019BD768, 00000000019BD758
00e0:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 00000000019BD760, 0000000001D62B90, 00000000019BD768, 00000000019BD758
00e0:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
00e0:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x00000401,0000000000000000,0x0001,0x00000000,00000000019BC6B0,0000000000000000): stub
00e0:err:eventlog:ReportEventW L"Application: iThoughts.exe\nFramework Version: v4.0.30319\nDescription: The application requested process termination through System.Environment.FailFast(string message).\nMessage: Unrecoverable system error.\nStack:\n   at System.Environment.FailFast(System.String)\n   at System.Windows."...
00e0:fixme:advapi:DeregisterEventSource (00000000CAFE4242) stub
00e0:fixme:seh:RaiseFailFastException (00000000019BD2C0, 00000000019BD360, 0) stub

It looks like something is wrong with the .net env... Maybe trying to run in a WINEPREFIX? Is there a way to clear and reinstall everything wine related?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: My .net windows app crashes in wine for linux

Post by jkfloris »

Code: Select all

00e0:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
00e0:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x00000401,0000000000000000,0x0001,0x00000000,00000000019BC6B0,0000000000000000): stub
This is the only difference in the output. If I'm correct it has something to do with logging in.
Is this the trial version or is there also a "regular" version of iThoughts?
Is there a way to clear and reinstall everything wine related?
That's why you created a new WINEPREFIX. This allows you to easily start over. You can remove the $HOME/.winehq directory and try again.

Meanwhile, a new Wine version has also been released. It is automatically installed with sudo apt full-upgrade
Locked