Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

OpenCV Error: Assertion failed (dst.cols < SHRT_MAX && dst.rows < SHRT_MAX && src.cols < SHRT_MAX && src.rows < SHRT_MAX) in remap, file /home/travis/build/dmlc/mxnet-distro/deps/opencv-3.3.0/modules/imgproc/src/imgwarp.cpp, line 4944 terminate called after throwing an instance of 'cv::Exception' #9475

Closed
xuzhenqi opened this issue Jan 18, 2018 · 5 comments · Fixed by #14433

Comments

@xuzhenqi
Copy link

xuzhenqi commented Jan 18, 2018

When I use augmentation of aspect, random scale, rotate, mxnet report this error:

OpenCV Error: Assertion failed (dst.cols < SHRT_MAX && dst.rows < SHRT_MAX && src.cols < SHRT_MAX && src.rows < SHRT_MAX) in remap, file /home/travis/build/dmlc/mxnet-distro/deps/opencv-3.3.0/modules/imgproc/src/imgwarp.cpp, line 4944 terminate called after throwing an instance of 'cv::Exception'

I install the mxnet by

pip install  mxnet-cu80==1.0.1b20180105

I think mxnet should catch opencv Exceptions rather than terminating the process.

@lupesko
Copy link
Contributor

lupesko commented Feb 27, 2018

@xuzhenqi this may very well be an issue with your model and code.
Can you please provide more context and details about the issue?

  • Use the latest release of mxnet by $ pip install mxnet-cu90 --upgrade
    (latest version is 1.1.0)
  • Provide code that reproduces the issue
  • Run diagnostic and attach output to provide more context on your setup: $ python ./tools/diagnose.py

@lupesko
Copy link
Contributor

lupesko commented Feb 27, 2018

@sandeep-krishnamurthy please apply the label Exception Handling
Thanks!

@sandeep-krishnamurthy
Copy link
Contributor

@anirudh2290 - Your recent work on exception handling, covers this usecase?

@anirudh2290
Copy link
Member

Currently, MXNet only catches dmlc::Error and for other exceptions the process is terminated. Catching exception from dependent libraries will require more work, as it requires changing the c api guard code and the exception mapping and testing for different front-ends.

@anirudh2290
Copy link
Member

@sandeep-krishnamurthy Please also tag as "Bug" for the crash.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants