https://bugs.winehq.org/show_bug.cgi?id=48775
Bug ID: 48775 Summary: Microsoft Teams 1.3.x crashes on unimplemented function IPHLPAPI.DLL.NotifyRouteChange2 Product: Wine Version: 5.4 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: iphlpapi Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
as it says. Crashes after login. Yes, there exist a native Linux client (Electron app) but that's not the point here.
Prerequisite: 'winetricks -q dotnet45' (without Wine-Mono)
Workaround for bug 41713 using Wine-Staging
--- snip --- $ wine runas /trustlevel:0x20000 "cmd /c start Teams_windows.exe" ... 0017:fixme:winsock:WSAIoctl WS_SIO_UDP_CONNRESET stub 00ef:fixme:iphlpapi:NotifyUnicastIpAddressChange (family 0, callback 0xd141c30, context 0xc768a58, init_notify 0, handle 0xc768acc): semi-stub wine: Call from 0x7bc93ec9 to unimplemented function IPHLPAPI.DLL.NotifyRouteChange2, aborting wine: Unimplemented function IPHLPAPI.DLL.NotifyRouteChange2 called at address 7BC93EC9 (thread 00ef), starting debugger... --- snip ---
Wine source:
https://source.winehq.org/git/wine.git/blob/c43998cb51c53ab9c355c2ff37489d51...
--- snip --- 239 #@ stub NotifyRouteChange2 --- snip ---
Microsoft docs:
https://docs.microsoft.com/en-us/windows/win32/api/netioapi/nf-netioapi-noti...
Download link:
https://statics.teams.cdn.office.net/production-windows/1.3.00.3564/Teams_wi...
$ du -sh Teams_windows.exe 90M Teams_windows.exe
$ sha1sum Teams_windows.exe cc4f5bdaccedbb3f6fec76a74254d650a596b1a5 Teams_windows.exe
$ wine --version wine-5.4-128-gc43998cb51
Regards
https://bugs.winehq.org/show_bug.cgi?id=48775
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |https://statics.teams.cdn.o | |ffice.net/production-window | |s/1.3.00.3564/Teams_windows | |.exe
https://bugs.winehq.org/show_bug.cgi?id=48775
Graham Perrin grahamperrin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |grahamperrin@gmail.com
--- Comment #1 from Graham Perrin grahamperrin@gmail.com --- Slightly more recent (1.3.00.12058):
https://statics.teams.cdn.office.net/production-windows-x64/1.3.00.12058/Tea...
I'm following this bug as a user of Wine on FreeBSD-CURRENT.
https://bugs.winehq.org/show_bug.cgi?id=48775
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 67099 --> https://bugs.winehq.org/attachment.cgi?id=67099 stub for NotifyRouteChange2
Hi, attached a stub. This allowed me to get first window without crash, but the very moment i clicked on "enter a code to join" or something, it crashed like:
0370:err:module:import_dll Library MAGNIFICATION.dll (which is needed by L"C:\users\louis\Local Settings\Application Data\Microsoft\Teams\current\resources\app.asar.unpacked\node_modules\slimcore\bin\ssScreenVVS2.dll") not found . . . wine: Call from 0x7b00de57 to unimplemented function setupapi.dll.CM_Get_Device_Interface_AliasW, aborting wine: Unimplemented function setupapi.dll.CM_Get_Device_Interface_AliasW called at address 7B00DE57 (thread 03a0), starting debugger...
Further i noticed that when i try to start the app second time, I get a (100% reproducible) crash inside xul (with or without the attached stub). The app doesn`t get really far any more
@Focht: did you get those crashes inside xul too, when you try restart the app?
https://bugs.winehq.org/show_bug.cgi?id=48775
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 67105 --> https://bugs.winehq.org/attachment.cgi?id=67105 add stub for CM_Get_Device_Interface_AliasW
With attached additional setupapi stub the application can start for me without crashing.
I can click things, and at first sight app seems to work ok. Couldn`t test "Join a team" as i have no team to join ;)
To work around the crash in xul, that appears for me when i try to start the app for 2nd time, native mshtml/ieframe and friends can be used apparently (installed via ie8 winetricks script (i used 64 bit from https://github.com/PietJankbal/storage/blob/master/ie8_server2003.txt)
https://bugs.winehq.org/show_bug.cgi?id=48775
--- Comment #4 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi,
patch from comment #2 has been committed in current git as 62b89ad0a5be0e12e2798b5b3cf25f6029b01be6
Could you retest with current git?
Regards
https://bugs.winehq.org/show_bug.cgi?id=48775
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |62b89ad0a5be0e12e2798b5b3cf | |25f6029b01be6
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/62b89ad0a5be0e12e2798b5b3c... ("iphlpapi: Add stub for NotifyRouteChange2.")
Thanks Louis
--- snip --- $ pwd /home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/Microsoft/Teams/current
$ WINEDEBUG=+seh,+relay,+iphlpapi wine ./Teams.exe >>log.txt 2>&1 ... 079c:Call iphlpapi.NotifyUnicastIpAddressChange(00000000,0aef1c30,06dd7f10,00000000,06dd7f84) ret=0aef1197 079c:fixme:iphlpapi:NotifyUnicastIpAddressChange (family 0, callback 0xaef1c30, context 0x6dd7f10, init_notify 0, handle 0x6dd7f84): semi-stub 079c:Ret iphlpapi.NotifyUnicastIpAddressChange() retval=00000000 ret=0aef1197 ... 079c:Call iphlpapi.NotifyRouteChange2(00000000,0aef15e0,06dd7f10,00000000,06dd7f88) ret=0aef11b0 079c:fixme:iphlpapi:NotifyRouteChange2 (family 0, callback 0xaef15e0, context 0x6dd7f10, init_notify 0, handle 0x6dd7f88): stub 079c:Ret iphlpapi.NotifyRouteChange2() retval=00000000 ret=0aef11b0 ... 07a0:Call iphlpapi.NotifyUnicastIpAddressChange(00000000,0aef1c30,06dec5a0,00000000,06dec614) ret=0aef1197 07a0:fixme:iphlpapi:NotifyUnicastIpAddressChange (family 0, callback 0xaef1c30, context 0x6dec5a0, init_notify 0, handle 0x6dec614): semi-stub 07a0:Ret iphlpapi.NotifyUnicastIpAddressChange() retval=00000000 ret=0aef1197 ... 07a0:Call iphlpapi.NotifyRouteChange2(00000000,0aef15e0,06dec5a0,00000000,06dec618) ret=0aef11b0 07a0:fixme:iphlpapi:NotifyRouteChange2 (family 0, callback 0xaef15e0, context 0x6dec5a0, init_notify 0, handle 0x6dec618): stub 07a0:Ret iphlpapi.NotifyRouteChange2() retval=00000000 ret=0aef11b0 --- snip ---
I will create a new ticket for the 'setupapi.dll.CM_Get_Device_Interface_AliasW' crash, mentioned in comment #3 . Different issues -> separate tickets.
$ wine --version wine-5.8-63-g26b26a2e0e
Regards
https://bugs.winehq.org/show_bug.cgi?id=48775
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.9.
https://bugs.winehq.org/show_bug.cgi?id=48775
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://statics.teams.cdn.o |https://web.archive.org/web |ffice.net/production-window |/20200319204956/https://sta |s/1.3.00.3564/Teams_windows |tics.teams.cdn.office.net/p |.exe |roduction-windows/1.3.00.35 | |64/Teams_windows.exe