Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7d65ee3 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Add logging to help diagnose a rare bug

Bug: 25911696
Change-Id: Idca44ed873f0a9fa911e9cb1c3a09b4e7e4f23eb
parent 4d81d15f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3843,7 +3843,10 @@ AudioFlinger::PlaybackThread::mixer_state AudioFlinger::MixerThread::prepareTrac
                    // because we're about to decrement the last sp<> on those tracks.
                    block = FastMixerStateQueue::BLOCK_UNTIL_ACKED;
                } else {
                    LOG_ALWAYS_FATAL("fast track %d should have been active", j);
                    LOG_ALWAYS_FATAL("fast track %d should have been active; "
                            "mState=%d, mTrackMask=%#x, recentUnderruns=%u, isShared=%d",
                            j, track->mState, state->mTrackMask, recentUnderruns,
                            track->sharedBuffer() != 0);
                }
                tracksToRemove->add(track);
                // Avoids a misleading display in dumpsys