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

Add an additional safeguard when the barcode decoder attempts to process a video frame #4857

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Dec 16, 2023

From google play store:

  #00  pc 0x00000000005274d8  /data/app/~~NvLQJeNXuJ1MIvzR2SZqNA==/ch.opengis.qfield-OYiB52lJAdLR_0PRU7Huow==/lib/arm64/libQt6Gui_arm64-v8a.so (BuildId: 0dec58bd9c200cd94edc46d18eee12fee52ae8dc)
  #01  pc 0x00000000005280b0  /data/app/~~NvLQJeNXuJ1MIvzR2SZqNA==/ch.opengis.qfield-OYiB52lJAdLR_0PRU7Huow==/lib/arm64/libQt6Gui_arm64-v8a.so (BuildId: 0dec58bd9c200cd94edc46d18eee12fee52ae8dc)
  #02  pc 0x000000000044d134  /data/app/~~NvLQJeNXuJ1MIvzR2SZqNA==/ch.opengis.qfield-OYiB52lJAdLR_0PRU7Huow==/lib/arm64/libQt6Gui_arm64-v8a.so (QRhi::endOffscreenFrame(QFlags<QRhi::EndFrameFlag>)+64) (BuildId: 0dec58bd9c200cd94edc46d18eee12fee52ae8dc)
  #03  pc 0x00000000000c7978  /data/app/~~NvLQJeNXuJ1MIvzR2SZqNA==/ch.opengis.qfield-OYiB52lJAdLR_0PRU7Huow==/lib/arm64/libQt6Multimedia_arm64-v8a.so (qImageFromVideoFrame(QVideoFrame const&, QVideoFrame::RotationAngle, bool, bool)+2736) (BuildId: c0765931d079263b66cf06c483feb9bfe27443dd)
  #04  pc 0x00000000000c29b8  /data/app/~~NvLQJeNXuJ1MIvzR2SZqNA==/ch.opengis.qfield-OYiB52lJAdLR_0PRU7Huow==/lib/arm64/libQt6Multimedia_arm64-v8a.so (BuildId: c0765931d079263b66cf06c483feb9bfe27443dd)
  #05  pc 0x00000000000c64b8  /data/app/~~NvLQJeNXuJ1MIvzR2SZqNA==/ch.opengis.qfield-OYiB52lJAdLR_0PRU7Huow==/lib/arm64/libc++_shared.so (std::__ndk1::__call_once(unsigned long volatile&, void*, void (*)(void*))+164) (BuildId: a59088f9640cd272bc9542d94dc84a0c88afd558)
  #06  pc 0x00000000000c1c54  /data/app/~~NvLQJeNXuJ1MIvzR2SZqNA==/ch.opengis.qfield-OYiB52lJAdLR_0PRU7Huow==/lib/arm64/libQt6Multimedia_arm64-v8a.so (QVideoFrame::toImage() const+96) (BuildId: c0765931d079263b66cf06c483feb9bfe27443dd)
  #07  pc 0x0000000001eeeab4  /data/app/~~NvLQJeNXuJ1MIvzR2SZqNA==/ch.opengis.qfield-OYiB52lJAdLR_0PRU7Huow==/lib/arm64/libqfield_arm64-v8a.so (BarcodeDecoder::decodeVideoFrame(QVideoFrame const&)+52) (BuildId: a75578015316ac7d9753d901e88698581a3e774f)

Not sure there's much we can do, but not processing invalid QVideoFrame is probably not a bad idea :)

(If that doesn't help, I think we'll just need to keep track of this upstream issue: https://bugreports.qt.io/browse/QTBUG-115716)

@qfield-fairy
Copy link
Collaborator

@nirvn nirvn merged commit 2167310 into master Dec 17, 2023
21 checks passed
@nirvn nirvn deleted the barcodedecoder_fix branch December 17, 2023 04:12
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

Successfully merging this pull request may close these issues.

3 participants