MT5 crashes while launching. - page 2

 
Dnao0 #:

Thanks Sergey but does not look like something i can use to resolve my issue.

I've been trying to use ln -s to virtual link to python or trying to change where MT5 looks for the python library but don't know where to change this.

Update: 


Just managed to solve it:

What i did is: 

1. Send MT5 Application (from '/Applications' folder) to the BIN

2. Remove the folder on this path: '/Users/{YOUR_USER}/Library/Application Support/MetaTrader 5'

3. Then Download latest version of MT5 and reinstall.


IS NOW Working!!!

Funny thing is that i tried this before and didn't work... not sure if some of the other previous attempts to troubleshoot did something or there is a later version in the last few days that fixed the issue.

 

Have the same issue and still not solving it,

but let link things together.


1# the crash report mentioned that the python 2.7 is missing on the path 

this line --> Reason: tried: '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file)


this is an old vesion, the current version of metatrader5 has it's python 3.9 build-in.

However,

2# reinstall metatrader 5 will not solving the problem till today (3/7/2023)


@Dnao0 Please provide us with the python links you did !

 

The latest crash report related to win preloader

---------------


-------------------------------------

Translated Report (Full Report Below)

-------------------------------------


Process:               wine64-preloader [10033]

Path:                  /Applications/MetaTrader 5.app/Contents/SharedSupport/metatrader5/MetaTrader 5/wine64-preloader

Identifier:            wine64-preloader

Version:               ???

Code Type:             X86-64 (Native)

Parent Process:        MetaTrader 5 [10032]

Responsible:           MetaTrader 5 [10032]

User ID:               501


Date/Time:             2023-07-03 16:53:54.8710 +0300

OS Version:            macOS 13.4.1 (22F82)

Report Version:        12

Anonymous UUID:        8C84E2B8-6E2B-61A2-569F-80F117741B63



Time Awake Since Boot: 8000 seconds


System Integrity Protection: enabled


Crashed Thread:        0


Exception Type:        EXC_GUARD (SIGKILL)

Exception Codes:       GUARD_TYPE_VIRT_MEMORY

Exception Codes:       0x0000000000000000, 0x0000000000042000


Termination Reason:    Namespace GUARD, Code 11529215050363437056 


Thread 0 Crashed:

0   wine64-preloader                      0x7d40173c wld_mmap + 12

1   wine64-preloader                      0x7d4021bc 0x7d400000 + 8636

2   wine64-preloader                      0x7d401dcd wld_start + 1565

3   wine64-preloader                      0x7d401690 start + 32



Thread 0 crashed with X86 Thread State (64-bit):

  rax: 0x0000000000010000  rbx: 0x0000000000100000  rcx: 0x00007ff7bfeff048  rdx: 0x0000000000000000

  rdi: 0x0000000000010000  rsi: 0x0000000000100000  rbp: 0x00007ff7bfeff480  rsp: 0x00007ff7bfeff048

   r8: 0x00000000ffffffff   r9: 0x0000000000000000  r10: 0x0000000000001012  r11: 0x0000000000000246

  r12: 0x0000000000400000  r13: 0x0000000000001012  r14: 0x000000007d403010  r15: 0x0000000000100000

  rip: 0x000000007d40173c  rfl: 0x0000000000000246  cr2: 0x00007ff850eaecc8

  

Logical CPU:     0

Error Code:      0x020000c5 

Trap Number:     133



Binary Images:

        0x7d400000 -         0x7d402fff wine64-preloader (*) <447c496e-3d3d-306a-a14c-eafd7b8b9325> /Applications/MetaTrader 5.app/Contents/SharedSupport/metatrader5/MetaTrader 5/wine64-preloader


External Modification Summary:

  Calls made by other processes targeting this process:

    task_for_pid: 0

    thread_create: 0

    thread_set_state: 0

  Calls made by this process:

    task_for_pid: 0

    thread_create: 0

    thread_set_state: 0

  Calls made by all processes on this machine:

    task_for_pid: 0

    thread_create: 0

    thread_set_state: 0


VM Region Summary:

ReadOnly portion of Libraries: Total=176.2M resident=0K(0%) swapped_out_or_unallocated=176.2M(100%)

Writable regions: Total=328.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=328.1M(100%)


                                VIRTUAL   REGION 

REGION TYPE                        SIZE    COUNT (non-coalesced) 

