question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[MaterialSharedAxis] Strange error logs

See original GitHub issue

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: image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

6reactions
gmacdevcommented, Jan 14, 2021

Did anyone find a solution?

0reactions
imranetalibicommented, Apr 5, 2022

Adding android:transitionGroup=“true” to the root layout of a fragment fixes this issue for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use the MaterialSharedAxis Transition in Java
Transition between Activities. To use MaterialSharedAxis you need at less version 1.2.0 of the Material library. In your build.gradle file:
Read more >
Weekly discussion, code review, and feedback thread - Reddit
I am new to Android programming, and I am absolutely stumped on the error "Unresolved reference: adView" resulting from this code:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found