Skip to content

Commit

Permalink
disable IGN_PROFILER_REMOTERY on M1 processors
Browse files Browse the repository at this point in the history
This fixes a crash on Apple M1 hardware:

    Process:               gzclient-11.9.0 [67541]
    Path:                  /opt/homebrew/*/gzclient-11.9.0
    Identifier:            gzclient-11.9.0
    Version:               ???
    Code Type:             ARM-64 (Native)
    Parent Process:        bash [67524]
    Responsible:           Terminal [454]
    User ID:               501

    Date/Time:             2021-11-30 19:04:18.1615 -0600
    OS Version:            macOS 12.1 (21C5031d)
    Report Version:        12
    Anonymous UUID:        F0C578BB-512A-6F9D-1529-7029F51BFF95

    Sleep/Wake UUID:       797377D2-E404-4080-B6D2-2CA63D5EF198

    Time Awake Since Boot: 34000 seconds
    Time Since Wake:       3697 seconds

    System Integrity Protection: enabled

    Crashed Thread:        0

    Exception Type:        EXC_CRASH (SIGABRT)
    Exception Codes:       0x0000000000000000, 0x0000000000000000
    Exception Note:        EXC_CORPSE_NOTIFY

    Termination Reason:    Namespace DYLD, Code 9
    symbol not found in flat namespace '_rmtMetal_usGetTime'

    Application Specific Information:
    symbol not found in flat namespace '_rmtMetal_usGetTime'

    Thread 0 Crashed:
    0   dyld                          	       0x10095b4dc __abort_with_payload + 8
    1   dyld                          	       0x1009624dc abort_with_payload_wrapper_internal + 104
    2   dyld                          	       0x100962510 abort_with_payload + 16
    3   dyld                          	       0x10091a8e4 dyld4::halt(char const*) + 328
    4   dyld                          	       0x100915fd4 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3568
    5   dyld                          	       0x1009150d4 start + 488
  • Loading branch information
dlech committed Dec 28, 2021
1 parent a1c0f90 commit 49ae06d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Formula/ignition-common3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ def install
cmake_args = std_cmake_args
cmake_args << "-DBUILD_TESTING=Off"
cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath}"

if Hardware::CPU.arm?
# REVISIT: this works around a crash on Apple M1 processors
# https://github.com/osrf/homebrew-simulation/pull/1698#discussion_r774674536
cmake_args << "-DIGN_PROFILER_REMOTERY=Off"
end

system "cmake", ".", *cmake_args
system "make", "install"
end
Expand Down

0 comments on commit 49ae06d

Please sign in to comment.