Skip to content

buildPyramid crashes on VS 2013 when running in RelWithDebInfo mode. #5564

@panmari

Description

@panmari

When I call buildPyramid with an image as source and an empty std::vector as destination, I get the following exception (only in RelWithDebInfo):

Unhandled exception at 0x00007FFF1A97512D (msvcp120d.dll) in hole_filling.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.

In other modes (Debug, Release), everything works as excepted. This is the stack trace I get:

msvcp120d.dll!00007fff1a97512d()    Unknown
opencv_core300d.dll!std::vector<cv::Mat,std::allocator<cv::Mat> >::_Reallocate(unsigned __int64 _Count) Line 1606   C++
opencv_core300d.dll!std::vector<cv::Mat,std::allocator<cv::Mat> >::_Reserve(unsigned __int64 _Count) Line 1619  C++
opencv_core300d.dll!std::vector<cv::Mat,std::allocator<cv::Mat> >::resize(unsigned __int64 _Newsize) Line 1106  C++
opencv_core300d.dll!cv::_OutputArray::create(int d, const int * sizes, int mtype, int i, bool allowTransposed, int fixedDepthMask) Line 2387    C++
opencv_core300d.dll!cv::_OutputArray::create(int _rows, int _cols, int mtype, int i, bool allowTransposed, int fixedDepthMask) Line 2202    C++
opencv_imgproc300d.dll!cv::buildPyramid(const cv::_InputArray & _src, const cv::_OutputArray & _dst, int maxlevel, int borderType) Line 1507    C++

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions