spesmilo / spesmilo/electrum

zbar crashes when seeing multiple qr codes in image

Open
#7,985 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug 🐞 camera
Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

Traceback (most recent call last):
  File "electrum\gui\qt\qrreader\qtmultimedia\camera_dialog.py", line 406, in _on_frame_available
  File "electrum\qrreader\zbar.py", line 155, in read_qr_code
OSError: exception: access violation reading 0xFFFFFFFF

OSError: exception: access violation reading 0xFFFFFFFF

Reporter

This issue was reported by 22 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.3.1 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 imported ru_RU
4.3.4 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-8.1-6.3.9600-SP0 imported,standard ru_RU
4.3.4 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 imported ru_RU
4.4.0 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 imported ru_UA
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-8.1-6.3.9600-SP0 standard ja_JP
4.5.2 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard ru_RU
4.5.4 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22631-SP0 1of2,imported,standard en_US
4.6.1 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-11-10.0.22631-SP0 standard Engli
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-11-10.0.26100-SP0 Engli
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 imported pt_BR
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 imported pt_BR
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-11-10.0.26200-SP0 standard Engli
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 standard,imported Engli
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 standard Engli
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-11-10.0.26200-SP0 standard Germa
4.7.0 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-11-10.0.22631-SP0 imported Russi
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 imported Arabi
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 imported Arabi
4.7.0 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 standard Engli
4.7.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 standard Engli
4.7.0 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 Arabi
4.7.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 standard Germa

Additional Information

QRを読み取るとエラー


keeps crashing evereytime i try to read a qrcode (with camera, from screen, or file)


Read QR from screen


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with electrum/qrreader/zbar.py at line 155 and trace its caller in electrum/gui/qt/qrreader/qtmultimedia/camera_dialog.py at line 406. Reproduce the crash using an image or camera view containing multiple QR codes, then verify that the QR reader no longer raises the reported access violation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.