CoppeliaSim 4.3.0 crashes on MacOS

Report crashes, strange behaviour, or apparent bugs
Post Reply
kercos
Posts: 11
Joined: 07 Jul 2022, 08:51

CoppeliaSim 4.3.0 crashes on MacOS

Post by kercos »

I've downloaded CoppeliaSim 4.3.0 rev12 Edu for MacOS and I get the message "The application “coppeliaSim.app” can’t be opened." followed by this report:

Code: Select all

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: F058E2D4-4F86-4FD2-A07C-ECEFDC054854
CrashReporter Key:   9193348F-F175-C5D3-BBFA-7D4F62DD054D
Hardware Model:      MacBookPro17,1
Process:             coppeliaSim [9969]
Path:                /Applications/coppeliaSim.app/Contents/MacOS/coppeliaSim
Identifier:          com.coppeliarobotics.coppeliasim
Version:             4.3.0 (4.3.0)
Code Type:           X86-64 (Native)
Role:                Default
Parent Process:      launchd [1]
Coalition:           com.coppeliarobotics.coppeliasim [4320]

Date/Time:           2022-08-01 16:34:42.4905 +0900
Launch Time:         2022-08-01 16:34:42.4276 +0900
OS Version:          macOS 12.5 (21G72)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: CODESIGNING 1 

Triggered by Thread:  0

Thread 0 Crashed:
0                                 	    0x7ff7ffc5ba8c 0x7ff7ffc58000 + 14988


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000000000   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x0000000000000000  x11: 0x0000000000000000
   x12: 0x0000000000000000  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x0000000000000000
   x16: 0x0000000000000000  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x0000000000000000  x21: 0x0000000000000000  x22: 0x0000000000000000  x23: 0x0000000000000000
   x24: 0x0000000000000000  x25: 0x0000000000000000  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x0000000000000000   lr: 0x0000000000000000
    sp: 0x000000030d06eb68   pc: 0x00007ff7ffc5ba8c cpsr: 0x00001000
   far: 0x0000000000000000  esr: 0x00000000  Address size fault

Binary Images:
    0x7ff7ffc58000 -     0x7ff7ffc87fff  (*) <ef33add1-6b70-3cc9-8bbc-c8544b609d2b> ???

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

EOF

-----------
Full Report
-----------

{"app_name":"coppeliaSim","timestamp":"2022-08-01 16:34:42.00 +0900","app_version":"4.3.0","slice_uuid":"bb27ab24-5dba-3ba0-9b50-288ad9180db1","build_version":"4.3.0","platform":0,"bundleID":"com.coppeliarobotics.coppeliasim","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.5 (21G72)","incident_id":"F058E2D4-4F86-4FD2-A07C-ECEFDC054854","name":"coppeliaSim"}
{
  "uptime" : 1100,
  "procLaunch" : "2022-08-01 16:34:42.4276 +0900",
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro17,1",
  "procStartAbsTime" : 27385220670,
  "coalitionID" : 4320,
  "osVersion" : {
    "train" : "macOS 12.5",
    "build" : "21G72",
    "releaseType" : "User"
  },
  "captureTime" : "2022-08-01 16:34:42.4905 +0900",
  "incident" : "F058E2D4-4F86-4FD2-A07C-ECEFDC054854",
  "bug_type" : "309",
  "pid" : 9969,
  "procExitAbsTime" : 27386723912,
  "translated" : true,
  "cpuType" : "X86-64",
  "procName" : "coppeliaSim",
  "procPath" : "\/Applications\/coppeliaSim.app\/Contents\/MacOS\/coppeliaSim",
  "bundleInfo" : {"CFBundleShortVersionString":"4.3.0","CFBundleVersion":"4.3.0","CFBundleIdentifier":"com.coppeliarobotics.coppeliasim"},
  "storeInfo" : {"deviceIdentifierForVendor":"B0FE1D54-9A1B-5F1E-ACA8-E1D02A615F28","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.coppeliarobotics.coppeliasim",
  "crashReporterKey" : "9193348F-F175-C5D3-BBFA-7D4F62DD054D",
  "wakeTime" : 74,
  "sleepWakeUUID" : "40F1A149-CFC4-44DE-B8AE-8842FFA2C76B",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL (Code Signature Invalid)"},
  "termination" : {"namespace":"CODESIGNING","flags":66,"code":1},
  "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":58684,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":13103459176},"esr":{"value":0,"description":" Address size fault"},"pc":{"value":140703124798092,"matchesCrashFrame":1},"far":{"value":0}},"frames":[{"imageOffset":14988,"imageIndex":0}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 140703124783104,
    "size" : 196608,
    "uuid" : "ef33add1-6b70-3cc9-8bbc-c8544b609d2b",
    "name" : ""
  }
],
  "vmSummary" : "ReadOnly portion of Libraries: Total=840K resident=0K(0%) swapped_out_or_unallocated=840K(100%)\nWritable regions: Total=21.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=21.4M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \nVM_ALLOCATE                       13.3M        5 \nVM_ALLOCATE (reserved)              12K        1         reserved VM address space (unallocated)\n__DATA                              80K        3 \n__DATA_CONST                        80K        1 \n__LINKEDIT                         240K        4 \n__TEXT                             624K        2 \nmapped file                        6.1G       37 \n===========                     =======  ======= \nTOTAL                              6.2G       55 \nTOTAL, minus reserved VM space     6.2G       55 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000171
    }
  ],
  "experiments" : [

  ]
},
  "reportNotes" : [
  "dyld_process_snapshot_get_shared_cache failed"
]
}

