Skip to content

imgcodecs: Initialization order fiasco for gdal #18166

@egorpugin

Description

@egorpugin
System information (version)
  • OpenCV => 4.4 static + gdal
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2019
Detailed description

Opencv tries to initialize gdal.

image

But some of gdal global vars are not initialized before opencv globals initialization.

image

image

Steps to reproduce

This is custom build. You will need to download 3rd party software etc.
So, if you're really want to repro, I could provide the steps.

Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    answers.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions