Score:-1

Troubleshooting Wine App Crash

bn flag

I have a 32Bit version of MetaTrader4 (MT4) from my trading broker. I have been using Wine 7.0 to run this in on Ubuntu 20.04.3 LTS. It has been working flawlessly for months and then with recent Ubuntu updates MT4 has been crashing at random after 1 hr or 8 hrs of operation.

I moved my trading systems to a Linux OS because I got sick of Windows force rebooting my trade systems in the middle of the night. Now I'm having similar problems in a different way. I'm hoping I can sniff out the problem and resolve it because I would rather be on Ubuntu for stability.

I don't know how to troubleshoot an app in Ubuntu that's running on Wine. I tried to use Play On Linux (POL) with the debug log there and concluded I can't use POL because I need to run a 64Bit app and 32Bit app simultaneously from the same virtual drive using Wine; and POL won't let you run them together in the same virtual drive because of the different architecture.

I've run several troubleshooting tasks to isolate the problem to MT4. I need somebody to point me to some debug logging app or command to log why MT4 keeps crashing. I've used OBS to screen record when MT4 crashes, as the timing is random. The video shows no error messages or any conclusion of why it's crashing. I've watched the logs on MT4 and not seeing anything there either.

Any help would be appreciated. I'm somewhat novice - intermediate with Ubuntu so I'm hoping there's something obvious somebody could point out. I'm not drawing what I need from forums and web searches. Thanks-

Posting logs:

0584:err:winediag:ntlm_check_version ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0584:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
0584:fixme:font:freetype_set_outline_text_metrics failed to read full_nameW for font L"Ani"!
0584:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0032F0D0, 0032F0E0 0032F0D4
0584:fixme:nls:get_dummy_preferred_ui_language (0x38 0032F0D0 0032F0E0 0032F0D4) returning a dummy value (current locale)
0584:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0590:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFA, 056AFEF8
0584:err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0032e728
0584:err:toolbar:ToolbarWindowProc unknown msg 0466 wp=00000000 lp=0032e728
0584:err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0032e728
0584:err:toolbar:ToolbarWindowProc unknown msg 0466 wp=00000000 lp=0032e728
0584:err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0032e728
0584:err:toolbar:ToolbarWindowProc unknown msg 0466 wp=00000000 lp=0032e728
0584:err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0032e728
0584:err:toolbar:ToolbarWindowProc unknown msg 0466 wp=00000000 lp=0032e728
0584:fixme:imm:ImeSetActiveContext (0x59048e8, 1): stub
0584:fixme:imm:ImmReleaseContext (000400D4, 059048E8): stub
059c:fixme:secur32:schan_QueryContextAttributesA Unhandled attribute 0x6e

/////// CRASH HAPPENS HERE

0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:dbghelp_dwarf:dwarf2_read_range no entry found
0584:fixme:dbghelp_dwarf:dwarf2_read_range no entry found
0584:fixme:dbghelp_dwarf:dwarf2_read_range no entry found
0584:fixme:dbghelp_dwarf:dwarf2_read_range no entry found
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFA, 0032E4D0
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
0584:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL

Second update:

I get a crash after the following lines in the log:

02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFA, 0032E4D0
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
02b4:fixme:file:errno_to_status Converting errno 12 to STATUS_UNSUCCESSFUL
hu flag
Not sure it has anything to do with Ubuntu, as the question is entirely about wine. Anyway, just searched for "wine debug", and this was the first result: https://wiki.winehq.org/Wine_Developer%27s_Guide/Debugging_Wine. Try is yourself next time.
abu-ahmed al-khatiri avatar
in flag
Please edit your question and add output of `winedbg app.exe`. Probably you need to upgrade to MT5.
AuMogul avatar
bn flag
@abu-ahmedal-khatiri, the broker doesn't have an MT5 option. What commands do I use with winedbg.exe? I am not familiar with this.
abu-ahmed al-khatiri avatar
in flag
@AuMogul let me know what's the output of `wine app.exe` command and what's defference the output of `winedbg app.exe`. see this guide https://wiki.winehq.org/Wine_User%27s_Guide
AuMogul avatar
bn flag
@abu-ahmedal-khatiri, I have posted the log I obtained from wine.
abu-ahmed al-khatiri avatar
in flag
@AuMogul that's mean you need to install the requirements, run `winetricks gecko vcrun6 winbind`. make sure you have 'wineprefix win32'. see this AppDB details https://appdb.winehq.org/objectManager.php?sClass=version&iId=2893
AuMogul avatar
bn flag
@abu-ahmedal-khatiri, thank you for your comment. I'm getting the same crash at the same error point. I reposted above the log.
abu-ahmed al-khatiri avatar
in flag
@AuMogul `02b4:fixme:file:errno_to_status` is mean your wine home directory was unbrowsable. please check it using `stat ~/path`.
abu-ahmed al-khatiri avatar
in flag
@AuMogul I tried to download app in https://www.metatrader4.com/en/download but it on maintenance mode. so i tried download app in https://appdb.winehq.org/objectManager.php?sClass=application&iId=1599 and run `winetricks vcrun6 && env LANG=C wine ~/path/app.exe`. i can run demo account successfully and no fatal error appears. to verify your errno, try to run `errno 12`.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.