Wine application unhandled exception error.

Questions about Wine on Linux
Locked
Saeyrn
Newbie
Newbie
Posts: 3
Joined: Mon Nov 06, 2023 10:06 pm

Wine application unhandled exception error.

Post by Saeyrn »

So I was having issues with wine opening a .exe file. I figured out my issue with that, for some reason wine mono just wasn't appearing, but when I tried to manually add it using the wine uninstaller it appeared. Anyways, after I got passed that hurtle I thought all my issues were gone, the app launched up and I went to click play I was greeted with his wonderful message

(It's probably just me missing something, and I'll admit I'm new to using linux and I'm trying to learn, I've been trying to browse the web to find the answers without bugging people but I couldn't find any solutions. I'm sure the answer is in the text below, but I'm to inexperienced to know how to fix it.)

See the end of this message for details on invoking \njust-in-time (JIT) debugging instead of this dialog box.\n\n************** Exception Text **************\nSystem.Runtime.InteropServices.COMException (0x80004005)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (System.Int32 errorCode) [0x0000a] in <de4d51d88e3b4eea89a8d6a3a9854818>:0
at (wrapper cominterop) IWshRuntimeLibrary.IWshShortcut.set_IconLocation(string)
at (wrapper cominterop-invoke) IWshRuntimeLibrary.IWshShortcut.set_IconLocation(string)
at AutoUpdater.FrmMain.SetGameMode (AutoUpdater.GameMode mode) [0x000ca] in <5d6ba3b7eed644768477c7abab092c68>:0
at AutoUpdater.FrmMain.btnPlayHigh_Click (System.Object sender, System.EventArgs e) [0x00011] in <5d6ba3b7eed644768477c7abab092c68>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <de4d51d88e3b4eea89a8d6a3a9854818>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <de4d51d88e3b4eea89a8d6a3a9854818>:0

\n************** Loaded Assemblies **************\nmscorlib\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/4.5/mscorlib.dll\n----------------------------------------\nAutoUpdater\n Assembly Version: 1.0.0.0\n Win32 Version: 1.0.0.0\n CodeBase: file:///C:/users/gm/Desktop/SunshineCO/AutoUpdater.exe\n----------------------------------------\nSystem.Windows.Forms\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\n----------------------------------------\nSystem\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll\n----------------------------------------\nSystem.Drawing\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\n----------------------------------------\nAccessibility\n Assembly Version: 4.0.0.0\n Win32 Version: \n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll\n----------------------------------------\nAutoUpdaterCore\n Assembly Version: 1.0.0.0\n Win32 Version: 1.0.0.0\n CodeBase: file:///C:/users/gm/Desktop/SunshineCO/AutoUpdaterCore.dll\n----------------------------------------\nSystem.Configuration\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\n----------------------------------------\nWineMono.I18N\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/WineMono.I18N/4.0.0.0__0738eb9f132ed756/WineMono.I18N.dll\n----------------------------------------\nWineMono.I18N.West\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/WineMono.I18N.West/4.0.0.0__0738eb9f132ed756/WineMono.I18N.West.dll\n----------------------------------------\nSystem.Core\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll\n----------------------------------------\nWineMono.Security\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/WineMono.Security/4.0.0.0__0738eb9f132ed756/WineMono.Security.dll\n----------------------------------------\nSystem.Xml\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll\n----------------------------------------\nSystem.Numerics\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Numerics/4.0.0.0__b77a5c561934e089/System.Numerics.dll\n----------------------------------------\nSystem.Management\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Management/4.0.0.0__b03f5f7f11d50a3a/System.Management.dll\n----------------------------------------\nPresentationFramework\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/PresentationFramework/4.0.0.0__31bf3856ad364e35/PresentationFramework.dll\n----------------------------------------\nPresentationCore\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/PresentationCore/4.0.0.0__31bf3856ad364e35/PresentationCore.dll\n----------------------------------------\nWindowsBase\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll\n----------------------------------------\nSystem.Xaml\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Xaml/4.0.0.0__b77a5c561934e089/System.Xaml.dll\n----------------------------------------\n\n************** JIT Debugging **************\n
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine application unhandled exception error.

Post by jkfloris »

Wine-mono replaces the Microsoft .Net Framework, but not all .Net features are currently supported.
You could try to install the Microsoft .Net Framework with winetricks:

Code: Select all

winetricks -q dotnet48
Saeyrn
Newbie
Newbie
Posts: 3
Joined: Mon Nov 06, 2023 10:06 pm

Re: Wine application unhandled exception error.

Post by Saeyrn »

So I added .Net like you suggested. I still get an unhandled exception, but its a new error this time. So I'm thinking maybe the application I'm trying to run isn't compatible. Either that or I'm still just missing something. I'm currently using a wineprefix 32 arch type for this install, but I tried a 64 bit arch type and it gave me the same error. So I'm not sure if its some other dependency that I've forgotten to install. Not sure what other information I could give to help narrow down the solution.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at IWshRuntimeLibrary.IWshShortcut.set_IconLocation(String out_IconPath)
at AutoUpdater.FrmMain.SetGameMode(GameMode mode)
at AutoUpdater.FrmMain.<btnPlayHigh_Click>d__83.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
AutoUpdater
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/users/gm/Desktop/Sunshine%20Conquer/AutoUpdater.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
AutoUpdaterCore
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/users/gm/Desktop/Sunshine%20Conquer/AutoUpdaterCore.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine application unhandled exception error.

Post by jkfloris »

Can you post the output you get before the error?
If the program is (freely) available, a link to it will also help.
Saeyrn
Newbie
Newbie
Posts: 3
Joined: Mon Nov 06, 2023 10:06 pm

Re: Wine application unhandled exception error.

Post by Saeyrn »

So I've tried using the cmd line to launch the application as well as just double clicking on the icon wine creates as if it was a windows environment. When I try to use it like a windows environment and just double click, then hit play I get the unhand-led exception. When I try to launch through the cmd line, I get this instead.

(The error repeats it self, so I just shortened it)

https://sunshineconquer.com/Home/Download Here is the application/game I am trying to run.

I've tried looking up this error code, but I cant find anything relevant to my situation. I did find one thing that might of been the issue, something to do with a app verifier but I wasn't sure if that was relevant to this situation. Since the error they were having wasn't the same as mine, just similar.

──(gm㉿GM)-[~/Desktop/Sunshine Conquer]
└─$ wine SunshineConquer.exe
Sunshine Conquer Loading...
Game Updates checking...
Connection to the server has been established....
Your version : 1036 Latest version : 1036
Your game is up to date, we wish you good games.
0134:err:heap:unsafe_heap_from_handle Invalid handle 00000000!
0134:err:heap:unsafe_heap_from_handle Invalid handle 00000000!
0134:err:heap:unsafe_heap_from_handle Invalid handle 00000000!
0134:err:heap:unsafe_heap_from_handle stack overflow 388 bytes addr 0x10042139 stack 0xe70e7c (0xe70000-0xe71000-0xf70000)
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine application unhandled exception error.

Post by jkfloris »

Not entirely sure, but I think this is a problem with GuardShield. Unfortunately, I can't find much information about it, but it looks like some kind of anti-cheat or copy protection.

You can file a bug so the Wine developers can look into it.
Locked