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