https://bugs.winehq.org/show_bug.cgi?id=44730
Bug ID: 44730 Summary: wineserver freeze, 50% CPU, with Metarader 5 Product: Wine Version: 3.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wineserver Assignee: wine-bugs@winehq.org Reporter: tpaul2015@yandex.com Distribution: ---
Created attachment 60738 --> https://bugs.winehq.org/attachment.cgi?id=60738 shutdown messages
Built wine 3.3 from source using wow64 method on Centos 7. I used wine to install Metatrader 5, https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe,
Then $cd .wine/drive_c/Program\ Files/MetaTrader\ 5/ $wine64 terminal64.exe 0009:fixme:heap:RtlSetHeapInformation 0x370000 0 0x23ed20 4 stub
Occasionally it runs without a problem. Often Metrader5 will not launch, wineserver goes to around 50% CPU and cannot be killed. (wineserver -k9). Need to reboot the system. On shutting down Centos states "failed to unmount /home"
ERROR: 0009:fixme:heap:RtlSetHeapInformation 0x370000 0 0x23ed20 4 stub OS: Centos 7 Kernel: 3.10.0-693.17.1.el7.x86_64 CPU: AMD Athlon 7750 Dual-Core Processor
https://bugs.winehq.org/show_bug.cgi?id=44730
tpaul2015@yandex.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED
--- Comment #1 from tpaul2015@yandex.com --- Not an issue. Was in fact running v3.0 (from PATH) instead of v3.3 from build dir. Neglected the ./
So in conclusion, 3.3 works fine and 3.0 doesn't.
https://bugs.winehq.org/show_bug.cgi?id=44730
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|wineserver freeze, 50% CPU, |64-bit MetaTrader5 fails to |with Metarader 5 |run Keywords| |download, obfuscation URL| |https://download.mql5.com/c | |dn/web/metaquotes.software. | |corp/mt5/mt5setup.exe Component|wineserver |-unknown CC| |focht@gmx.net
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
very likely dupe of existing bugs. For example bug 42716 (which got fixed in Wine 3.1)
Anyway, from the symptoms it seems you had a broken Wine 3.0 build (and/or broken host deps) anyway.
Regards
https://bugs.winehq.org/show_bug.cgi?id=44730
tpaul2015@yandex.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |---
--- Comment #3 from tpaul2015@yandex.com --- No, sorry, this is NOT resolved. I spoke prematurely. Re Anastasius Focht, this is not the same bug as you mention. I DID get your bug when I tried to run Wine 2.0, "appears to be a de-bugger running" or similar.
I have now tried with Wine 3.0, Wine 3.2 and Wine 3.3. ALL display the same behaviour. When I execute "$wine terminal.exe" (from within "drive_c/Program Files/Metatrader 5" dir) MT5, more often than not, will not launch and wineserver goes to around 50%. Can not kill it (wineserver -k9), can not CTRL C, Z, whatever. Nothing will kill it. Have to reboot. Very occasionally it will launch (interestingly, usually straight after it has been installed, before shutdown) and when it does it works fine.
Incidentally it makes no difference if I build the 32 bit Wine or 64/32 bit Wow Wine. Or install mt5 32 bit (terminal.exe), or mt5 64bit (terminal64.exe), results are the same. Also the problem is still present in Crossover, unsurprisingly.
I'm willing to help in anyway I can to resolve this. Just let me know what you guys need.
BashTin.
https://bugs.winehq.org/show_bug.cgi?id=44730
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|64-bit MetaTrader5 fails to |64-bit MetaTrader5 |run |frequently hangs/live-loops | |on startup
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello again,
well, I can't confirm this behaviour with the app installed from the download link, works fine with Wine 3.3
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/MetaTrader 5
$ wine ./terminal.exe ... --- snip ---
I don't see any significant load for 'terminal.exe' app process and wineserver itself (except for startup phase which is fine). 'perf' tool doesn't show anything unusual.
--- snip --- $ sudo perf top -K -s comm,dso,symbol --- snip ---
If you can't kill 'wineserver' by any means then the process is very likely in state D (uninterruptible sleep). Check 'ps' output.
--- snip --- $ for i in `pgrep wineserver` ; do ps -fp $i ; cat /proc/$i/status ; done UID PID PPID C STIME TTY TIME CMD focht 12900 1 7 19:59 ? 00:01:35 /home/focht/projects/wine/wine.repo/install/bin/wineserver Name: wineserver State: S (sleeping) Tgid: 12900 Ngid: 0 Pid: 12900 PPid: 1 TracerPid: 0 Uid: 1000 1000 1000 1000 Gid: 1000 1000 1000 1000
...
$ for i in `pgrep wineserver` ; do ps -fp $i ; cat /proc/$i/task/*/stack ; done UID PID PPID C STIME TTY TIME CMD focht 12900 1 7 19:59 ? 00:01:31 /home/focht/projects/wine/wine.repo/install/bin/wineserver [<ffffffff81275962>] ep_poll+0x2d2/0x3e0 [<ffffffff81276b58>] SyS_epoll_wait+0xb8/0xd0 [<ffffffff817a25ae>] entry_SYSCALL_64_fastpath+0x12/0x71 [<ffffffffffffffff>] 0xffffffffffffffff --- snip ---
I guess something on your distro is simply broken, it could be anything.
* Linux kernel bug(s) * broken userland libs * buggy compiler ...
$ sha1sum mt5setup.exe 98e6bfa6e6eceb9d97b6f7f5dc7dc0661833ba95 mt5setup.exe
$ du -sh mt5setup.exe 1.3M mt5setup.exe
$ wine --version wine-3.3-263-gbf7b21ec7b
Regards
https://bugs.winehq.org/show_bug.cgi?id=44730
--- Comment #5 from tpaul2015@yandex.com --- Created attachment 60787 --> https://bugs.winehq.org/attachment.cgi?id=60787 pgrep wineserver logs
https://bugs.winehq.org/show_bug.cgi?id=44730
--- Comment #6 from tpaul2015@yandex.com --- Hi, sorry for not getting back to you sooner but I have been very busy and also trying to get more data on the issue.
When I try to configure 3.3 it fails complaining about krb5, can't remember exactly. But the 'work around' was --without-krb5 which allowed it to finish configure. Then make completed without a problem.
Then launch mt5 - $/home/mrt/Downloads/wine/wine-3.3/wine-3.3-32bit/wine terminal.exe
And we are back to 50% wineserver and no launch of mt5.
I have attached
$for i in `pgrep wineserver` ; do ps -fp $i ; cat /proc/$i/status ; done and $ for i in `pgrep wineserver` ; do ps -fp $i ; cat /proc/$i/task/*/stack ; done
Don't know if it helps but with all the experimentation I have done it appears that if you make Wine, then before shutdown run the mt5setup.exe then mt5 will run. Before shutdown I launched mt5 10 times, one after another without issue. Then I logged out of KDE and then relaunched it a further 5 times, no issues. Reboot and it cannot get it to launch again, wineserver 50%.
I have the same behaviour with Wine 3.0, 3.2 and 3.3, WOW builds and 32 bit only builds.
I have tried export WINEARCH=32, same results.
Thanks for your attention, much appreciated.
https://bugs.winehq.org/show_bug.cgi?id=44730
--- Comment #7 from Ken Sharp imwellcushtymelike@gmail.com --- (In reply to Anastasius Focht from comment #4)
I guess something on your distro is simply broken, it could be anything.
Everything you've written here seems to suggest this.
Please retry in Wine 4.18 or later.