===========                     =======  ======= 

STACK GUARD                       56.0M        1 

Stack                             8192K        1 

VM_ALLOCATE                       1028K        2 

WINE_4GB_RESERVE                 320.0M        1 

__DATA                             204K       37 

__DATA_CONST                       230K       33 

__DATA_DIRTY                        63K       23 

__LINKEDIT                       170.9M        3 

__OBJC_RO                         66.3M        1 

__OBJC_RW                         2013K        2 

__TEXT                            5420K       42 

dyld private memory                 60K        1 

shared memory                        4K        1 

===========                     =======  ======= 

TOTAL                            630.0M      148 




-----------

Full Report

-----------


{"app_name":"wine64-preloader","timestamp":"2023-07-03 16:53:54.00 +0300","app_version":"","slice_uuid":"447c496e-3d3d-306a-a14c-eafd7b8b9325","build_version":"","platform":1,"share_with_app_devs":1,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.4.1 (22F82)","roots_installed":0,"incident_id":"91BD7FFC-3631-4B24-ADB0-5891FA928185","name":"wine64-preloader"}

{

  "uptime" : 8000,

  "procRole" : "Unspecified",

  "version" : 2,

  "userID" : 501,

  "deployVersion" : 210,

  "modelCode" : "MacBookPro11,2",

  "coalitionID" : 1646,

  "osVersion" : {

    "train" : "macOS 13.4.1",

    "build" : "22F82",

    "releaseType" : "User"

  },

  "captureTime" : "2023-07-03 16:53:54.8710 +0300",

  "incident" : "91BD7FFC-3631-4B24-ADB0-5891FA928185",

  "pid" : 10033,

  "cpuType" : "X86-64",

  "roots_installed" : 0,

  "bug_type" : "309",

  "procLaunch" : "2023-07-03 16:53:54.7148 +0300",

  "procStartAbsTime" : 8034909327907,

  "procExitAbsTime" : 8035065227541,

  "procName" : "wine64-preloader",

  "procPath" : "\/Applications\/MetaTrader 5.app\/Contents\/SharedSupport\/metatrader5\/MetaTrader 5\/wine64-preloader",

  "parentProc" : "MetaTrader 5",

  "parentPid" : 10032,

  "coalitionName" : "com.codeweavers.metatrader5",

  "crashReporterKey" : "8C84E2B8-6E2B-61A2-569F-80F117741B63",

  "responsiblePid" : 10032,

  "responsibleProc" : "MetaTrader 5",

  "codeSigningID" : "com.codeweavers.CrossOver.wineloader",

  "codeSigningTeamID" : "",

  "codeSigningFlags" : 570490881,

  "codeSigningValidationCategory" : 1,

  "codeSigningTrustLevel" : 0,

  "sip" : "enabled",

  "exception" : {"flavors":["DEALLOC_GAP"],"offset":270336,"signal":"SIGKILL","codes":"0x0000000000000000, 0x0000000000042000","message":"offset=0x0000000000042000, flavor=0x00000001 (DEALLOC_GAP)","subtype":"GUARD_TYPE_VIRT_MEMORY","type":"EXC_GUARD","rawCodes":[0,270336]},

  "termination" : {"namespace":"GUARD","flags":2,"code":11529215050363437056},

  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},

  "faultingThread" : 0,

  "threads" : [{"triggered":true,"id":98635,"threadState":{"r13":{"value":4114},"rax":{"value":65536},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":2101358608},"rsi":{"value":1048576},"r8":{"value":4294967295},"cr2":{"value":140704486190280},"rdx":{"value":0},"r10":{"value":4114},"r9":{"value":0},"r15":{"value":1048576},"rbx":{"value":1048576},"trap":{"value":133},"err":{"value":33554629},"r11":{"value":582},"rip":{"value":2101352252,"matchesCrashFrame":1},"rbp":{"value":140702053823616},"rsp":{"value":140702053822536},"r12":{"value":4194304},"rcx":{"value":140702053822536},"flavor":"x86_THREAD_STATE","rdi":{"value":65536}},"frames":[{"imageOffset":5948,"symbol":"wld_mmap","symbolLocation":12,"imageIndex":0},{"imageOffset":8636,"imageIndex":0},{"imageOffset":7629,"symbol":"wld_start","symbolLocation":1565,"imageIndex":0},{"imageOffset":5776,"symbol":"start","symbolLocation":32,"imageIndex":0}]}],

  "usedImages" : [

  {

    "source" : "P",

    "arch" : "x86_64",

    "base" : 2101346304,

    "size" : 12288,

    "uuid" : "447c496e-3d3d-306a-a14c-eafd7b8b9325",

    "path" : "\/Applications\/MetaTrader 5.app\/Contents\/SharedSupport\/metatrader5\/MetaTrader 5\/wine64-preloader",

    "name" : "wine64-preloader"

  }

],

  "sharedCache" : {

  "base" : 140703382003712,

  "size" : 21474836480,

  "uuid" : "e15dc6ac-9320-3b97-95de-b6e917a43ec4"

},

  "vmSummary" : "ReadOnly portion of Libraries: Total=176.2M resident=0K(0%) swapped_out_or_unallocated=176.2M(100%)\nWritable regions: Total=328.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=328.1M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8192K        1 \nVM_ALLOCATE                       1028K        2 \nWINE_4GB_RESERVE                 320.0M        1 \n__DATA                             204K       37 \n__DATA_CONST                       230K       33 \n__DATA_DIRTY                        63K       23 \n__LINKEDIT                       170.9M        3 \n__OBJC_RO                         66.3M        1 \n__OBJC_RW                         2013K        2 \n__TEXT                            5420K       42 \ndyld private memory                 60K        1 \nshared memory                        4K        1 \n===========                     =======  ======= \nTOTAL                            630.0M      148 \n",

  "legacyInfo" : {

  "threadTriggered" : {


  }

},

  "logWritingSignature" : "425cabed9aa26cd1e958d791bc055dd9d016fbaf",

  "trialInfo" : {

  "rollouts" : [

    {

      "rolloutId" : "6391cacc75b0720ff1f8c695",

      "factorPackIds" : {

        "COREOS_ICD" : "63957f508061fa721c8edc4a"

      },

      "deploymentId" : 240000007

    },

    {

      "rolloutId" : "63582c5f8a53461413999550",

      "factorPackIds" : {


      },

      "deploymentId" : 240000002

    }

  ],

  "experiments" : [


  ]

}

}

 

Problem solved


The issue were that MacOS 13.3+ will broke any app that uses wine preloader.

I found this video that solve the same issue for other wine preloader app called cross-over

https://www.youtube.com/watch?v=DaO7flq-YlE


The solution step by step on the video. 

to make it simple for you, you will replace a file called wine64_preloader inside Metatrader5 with the one you download from this patch 

https://github.com/Gcenx/CrossOver-fixes


follow the steps on the video, the deffrate that the solution is for other app called cross, you will do it for Metatrader5

the latest patch only contain one file, the video will shows 3. no problem, you need only the wine64-preloader


You are welcome ;)

GitHub - Gcenx/CrossOver-fixes
GitHub - Gcenx/CrossOver-fixes
  • Gcenx
  • github.com
Heres a quick fix for macOS Sonoma 14 until CodeWeaver provide a new release. xattr -drs com.apple.quarantine ~/Downloads CrossOver.app/Contents/SharedSupport/CrossOver/bin Disclaimer While the provided fix gets CrossOver functioning again modifying CrossOver isn't supported by CodeWeavers...
 
Mansour Alnassre #:

Problem solved


The issue were that MacOS 13.3+ will broke any app that uses wine preloader.

I found this video that solve the same issue for other wine preloader app called cross-over

https://www.youtube.com/watch?v=DaO7flq-YlE


The solution step by step on the video. 

to make it simple for you, you will replace a file called wine64_preloader inside Metatrader5 with the one you download from this patch 

https://github.com/Gcenx/CrossOver-fixes


follow the steps on the video, the deffrate that the solution is for other app called cross, you will do it for Metatrader5

the latest patch only contain one file, the video will shows 3. no problem, you need only the wine64-preloader


You are welcome ;)

Hi, i tried it but after replacing wine preloader file, app is not working. i deleted mt5 and installed again and tried as well but nope, after replacing file i cant open mt5. do you have any idea? and btw thats so weird, after uninstall, install mt5 and run it, i saw whole my settings, accounts and ea's are saved, like i didnt uninstall app. thats weird cause after uninstall i checked every folder but there was no mt5 file in my computer. After installing freshly, it has to be original settings i guess right? 
Reason: