org.opencv.core.CvException: cv::Exception: /home/maksim/workspace/android-pack/opencv/modules/core/src/matrix.cpp:411: error: (-215) u != 0 in function void cv::Mat::create(int, const int*, int)

Stack Overflow | user2121 | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    OutOfMemoryError generated due to camera preview

    Stack Overflow | 5 months ago | user2121
    org.opencv.core.CvException: cv::Exception: /home/maksim/workspace/android-pack/opencv/modules/core/src/matrix.cpp:411: error: (-215) u != 0 in function void cv::Mat::create(int, const int*, int)
  2. 0

    issuehub.io

    issuehub.io | 1 year ago
    org.opencv.core.CvException: cv::Exception: /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/core/src/alloc.cpp:52: error: (-4) Failed to allocate 8294404 bytes in function void* cv::OutOfMemoryError(std::size_t) ]
  3. 0

    issuehub.io

    issuehub.io | 1 year ago
    org.opencv.core.CvException: cv::Exception: /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/core/src/alloc.cpp:52: error: (-4) Failed to allocate 8294404 bytes in function void* cv::OutOfMemoryError(std::size_t) ]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mat::t() Android, After give time gives out of the memory

    GitHub | 2 years ago | opencv-pushbot
    org.opencv.core.CvException: cv::Exception: /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/core/src/alloc.cpp:52: error: (-4) Failed to allocate 4915204 bytes in function void* cv::OutOfMemoryError(std::size_t) ]

    Root Cause Analysis

    1. org.opencv.core.CvException

      cv::Exception: /home/maksim/workspace/android-pack/opencv/modules/core/src/matrix.cpp:411: error: (-215) u != 0 in function void cv::Mat::create(int, const int*, int)

      at org.opencv.core.Mat.n_t()
    2. org.opencv.core
      Mat.t
      1. org.opencv.core.Mat.n_t(Native Method)
      2. org.opencv.core.Mat.t(Mat.java:852)
      2 frames
    3. com.example.bak
      MainActivity.onCameraFrame
      1. com.example.bak.opencvcamera_00.MainActivity.onCameraFrame(MainActivity.java:109)
      1 frame
    4. org.opencv.android
      JavaCameraView$CameraWorker.run
      1. org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:391)
      2. org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:350)
      2 frames