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

[wechat_qrcode] [opencv 4.7.0 ]crash, received signal SIGSEGV, Segmentation fault. #3570

Open
bestlee666 opened this issue Oct 6, 2023 · 2 comments

Comments

@bestlee666
Copy link

识别二维码时,崩溃
[QRCode][det] begin detector_->detectAndDecode, file=../images/cls/bus.jpg
bus

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ffff7a40928 in zxing::BitMatrix::get(int, int) const () from /usr/lib/libopencv_wechat_qrcode.so.407
(gdb) bt
#0 0x00007ffff7a40928 in zxing::BitMatrix::get(int, int) const () from /usr/lib/libopencv_wechat_qrcode.so.407
#1 0x00007ffff7a40abb in zxing::qrcode::Detector::sizeOfBlackWhiteBlackRun(int, int, int, int) () from /usr/lib/libopencv_wechat_qrcode.so.407
#2 0x00007ffff7a40b7c in zxing::qrcode::Detector::sizeOfBlackWhiteBlackRunBothWays(int, int, int, int, int, bool) () from /usr/lib/libopencv_wechat_qrcode.so.407
#3 0x00007ffff7a40d90 in zxing::qrcode::Detector::calculateModuleSizeOneWay(zxing::Refzxing::ResultPoint, zxing::Refzxing::ResultPoint, int, int) ()
from /usr/lib/libopencv_wechat_qrcode.so.407
#4 0x00007ffff7a43e99 in zxing::qrcode::Detector::processFinderPatternInfo(zxing::Refzxing::qrcode::FinderPatternInfo, zxing::ErrorHandler&) ()
from /usr/lib/libopencv_wechat_qrcode.so.407
#5 0x00007ffff7a44c7e in zxing::qrcode::Detector::getPossibleAlignmentCount(int) () from /usr/lib/libopencv_wechat_qrcode.so.407
#6 0x00007ffff7a4e9ef in zxing::qrcode::QRCodeReader::decodeMore(zxing::Refzxing::BinaryBitmap, zxing::Refzxing::BitMatrix, zxing::DecodeHints, zxing::ErrorHandler&) () from /usr/lib/libopencv_wechat_qrcode.so.407
#7 0x00007ffff7a4f88d in zxing::qrcode::QRCodeReader::decode(zxing::Refzxing::BinaryBitmap, zxing::DecodeHints) () from /usr/lib/libopencv_wechat_qrcode.so.407
#8 0x00007ffff7a2ef21 in cv::wechat_qrcode::DecoderMgr::Decode(zxing::Refzxing::BinaryBitmap, zxing::DecodeHints) () from /usr/lib/libopencv_wechat_qrcode.so.407
#9 0x00007ffff7a2f054 in cv::wechat_qrcode::DecoderMgr::TryDecode(zxing::Refzxing::LuminanceSource, std::vector<zxing::Refzxing::Result, std::allocator<zxing::Refzxing::Result > >&) () from /usr/lib/libopencv_wechat_qrcode.so.407
#10 0x00007ffff7a2f7ca in cv::wechat_qrcode::DecoderMgr::decodeImage(cv::Mat, bool, std::vector<std::string, std::allocatorstd::string >&, std::vector<std::vector<cv::Point_, std::allocator<cv::Point_ > >, std::allocator<std::vector<cv::Point_, std::allocator<cv::Point_ > > > >&) ()
from /usr/lib/libopencv_wechat_qrcode.so.407
#11 0x00007ffff7a3220d in cv::wechat_qrcode::WeChatQRCode::Impl::decode(cv::Mat const&, std::vector<cv::Mat, std::allocatorcv::Mat >&, std::vector<cv::Mat, std::allocatorcv::Mat >&) () from /usr/lib/libopencv_wechat_qrcode.so.407
#12 0x00007ffff7a328e7 in cv::wechat_qrcode::WeChatQRCode::detectAndDecode(cv::_InputArray const&, cv::_OutputArray const&) ()
from /usr/lib/libopencv_wechat_qrcode.so.407

@bestlee666 bestlee666 changed the title [wechat_qrcode] crash, received signal SIGSEGV, Segmentation fault. [wechat_qrcode] [opencv 4.7.0 ]crash, received signal SIGSEGV, Segmentation fault. Oct 6, 2023
@opencv-alalek
Copy link

libopencv_wechat_qrcode.so.407

You need to upgrade your OpenCV version first.

@lasthash
Copy link

lasthash commented Jan 5, 2024

My program encountered the same issue in version 4.8.0,how to solve it?

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

No branches or pull requests

3 participants