Error running JUCE application with ChildProcess under Xcode Instruments profiler


#1

I just encounter kind of a strange bug here when trying to profile a DSP application that makes use of a juce::ChildProcess in some setup routine to detect attached hardware devices.

While working fine as a release build outside the Xcode Instruments Time profiler, I see the following console output in the Instruments Console window when the application runs under the profiler:

nw_path_close_fd Failed to close guarded necp fd 8 [9: Bad file descriptor]

Furthermore, the process output read back by ChildProces::readAllProcessOutput is simply

libc++abi.dylib: terminating

I have no idea if this is an error coming from the JUCE ChildProcess side, the Xcode Instruments side, my usage of the ChildProcess or the third party application, started as a ChildProcess. Does anyone has some hint or encountered the same problem before?


ChildProcess broken on MacOS?
ChildProcess::start failing with spaces in the path