thpatch / thpatch/thcrap

Error while trying to run thcrap with wine

Open
#194 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Wine
Dominant language
C++
Stars
766
Forks
51
Avg merge
16d 14h
Merged PRs (30d)
1

Description

using latest release - https://github.com/thpatch/thcrap/releases/tag/2022-08-17

wine version - 6.0.3
dotnet 461 (installed with script in /bin/scripts)

wine thcrap.exe leads to

0230:err:mscoree:mono_assembly_preload_hook_fn Failed to load L"C:\\windows\\Microsoft.NET\\assembly\\GAC_64\\PresentationCore\\v4.0_4.0.0.0__31bf3856ad364e35\\PresentationCore.dll", status=3

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Uri' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.UriParser' threw an exception. ---> System.MissingMethodException: Method not found: bool System.Runtime.Versioning.BinaryCompatibility.get_TargetsAtLeast_Desktop_V4_5()
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at System.Uri..cctor () [0x00117] in <c251657a892848699043ad3913d9e471>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Navigation.BaseUriHelper..cctor () [0x00000] in <026f8b89478e44f69208fca17e99e530>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Application.ApplicationInit () [0x0000a] in <fc6817682acc449bb84974d62f4c4342>:0 
  at System.Windows.Application..cctor () [0x0002e] in <fc6817682acc449bb84974d62f4c4342>:0 
   --- End of inner exception stack trace ---
  at thcrap_configure_v3.App..ctor () [0x00000] in <f29aa71e203045e2b9dc1245415aca32>:0 
  at thcrap_configure_v3.App.Main () [0x00000] in <f29aa71e203045e2b9dc1245415aca32>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.Type
InitializationException: The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception. ---> System.TypeInitializationException: The type
 initializer for 'System.Uri' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.UriParser' threw an exception. ---> S
ystem.MissingMethodException: Method not found: bool System.Runtime.Versioning.BinaryCompatibility.get_TargetsAtLeast_Desktop_V4_5()
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at System.Uri..cctor () [0x00117] in <c251657a892848699043ad3913d9e471>:0
   --- End of inner exception stack trace ---
  at System.Windows.Navigation.BaseUriHelper..cctor () [0x00000] in <026f8b89478e44f69208fca17e99e530>:0
   --- End of inner exception stack trace ---
  at System.Windows.Application.ApplicationInit () [0x0000a] in <fc6817682acc449bb84974d62f4c4342>:0
  at System.Windows.Application..cctor () [0x0002e] in <fc6817682acc449bb84974d62f4c4342>:0
   --- End of inner exception stack trace ---
  at thcrap_configure_v3.App..ctor () [0x00000] in <f29aa71e203045e2b9dc1245415aca32>:0
  at thcrap_configure_v3.App.Main () [0x00000] in <f29aa71e203045e2b9dc1245415aca32>:0

same log in txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing wine thcrap.exe with the 2022-08-17 release, Wine 6.0.3, and dotnet 461, then compare the attached log with the System.Windows.Application failure. Trace the thcrap_configure_v3.App.Main entry point; done means identifying a reproducible fix or documenting the required Wine/.NET setup.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.