Skip to content

cv::aruco::detectMarkers crashes on AMD processors. #2736

@antithing

Description

@antithing
System information (version)

OpenCV => 4.1
Operating System / Platform => Windows 64 Bit
Compiler => Visual Studio 2019

Detailed description

I have a function in my application that uses opencv and the cv::aruco module.

On machines with Intel cpus, it runs great. (tested on more than 20 PCs). On machines with AMD cpus (tested on two), it freezes and crashes the application. The only difference on the testing machines is the processor.

The crash occurs at this function:

cv::aruco::detectMarkers(InImage, dictionary5, corners, ids, detectorParams5, rejected);
I have tried rebuilding opencv and disabling AVX512 instructions in OpenCVCompilerOptimizations.cmake, and I see the same thing.

How can i solve this issue?

Steps to reproduce

Build opencv from source (4.11). Run the function cv::aruco::detectMarkers on a PC with an AMD threadripper Ryzen processor.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions