material-components / material-components/material-components-android
[MaterialSharedAxis] Strange error logs
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
Every navigating back I have something like that in my logcat:
```
E/BufferQueueProducer: [unnamed-7175-0] setMaxDequeuedBufferCount: 2 dequeued buffers would exceed the maxBufferCount (2) (maxAcquired 1 async 0 mDequeuedBufferCannotBlock 0)
E/Surface: IGraphicBufferProducer::setBufferCount(3) returned Invalid argument
E/BufferQueueProducer: [unnamed-7175-1] setMaxDequeuedBufferCount: 2 dequeued buffers would exceed the maxBufferCount (2) (maxAcquired 1 async 0 mDequeuedBufferCannotBlock 0)
E/Surface: IGraphicBufferProducer::setBufferCount(3) returned Invalid argument
E/BufferQueueProducer: [unnamed-7175-2] setMaxDequeuedBufferCount: 2 dequeued buffers would exceed the maxBufferCount (2) (maxAcquired 1 async 0 mDequeuedBufferCannotBlock 0)
E/Surface: IGraphicBufferProducer::setBufferCount(3) returned Invalid argument
E/BufferQueueProducer: [unnamed-7175-3] setMaxDequeuedBufferCount: 2 dequeued buffers would exceed the maxBufferCount (2) (maxAcquired 1 async 0 mDequeuedBufferCannotBlock 0)
E/Surface: IGraphicBufferProducer::setBufferCount(3) returned Invalid argument
```
**Source code:**
Inside the Fragment:
```
private fun configureAnimation() {
val exitTrx = MaterialSharedAxis.create(requireContext(), MaterialSharedAxis.X, false)
exitTransition = exitTrx
when (animationType) {
AnimationType.LINEAR -> enterTransition = MaterialSharedAxis.create(requireContext(), MaterialSharedAxis.X, true)
AnimationType.FADE -> enterTransition = MaterialFadeThrough.create(requireContext())
}
}
```
**Android API version:** 29
**Material Library version:** 1.2.0-alpha05
**Device:**
Both of them:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Fragment's configureAnimation() method and reproduce back navigation on Android API 29 using Material Library 1.2.0-alpha05. Compare the logcat output while the MaterialSharedAxis transitions run; done means the reported BufferQueueProducer and Surface errors are resolved or their cause and affected conditions are clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100