RESOLVED: "Problem Report / TD cannot be opened" behavior related to OpenCV changes on MacOS

Build 2021.13610 on MacOS 10.15.7

I receive the MacOS ‘Problem Report / App cannot be opened’ screen launching TD. Report details (complete below) include this error:

“”"
Termination Reason: DYLD, [0x4] Symbol missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Symbol not found: __ZN3tbb4task13note_affinityEt
Referenced from: /Applications/TouchDesigner.app/Contents/Frameworks/libopencv_world.4.5.dylib
Expected in: /usr/local/lib/libtbb.dylib
in /Applications/TouchDesigner.app/Contents/Frameworks/libopencv_world.4.5.dylib
“”"

Based on this, I suspect this happened following recent installation of OpenCV v3 libraries with Homebrew, using the command ‘brew install opencv@3’.

I have tried uninstalling all traces of OpenCV 3 & 4 and TD, and reinstalling only the current build of TD, but still receive the error. I tried installing experimental build 2020.46540, and that worked. Subsequent installation of the current build then fails again.

I also installed the current build on a similar Mac that did not have any OpenCV installations, and TD opens.

I’m stumped – any ideas how to track down what has changed?

Thanks.

Full crash report:

Process: TouchDesigner [3665]
Path: /Applications/TouchDesigner.app/Contents/MacOS/TouchDesigner
Identifier: ca.derivative.TouchDesigner
Version: 2021.13610 (2021.13610)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: TouchDesigner [3665]
User ID: 1906715856

Date/Time: 2021-06-02 12:24:46.373 -0700
OS Version: Mac OS X 10.15.7 (19H1217)
Report Version: 12
Bridge OS Version: 5.4 (18P4663)
Anonymous UUID: 2AD0C381-F6B1-85AE-B05D-3BFFA978765E

Time Awake Since Boot: 1900 seconds

System Integrity Protection: enabled

Crashed Thread: 0

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

Termination Reason: DYLD, [0x4] Symbol missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Symbol not found: __ZN3tbb4task13note_affinityEt
Referenced from: /Applications/TouchDesigner.app/Contents/Frameworks/libopencv_world.4.5.dylib
Expected in: /usr/local/lib/libtbb.dylib
in /Applications/TouchDesigner.app/Contents/Frameworks/libopencv_world.4.5.dylib

Binary Images:
0x100ea8000 - 0x100eabfff +ca.derivative.TouchDesigner (2021.13610 - 2021.13610) <7A0C9DED-300E-3CA4-8170-531CD29E7130> /Applications/TouchDesigner.app/Contents/MacOS/TouchDesigner
0x100eb8000 - 0x100eb8fff +libboost_system.dylib (0) <0A3E058D-7B0F-3B38-9B73-09DF4FCFA126> /Applications/TouchDesigner.app/Contents/Frameworks/libboost_system.dylib
0x100ebe000 - 0x100f3dff3 +libSIO.dylib (0) /Applications/TouchDesigner.app/Contents/Frameworks/libSIO.dylib

etc etc etc…

The problem is the file /usr/local/lib/libtbb.dylib, which is for some reason getting loaded instead of the libtbb.dylib that we have located in our installation directory. If you remove/rename that file, that will fix things.

2 Likes

Great insight and makes sense what happened now. Removed and fixed. Thanks!

removed and fixed too, thank you!

Thanks, in future builds this won’t be necessary.

Had the same issue in 13610 after messing around with homebrew and opencv.

$ rm /usr/local/lib/libtbb.dylib

totally fixed it, thanks Malcolm!