Model: MacBookPro17,1, BootROM 7459.141.1, proc 8:4:4 processors, 16 GB, SMC 
Graphics: Apple M1, Apple M1, Built-In
Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online
Memory Module: LPDDR4
AirPort: Wi-Fi, wl0: Mar 23 2022 19:57:59 version 18.60.27.0.7.8.129 FWID 01-570be953
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

coppelia
Site Admin
Posts: 9485
Joined: 14 Dec 2012, 00:25

Re: CoppeliaSim 4.3.0 crashes on MacOS

Post by coppelia »

Hello,

please try to copy the bundle to a different location and to open it via right-click--> open, then allow it. See also this link.

Cheers

kercos
Posts: 11
Joined: 07 Jul 2022, 08:51

Re: CoppeliaSim 4.3.0 crashes on MacOS

Post by kercos »

I tried both methods, including

Code: Select all

sudo xattr -r -d com.apple.quarantine *
but it didn't work for me.

coppelia
Site Admin
Posts: 9485
Joined: 14 Dec 2012, 00:25

Re: CoppeliaSim 4.3.0 crashes on MacOS

Post by coppelia »

We are currently on vacation leave, but we'll try to check what the problem is within 1-2 weeks. Please post again at that time if no reply from us came in the mean time.

Cheers

kercos
Posts: 11
Joined: 07 Jul 2022, 08:51

Re: CoppeliaSim 4.3.0 crashes on MacOS

Post by kercos »

Ok, found the problem, it seems to be a signature issue with new version of MacOS.
Solved with the following:

Code: Select all

xattr -c /Applications/coppeliaSim.app
xattr -c /Applications/coppeliaSim.app/Contents
codesign --force --deep --sign - /Applications/coppeliaSim.app

peter corke
Posts: 1
Joined: 02 Aug 2022, 01:46

Re: CoppeliaSim 4.3.0 crashes on MacOS

Post by peter corke »

I did this but still not working, continues to give the error message "coppeliaSim" will damage your computer...

I'm running Catalina (10.15.7), trying to install the edu version of 4.2.0 for MacOS 10.15. Log file says:

Aug 9 14:56:17 C02SN012H03Q com.apple.xpc.launchd[1] (com.coppeliarobotics.coppeliasim.79400[23343]): removing service since it exited with consistent failure - OS_REASON_EXEC | Gatekeeper policy blocked execution

There is a command line method to completely disable gatekeeper but I would rather not go there.

The usual right-click open trick is not available for this particular binary.

coppelia
Site Admin
Posts: 9485
Joined: 14 Dec 2012, 00:25

Re: CoppeliaSim 4.3.0 crashes on MacOS

Post by coppelia »

Hello Peter,

did you try also with the latest V4.3 release? Our macOS engineer is on leave until the end of the week, but will then be able to assist you better on that matter than myself.

Cheers

Post Reply