Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad argument in reshape #70

Open
DarkApocalypse opened this issue Jun 23, 2022 · 0 comments
Open

Bad argument in reshape #70

DarkApocalypse opened this issue Jun 23, 2022 · 0 comments

Comments

@DarkApocalypse
Copy link

I made an android app using this repertory.
My code is on this repertory: https://github.com/DarkApocalypse/QRCode
It work pretty fine excepted some troubles.I test my app with:
qrcodes

i crash randomly and get this error.

Someone can explain me what it is wrong?

LOGCAT:
2022-06-23 12:52:06.269 2577-2577/fr.jcwebinfo.qrcode I/OPENCVAPP: found Tag: openCV 2022-06-23 12:52:06.269 2577-2577/fr.jcwebinfo.qrcode I/OPENCVAPP: found Tag: 5 2022-06-23 12:52:06.269 2577-2577/fr.jcwebinfo.qrcode I/OPENCVAPP: found Tag: http://fr.wikipedia.org/ 2022-06-23 12:52:06.271 2577-2621/fr.jcwebinfo.qrcode D/: InsertBlankEntry: SPRD_DATA_SPACE ui64Stamp:1964,eYUVColorSpace:2, yuv_info:2 2022-06-23 12:52:06.271 2577-2621/fr.jcwebinfo.qrcode D/: Gralloc Register w:960, h:720, f:0x22, usage:0x20000906, ui64Stamp:1964, sSize:1040384, line = 2270 2022-06-23 12:52:06.272 2577-2621/fr.jcwebinfo.qrcode D/: Gralloc Free w:960, h:720, f:0x22, usage:0x20000906, ui64Stamp:1980 line = 2376 2022-06-23 12:52:06.358 2577-4102/fr.jcwebinfo.qrcode E/cv::error(): OpenCV(4.5.3) Error: Bad argument (The total number of matrix elements is not divisible by the new number of rows) in reshape, file /home/quickbirdstudios/opencv/releases/opencv-4.5.3/modules/core/src/matrix.cpp, line 1186 2022-06-23 12:52:06.359 2577-4102/fr.jcwebinfo.qrcode E/org.opencv.objdetect: objdetect::detectAndDecodeMulti_11() caught cv::Exception: OpenCV(4.5.3) /home/quickbirdstudios/opencv/releases/opencv-4.5.3/modules/core/src/matrix.cpp:1186: error: (-5:Bad argument) The total number of matrix elements is not divisible by the new number of rows in function 'reshape' 2022-06-23 12:52:06.360 2577-4102/fr.jcwebinfo.qrcode E/AndroidRuntime: FATAL EXCEPTION: Thread-6 Process: fr.jcwebinfo.qrcode, PID: 2577 CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.5.3) /home/quickbirdstudios/opencv/releases/opencv-4.5.3/modules/core/src/matrix.cpp:1186: error: (-5:Bad argument) The total number of matrix elements is not divisible by the new number of rows in function 'reshape' ] at org.opencv.objdetect.QRCodeDetector.detectAndDecodeMulti_1(Native Method) at org.opencv.objdetect.QRCodeDetector.detectAndDecodeMulti(QRCodeDetector.java:292) at fr.jcwebinfo.qrcode.DetectorThread.run(DetectorThread.java:77) 2022-06-23 12:52:06.361 2577-4102/fr.jcwebinfo.qrcode D/HprofFactory: Create HprofDebugEx 2022-06-23 12:52:06.382 2577-4102/fr.jcwebinfo.qrcode I/Process: Sending signal. PID: 2577 SIG: 9

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

No branches or pull requests

1 participant