BufferQueue Abandoned

Open
#244 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, csharp
Domain
mobile-dev

Research direction

Start by reproducing the Page A → Page B → Page A navigation with the 0.5.0-preview.2 NuGet package on a rugged Android scanner, while watching the reported BufferQueue errors and scanner receiver behavior. Compare that result with the separate Fix Android15 branch; done means the hardware scanner still publishes barcode events after returning from the camera reader view.

Written by the indexing model from the issue text.

Description

@jfversluis
It appears the 0.5.0-preview.2 release introduced some errors that were in the 0.4.0 release.
Trying the 0.5.0-preview.1 release doesn't work as that introduces the error https://github.com/Redth/ZXing.Net.Maui/issues/238.

The behavior occurs on a rugged non-consumer device with an in-built laser scanner, such as a Zebra, Datalogic, or Janam device. On page A of the issue we have two items, a button that can take us to Page B, and a token that listens for a barcode event. We can choose on Page A to scan a barcode using the device's laser scanner, which through a receiver will publish a barcode event. The issue is that is we go to Page B, which contains a camera barcode reader view, and come back to Page A, we can no longer use the laser scanner. It is effectively disabled and the OnReceive is never fired in the scanner's receiver class.

The below are the only two errors showing the in output logs.

2025-08-28 13:42:34.178 15154-15168 BufferQueueProducer com.company.myapp E SurfaceView[com.company.myapp/crc641970a28170a9541a.MainActivity]#6(BLAST Consumer)6 queueBuffer: BufferQueue has been abandoned
2025-08-28 13:42:34.179 15154-15168 BufferQueueProducer com.company.myapp E SurfaceView[com.company.myapp/crc641970a28170a9541a.MainActivity]#6(BLAST Consumer)6 dequeueBuffer: BufferQueue has been abandoned

Edit: The Fix Android15 branch, when tested separate from the other branches in 0.5.0-preview.2 works. When using 0.5.0-preview.2 nuget package, it disables the hardware scanner as described above and throws the above errors.

@mrbelk

Dominant language
C#
Stars
579
Forks
209
PR merge metrics
No merged PRs in 30d

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.

More from Redth/ZXing.Net.Maui

All issues in Redth/ZXing.Net.Maui

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.