https://bugs.winehq.org/show_bug.cgi?id=49449
Bug ID: 49449 Summary: Terraria Server (.NET 4.x) crashes with System.NotImplementedException NATUPNPLib.IUPnPNAT.get_StaticPortMappingCollection() Product: Wine Version: 5.11 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: hnetcfg Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
extracted from https://bugs.winehq.org/show_bug.cgi?id=46005#c5
--- snip --- 0009:err:eventlog:ReportEventW L"Application: TerrariaServer.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.NotImplementedException\n at NATUPNPLib.IUPnPNAT.get_StaticPortMappingCollection()\n at Terraria.Netplay..cctor()\n\nException"... 0009:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Terraria.Main' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Terraria.Netplay' threw an exception. ---> System.NotImplementedException: The method or operation is not implemented. at NATUPNPLib.IUPnPNAT.get_StaticPortMappingCollection() at Terraria.Netplay..cctor() --- End of inner exception stack trace --- at Terraria.Main..cctor() --- End of inner exception stack trace --- at Terraria.Main..ctor() at Terraria.Program.LaunchGame(String[] args) at Terraria.WindowsLaunch.Main(String[] args) wine: Unhandled exception 0xe0434352 in thread 9 at address 7B00DFA2 (thread 0009), starting debugger... --- snip ---
It was reported with Wine 5.0.1 but source inspection reveals the problem is still present with Wine 5.11.
Wine source:
https://source.winehq.org/git/wine.git/blob/1f6423f778f7036a3875613e10b9c8c3...
--- snip --- 717 static HRESULT WINAPI upnpnat_get_StaticPortMappingCollection(IUPnPNAT *iface, IStaticPortMappingCollection **collection) 718 { 719 upnpnat *This = impl_from_IUPnPNAT( iface ); 720 FIXME("%p, %p\n", This, collection); 721 if(collection) 722 *collection = NULL; 723 return E_NOTIMPL; 724 } --- snip ---
$ wine --version wine-5.11-111-g1f6423f778
Regards