https://bugs.winehq.org/show_bug.cgi?id=45748
Bug ID: 45748 Summary: System.Windows.Markup.XamlParseException Product: Wine Version: 3.0.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: ncdehnel@gmail.com Distribution: ---
Created attachment 62189 --> https://bugs.winehq.org/attachment.cgi?id=62189 errors
Error from trying to run Halo SPV3 installer. Happens with vanilla 3.0.2 and staging 3.13.
https://bugs.winehq.org/show_bug.cgi?id=45748
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Are you using wine-mono or native .NET?
https://bugs.winehq.org/show_bug.cgi?id=45748
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Keywords| |dotnet, download, Installer Summary|System.Windows.Markup.XamlP |Halo SPV3 installer (.NET |arseException |4.5 app) fails to run, | |reports | |'System.Windows.Markup.Xaml | |Reader.RewrapException' URL| |https://www.reddit.com/r/ha | |lospv3/comments/6umz3f/spv3 | |1_released_all_new_install_ | |method_11_missions/
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
the installer runs further for me here, albeit in different problems.
@Fabin
--- quote --- Are you using wine-mono or native .NET? --- quote ---
That's pretty obvious from the console output. Only native .NET Framework (CLR) prints the managed exception in that way.
--- snip --- ... 0054:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub 0054:fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000402,(nil),0x0001,0x00000000,0x33dea8,(nil)): stub 0054:err:eventlog:ReportEventW L"Application: experience.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.Windows.Markup.XamlParseException\nStack:\n at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, Sys"... 0054:fixme:advapi:DeregisterEventSource (0xcafe4242) stub wine: Unhandled exception 0xe0434352 in thread 54 at address 0x110023:0x7b437c0a (thread 0054), starting debugger... --- snip ---
Sadly OP didn't provide any more details, for example which version and how .NET Framework was installed. Also which application binary did he run.
--- snip --- nathan@gentoodesktop ~/Downloads/New Folder $ wine ./*.exe --- snip ---
This is not very useful, always specify the application name explicitly. I guess he probably run 'SPV3-xxx.exe' which in turn run the extracted 'experience.exe' but well.
Anyway I'm pretty sure OP didn't bother to check the actual installer requirements and only installed .NET Framework 4.0 in the WINEPREFIX.
With .NET 4.0 installed only, the (inner) XAML exception is exactly what you get:
--- snip --- 0009:fixme:shell:URL_ParseUrl failed to parse L"System.Xml" ... Unhandled Exception: System.Windows.Markup.XamlParseException: Set property 'System.Windows.ResourceDictionary.Source' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount) at System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount) at System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) at System.Reflection.CustomAttributeData..ctor(RuntimeModule scope, CustomAttributeRecord caRecord) at System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule module, Int32 tkTarget) at System.Reflection.CustomAttributeData.GetCustomAttributesInternal(RuntimeAssembly target) at System.Reflection.RuntimeAssembly.GetCustomAttributesData() at System.Reflection.CustomAttributeData.GetCustomAttributes(Assembly target) at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(Assembly a, UltimateResourceFallbackLocation& fallbackLocation) at System.Resources.ResourceManager.CommonSatelliteAssemblyInit() at System.Resources.ResourceManager..ctor(String baseName, Assembly assembly) at MS.Internal.Resources.ResourceManagerWrapper.get_ResourceManager() at MS.Internal.Resources.ResourceManagerWrapper.GetStream(String name) at MS.Internal.AppModel.ResourcePart.EnsureResourceLocationSet() at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access) at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access) at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream() at System.IO.Packaging.PackWebResponse.GetResponseStream() at System.IO.Packaging.PackWebResponse.get_ContentType() at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response) at System.Windows.ResourceDictionary.set_Source(Uri value) at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_Source>b__1c4(Object target, Object value) at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value) --- End of inner exception stack trace --- at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at Experience.GUI.App.InitializeComponent() at Experience.GUI.App.Main() --- snip ---
This is expected since .NET 4.5 is not installed.
$ du -sh SPV3.1.0f.exe 2.2G SPV3.1.0f.exe
$ sha1sum SPV3.1.0f.exe 3a407b221070f9fd560d81cb1687850667650585 SPV3.1.0f.exe
$ wine --version wine-3.15
Regards
https://bugs.winehq.org/show_bug.cgi?id=45748
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Anastasius Focht from comment #2)
Hello folks,
the installer runs further for me here, albeit in different problems.
Is that a crash inside wmp? That`s at least what I get here (winetricks quartz helps around the crash here). To make this bugreport useful I guess we should change the subject?
@ Reporter of bug, could you report back what happens if you run the installer after ``winetricks dotnet45`` (in clean prefix)
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #4 from Nathan Dehnel ncdehnel@gmail.com --- (In reply to Louis Lenders from comment #3)
(In reply to Anastasius Focht from comment #2)
Hello folks,
the installer runs further for me here, albeit in different problems.
Is that a crash inside wmp? That`s at least what I get here (winetricks quartz helps around the crash here). To make this bugreport useful I guess we should change the subject?
@ Reporter of bug, could you report back what happens if you run the installer after ``winetricks dotnet45`` (in clean prefix)
https://github.com/Winetricks/winetricks/issues/1091
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com ---
Then please try again with wine-3.17 (just released) or wine-staging-3.17 (i guess released this weekend) and report back please.I think installing dotnet45 should work again in those versions
https://bugs.winehq.org/show_bug.cgi?id=45748
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Halo SPV3 installer (.NET |Halo SPV3 installer (.NET |4.5 app) fails to run, |4.5 app) fails to run, |reports |crashes inside wmp (native |'System.Windows.Markup.Xaml |quartz works around it) |Reader.RewrapException' |
--- Comment #6 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi, I`m setting title to current behaviour with dotnet45 installed (because the title now describes a crash that is most likely due to missing .net45 as Focht said).
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #7 from Nathan Dehnel ncdehnel@gmail.com --- Created attachment 62527 --> https://bugs.winehq.org/attachment.cgi?id=62527 install log
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #8 from Nathan Dehnel ncdehnel@gmail.com --- Created attachment 62528 --> https://bugs.winehq.org/attachment.cgi?id=62528 launch log
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #9 from Nathan Dehnel ncdehnel@gmail.com --- Dotnet45 installs now, I got nearly all the way through the installation (freezes at "creating desktop icons"), program hangs if I try to start it directly.
https://bugs.winehq.org/show_bug.cgi?id=45748
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #10 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-5.10?
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #11 from Nathan Dehnel ncdehnel@gmail.com --- Created attachment 67450 --> https://bugs.winehq.org/attachment.cgi?id=67450 wine 5.10 vanill log
It seems to freeze.
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #12 from joaopa jeremielapuree@yahoo.fr --- Did you install Net 4.5? If not, winetricks -q dotnet45 should do the trick.
This bug report assumes it is installed.
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #13 from Nathan Dehnel ncdehnel@gmail.com --- It's installed, yes.
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #14 from joaopa jeremielapuree@yahoo.fr --- You need to launch the executable in the folder where it is installed
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #15 from Nathan Dehnel ncdehnel@gmail.com --- nathan@gentoodesktop ~/Downloads $ WINEARCH=win32 WINEPREFIX=~/.wine32 winetricks dotnet45 nathan@gentoodesktop ~/Downloads $ WINEARCH=win32 WINEPREFIX=~/.wine32 wine /home/nathan/Downloads/filedataSPV3.2.0.exe
https://bugs.winehq.org/show_bug.cgi?id=45748
nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch
--- Comment #16 from nekoNexus@protonmail.ch --- Created attachment 70827 --> https://bugs.winehq.org/attachment.cgi?id=70827 Wine Staging 6.16 Output Logs
The SPV3 (version 3.3.0) installer still doesn't work in Wine, even with .NET 4.5 installed with Winetricks. However, with .NET 4.5 installed, Wine claims that the installer is a "bad EXE format" and doesn't provide any information other than that.
(Ignore the libgtk-nocsd messages, all it does is replace GTK app borders with KDE Plasma Qt ones)
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #17 from joaopa jeremielapuree@yahoo.fr --- Can this software be downloaded freely and legally?
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #18 from nekoNexus@protonmail.ch --- Yes but there's something to note about it:
It's free to download and install, but it enforces the legality side of it by verifying you actually own the Halo Combat Evolved or Custom Edition and it does so in one of two ways by user choice:
- Own Halo Combat Evolved Anniversary by pointing it towards your Steam installation of the game - Or verify that you own the game by entering a CD key that the installer recognizes (these are predefined CD keys determined by the original Halo CE installer; I don't advise anyone do this but these keys have been floating around the internet for about 2 decades)
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #19 from nekoNexus@protonmail.ch --- I found out that the SPV3 "Loader" (more or less the associated launcher/installer is open-source:
https://github.com/HaloSPV3/SPV3-Loader
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #20 from nekoNexus@protonmail.ch --- Created attachment 71707 --> https://bugs.winehq.org/attachment.cgi?id=71707 Vanilla Wine 7.0 Logs and Backtrace (Clean 64-bit Prefix)
UPDATE:
SHA256 of spv3.exe (installer): 6c18d9a089ed17a764e9e56ca52764358ef3f26c4f2f9022b68a1df5e35a5089
Version 3.3 Installer download location: https://www.moddb.com/mods/spv3-for-halo-ce/downloads/spv330-release
Still doesn't run with vanilla Wine 7.0 I managed to collect a backtrace this time though; something I wasn't able to do before.
(7.0 isn't in the Arch repo yet, so I compiled it myself)
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #21 from nekoNexus@protonmail.ch --- Created attachment 71708 --> https://bugs.winehq.org/attachment.cgi?id=71708 Vanilla Wine 7.0 Logs and Backtrace (DXVK Installed -- 64-bit Prefix)
I also ran the same test twice, but with DXVK installed
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #22 from nekoNexus@protonmail.ch --- Created attachment 71709 --> https://bugs.winehq.org/attachment.cgi?id=71709 Vanilla Wine 7.0 Terminal Output (Dotnet45 - 64-bit)
This is the test run in a Vanilla Wine 7.0 dotnet45 prefix
It produces a stack overflow error after claiming it received a call for an unimplemented function, and then repeating that many times.
https://bugs.winehq.org/show_bug.cgi?id=45748
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://www.reddit.com/r/ha |https://archive.org/downloa |lospv3/comments/6umz3f/spv3 |d/halo-spv3.3.0.1/spv3.3.0. |1_released_all_new_install_ |1.zip |method_11_missions/ | Summary|Halo SPV3 installer (.NET |Halo SPV3 installer (.NET |4.5 app) fails to run, |4.5/4.6 app) fails to run |crashes inside wmp (native | |quartz works around it) | Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1
--- Comment #23 from Anastasius Focht focht@gmx.net --- Hello folk,
I don't think it's useful to continue this ticket further. Bugzilla is not meant for end user support to diagnose broken installations.
Most of the issues (if not all) hint at end users not properly installing .NET Frameworks.
@comment #11 ... @comment #22
--- quote --- wine: Call from 00000001700506F9 to unimplemented function MSVCR100_CLR0400.dll._initterm_e, aborting wine: Call from 00000001700506F9 to unimplemented function MSVCR100_CLR0400.dll.__C_specific_handler, aborting
... It produces a stack overflow error after claiming it received a call for an unimplemented function, and then repeating that many times. --- quote ---
That's because the Windows version of the WINEPREFIX is set to 'Windows 2003' (probably due to winetricks). You need at least 'Windows 7' by design.
====
Anyway, I've checked with SPV3 3.3.x release from comment #20
https://www.moddb.com/mods/spv3-for-halo-ce/downloads/spv330-release
Uploaded to archive.org:
https://archive.org/details/halo-spv3.3.0.1
https://archive.org/download/halo-spv3.3.0.1/spv3.3.0.1.zip
$ sha1sum spv3.3.0.1.zip 1cc007299c2891cb51ba1363712bbf9ea239630c spv3.3.0.1.zip
$ du -sh spv3.3.0.1.zip 4.5G spv3.3.0.1.zip
====
Running SPV3 3.3.x 'spv3.exe' from the unpacked .zip in a WINEPREFIX with .NET Framework 4.5 installed ('winetricks -q dotnet45') yields:
--- snip --- ... 0104:err:eventlog:ReportEventW L"Application: spv3.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.Windows.Markup.XamlParseException\nStack:\n at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInf"... 0104:fixme:advapi:DeregisterEventSource (00000000CAFE4242) stub
Unhandled Exception: System.Windows.Markup.XamlParseException: Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object)'. ---> System.MissingMethodException: Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object)'. at MahApps.Metro.Controls.TransitioningContentControl.OnTransitionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) ... at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at SPV3.App.Main() wine: Unhandled exception 0xe0434352 in thread 104 at address 000000007B012C15 (thread 0104), starting debugger... --- snip ---
https://stackoverflow.com/questions/30558827/method-not-found-system-string-...
The installer needs .NET Framework 4.6.
I spare you another try: it later says explicitly that it needs at least .NET Framework 4.6.1
-> 'winetricks -q dotnet461'
Additionally needed (usually prerequisite for many .NET 4.x UI apps):
-> 'winetricks -q arial'
After that the installer wants a valid Halo CE game installation to continue. You can get one here:
https://haloce3.com/downloads/official-files/halo-custom-edition-game-englis...
archive.org stable link:
https://web.archive.org/web/20200104212910/http://dl.halomaps.org/dl.cfm?fid...
https://www.virustotal.com/gui/file/011b03b61634561d7c1b6090e7229fe0a2df40de...
$ sha1sum halocesetup_en_1.00.exe 36e8f2578ca8d9a3b2a0aacd15a05abf865010b2 halocesetup_en_1.00.exe
$ du -sh halocesetup_en_1.00.exe 171M halocesetup_en_1.00.exe
For installation of Halo CE you need a valid serial number. I'm sure you know how to use a search engine. For the serial validation, the Halo CE installer uses 'pidgen.dll' (https://bugs.winehq.org/show_bug.cgi?id=657#c112)
-> 'winetricks -q mfc42'
With that in place, the installer does its job and successfully installs the launcher/mod.
====
Please use https://forum.winehq.org/ unless you are really sure there is a Wine bug.
$ wine --version wine-7.0-119-gc09a5da1575
Regards
https://bugs.winehq.org/show_bug.cgi?id=45748
--- Comment #24 from nekoNexus@protonmail.ch --- Then what information should be provided to make this ticket relevant?
This might just be user-misconception, but the issue was reported because it's an installer and doesn't run out of the box? Is that alone not a reason to have it?
Mono compatibility with .NET programs is pretty confusing, much less not knowing the exact .NET versioning required otherwise, for the average user.
It was my intention to assist doing whatever I can in getting to the bottom of it, not be a hindrance or annoyance.
-----
(That aside, I currently can't install dotnet461 anyway: https://bugs.winehq.org/show_bug.cgi?id=52450 )