component-detection icon indicating copy to clipboard operation
component-detection copied to clipboard

Detection is getting hung up on macOS

Open DaveTryon opened this issue 1 year ago • 3 comments

I've discussed this with @pauld-msft but wanted to open an issue for tracking purposes. When the internal version of our sbom tool calls into component-detection on macOS systems, one or more detection threads stops responding, leading to the process timing out and failing. We've added a workaround on our side to try to handle the timeout more gracefully, but we still need to identify and fix the root cause. According to reports, this is occurring about 15% of the time. Reach out to me if you need more information, internal links, etc.

The problem first occurred when we moved from Microsoft.ComponentDetection.* 4.8.9 to Microsoft.ComponentDetection.* 4.9.6.

There have been sporadic reports that this may also be happening on x64, but not approaching the 15% failure rate reported on macOS.

DaveTryon avatar Oct 02 '24 16:10 DaveTryon

We have merged https://github.com/microsoft/component-detection/pull/1255/files to resolve issues with arm64, which I have confirmed some of the impacted macOS systems are using. Lets update to that package version once it is released, and see how that impacts these builds

pauld-msft avatar Oct 02 '24 16:10 pauld-msft

@pauld-msft, these probably are in a release after 5.0.0?

DaveTryon avatar Oct 02 '24 18:10 DaveTryon

@DaveTryon - yes, its in release 5.1.0, which should be available at the moment

pauld-msft avatar Oct 03 '24 15:10 pauld-msft