In Progress [Mi10TLite] [22.2.9] audio playback freezing


Unable to confirm on my Mi 10T Lite. Send logcat (one of the pinned threads there).
 
Unable to confirm on my Mi 10T Lite. Send logcat (one of the pinned threads there).
Logcat is like 21mb


And noticed that my phone keeps switching between speaker and bluetooth headphones and when i want to pause the song, youtube music goes "does not respond"
: reacting to signal 3 02-11 13:16:21.898 24658 24665 I s.youtube.musi: 02-11 13:16:21.905 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131621 02-11 13:16:21.998 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131621 02-11 13:16:21.999 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131621 02-11 13:16:22.000 2332 2650 D CompatibilityChangeReporter: Compat change id reported: 135634846; UID 10194; state: DISABLED 02-11 13:16:22.000 2332 2650 D CompatibilityChangeReporter: Compat change id reported: 177438394; UID 10194; state: DISABLED 02-11 13:16:22.000 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.000 2332 2650 D CompatibilityChangeReporter: Compat change id reported: 135772972; UID 10194; state: DISABLED 02-11 13:16:22.001 2332 2650 D CompatibilityChangeReporter: Compat change id reported: 135754954; UID 10194; state: ENABLED 02-11 13:16:22.002 2332 2651 D CompatibilityChangeReporter: Compat change id reported: 143937733; UID 10194; state: ENABLED 02-11 13:16:22.014 793 793 D Zygote : Forked child process 25873 02-11 13:16:22.015 2332 2651 D Boost : hostingType=service, hostingName={com.android.smspush/com.android.smspush.WapPushManager}, callerPackage=com.android.phone, isSystem=true, isBoostNeeded=false. 02-11 13:16:22.015 2332 2651 I ActivityManager: Start proc 25873:com.android.smspush/u0a194 for service {com.android.smspush/com.android.smspush.WapPushManager} caller=com.android.phone 02-11 13:16:22.037 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.038 25873 25873 E android.smspus: Not starting debugger since process cannot load the jdwp agent. 02-11 13:16:22.041 25873 25873 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument 02-11 13:16:22.049 2332 5094 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 10194; state: DISABLED 02-11 13:16:22.052 670 670 I tombstoned: received crash request for pid 24658 02-11 13:16:22.053 670 670 I tombstoned: found intercept fd 512 for pid 24658 and type kDebuggerdJavaBacktrace 02-11 13:16:22.053 24658 24665 I s.youtube.musi: Wrote stack traces to tombstoned 02-11 13:16:22.053 670 670 W tombstoned: missing output fd 02-11 13:16:22.054 2332 7343 I system_server: libdebuggerd_client: done dumping process 24658 02-11 13:16:22.054 2332 2811 I MiuiNetworkPolicy: updateUidState uid = 10194, uidState = 6 02-11 13:16:22.058 25873 25873 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10194; state: ENABLED 02-11 13:16:22.058 2332 7343 I ActivityManager: Done dumping 02-11 13:16:22.059 4924 6426 W MQSService: CallerName:com.android.smspush,calling Uid:10194 02-11 13:16:22.059 4924 25871 E ScoutManager: dumpStackTraces completed 02-11 13:16:22.059 4924 6426 D MQSService: registerApplicationScoutThread pid = 25873, packageName = com.android.smspush 02-11 13:16:22.072 4924 25871 D ScoutManager: copyBinderTrace from: [/data/anr/anr_2022-02-11-13-16-21-889], to: [24658-com.google.android.apps.youtube.music-APP_SCOUT_WARNING-trace-2022-02-11-13-16-21] 02-11 13:16:22.074 4924 25871 D Utils : Delete file success:[true], file path:[/data/anr/anr_2022-02-11-13-16-21-889] 02-11 13:16:22.076 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.077 25873 25873 V GraphicsEnvironment: ANGLE Developer option for 'com.android.smspush' set to: 'default' 02-11 13:16:22.079 25873 25873 I ForceDarkHelperStubImpl: initialize for com.android.smspush , ForceDarkOrigin 02-11 13:16:22.080 25873 25873 D OpenGLRenderer: JNI_OnLoad success 02-11 13:16:22.080 25873 25873 I MiuiForceDarkConfig: setConfig density:2.750000, mainRule:0, secondaryRule:0, tertiaryRule:0 02-11 13:16:22.081 25873 25873 D NetworkSecurityConfig: No Network Security Config specified, using platform default 02-11 13:16:22.081 25873 25873 D NetworkSecurityConfig: No Network Security Config specified, using platform default 02-11 13:16:22.095 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.126 3351 3351 D MiPlayDetailViewModel: onPositionChange(): position = 68867 02-11 13:16:22.126 5369 24303 I SafeBinderCall: onPositionChange binder cost:1 02-11 13:16:22.161 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.171 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.191 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.218 2332 2811 D MiuiNetworkPolicy: updateLimit mLimitEnabled=true,enabled=false,mNetworkPriorityMode=255 02-11 13:16:22.233 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.274 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.306 24658 25162 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:22.315 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.337 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.389 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.397 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.428 24658 25162 I CCodecBufferChannel: pipelineRoom(1) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:22.428 1065 1065 E TimeStats: [1573]-[SurfaceView[com.google.android.apps.youtube.music/com.google.android.apps.youtube.music.activities.MusicActivity](BLAST)#0]-timeRecords is at its maximum size[64]. Ignore this when unittesting. 02-11 13:16:22.428 24658 25157 I CCodecBufferChannel: pipelineRoom(1) is <= numClientBuffers(1). Not signalling any more buffers to client 02-11 13:16:22.429 24658 25162 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:22.436 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.478 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.498 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.543 24658 25162 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(3). Not signalling any more buffers to client 02-11 13:16:22.543 24658 25157 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:22.552 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.552 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.592 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.599 24658 25158 D CCodecBufferChannel: [c2.android.aac.decoder#429] DEBUG: elapsed: n=6 [in=0 pipeline=0 out=2] 02-11 13:16:22.600 24658 25158 D PipelineWatcher: DEBUG: elapsed 2 / 6 02-11 13:16:22.633 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.672 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.714 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.744 928 10077 I vendor.qti.bluetooth@1.0-ibs_handler: DeviceSleep: TX Awake, Sending SLEEP_IND 02-11 13:16:22.744 928 10077 D vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK OFF 02-11 13:16:22.753 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.776 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.817 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.847 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.858 2332 7343 I SoundTriggerMiddlewareLogging: onRecognitionAvailabilityChange[this=android.hardware.soundtrigger.SoundTriggerModule$EventHandlerDelegate@3a9fac, client={ attributionTag: null, packageName: "com.google.android.googlequicksearchbox", pid: 25330, uid: 10157 }](true) 02-11 13:16:22.858 2332 7343 I SoundTriggerMiddlewareLogging: attach[this=com.android.server.soundtrigger_middleware.SoundTriggerMiddlewareImpl@ecdecee, client={ attributionTag: null, packageName: "com.google.android.googlequicksearchbox", pid: 25330, uid: 10157 }](0, { }) -> { } 02-11 13:16:22.867 24658 25162 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(3). Not signalling any more buffers to client 02-11 13:16:22.867 24658 25157 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:22.877 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:22.894 928 9981 D vendor.qti.bluetooth@1.0-wake_lock: Release wakelock is released 02-11 13:16:22.925 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131622 02-11 13:16:23.110 24658 25162 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(3). Not signalling any more buffers to client 02-11 13:16:23.111 24658 25157 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:23.124 3351 3351 D MiPlayDetailViewModel: onPositionChange(): position = 69866 02-11 13:16:23.124 5369 24303 I SafeBinderCall: onPositionChange binder cost:0 02-11 13:16:23.189 24658 25162 I CCodecBufferChannel: pipelineRoom(1) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:23.189 24658 25157 I CCodecBufferChannel: pipelineRoom(1) is <= numClientBuffers(1). Not signalling any more buffers to client 02-11 13:16:23.303 24658 25162 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:23.328 24658 24802 D AudioTrack: [audioTrackData][fine] 54s(f:54007 m:0 s:0) : pid 24658 uid 10230 sessionId 39289 sr 44100 ch 2 fmt 1 02-11 13:16:23.387 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.387 1524 25173 I OMX-VDEC-1080P: set_frame_rate: set_display_frame_rate framerate: 1966080 02-11 13:16:23.387 1006 1006 D DisplayFeatureHal: setFeatureEnable: FeatureId=FPS_SWITCH_STATE modeId=30 cookie=243 02-11 13:16:23.387 1006 1006 I DisplayFeatureHal: HandleFpsSwitch: VideoCodec(243) set refresh rate to 30 Hz 02-11 13:16:23.387 1006 1006 D DisplayFeatureHal: notifyKernelFpsSwitch: fps = 120, enable smart fps 02-11 13:16:23.388 1006 1006 I DisplayFeatureHal: successfully write 0x60000001 into /sys/class/drm/card0-DSI-1/disp_param 02-11 13:16:23.388 1006 1006 I DisplayFeatureHal: HandleFpsSwitch: the setting fps(120) is the same, return 02-11 13:16:23.417 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.429 24658 25162 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(3). Not signalling any more buffers to client 02-11 13:16:23.429 24658 25157 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:23.448 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.480 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.511 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.549 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.584 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.613 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.623 24658 25162 I CCodecBufferChannel: pipelineRoom(1) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:23.624 24658 25157 I CCodecBufferChannel: pipelineRoom(1) is <= numClientBuffers(1). Not signalling any more buffers to client 02-11 13:16:23.639 1272 1272 W batteryd: type=1400 audit(0.0:3746): avc: denied { dac_override } for capability=1 scontext=u:r:batteryd:s0 tcontext=u:r:batteryd:s0 tclass=capability permissive=0 02-11 13:16:23.643 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.674 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.707 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.748 24658 25162 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:23.748 24658 25157 I CCodecBufferChannel: pipelineRoom(2) is <= numClientBuffers(2). Not signalling any more buffers to client 02-11 13:16:23.755 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.790 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.819 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.849 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.889 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.918 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.951 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:23.991 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131623 02-11 13:16:24.025 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131624 02-11 13:16:24.045 25766 25863 I bt_a2dp_hw_aosp: system/bt/audio_a2dp_hw/src/audio_a2dp_hw.cc:386 a2dp_ctrl_receive: a2dp_ctrl_receive: receive control data failed (Try again), retrying 02-11 13:16:24.055 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131624 02-11 13:16:24.085 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131624 02-11 13:16:24.116 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131624 02-11 13:16:24.125 3351 3351 D MiPlayDetailViewModel: onPositionChange(): position = 70866 02-11 13:16:24.125 5369 24303 I SafeBinderCall: onPositionChange binder cost:0 02-11 13:16:24.149 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131624 02-11 13:16:24.195 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131624 02-11 13:16:24.222 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131624 02-11 13:16:24.252 1524 25173 I OMX-VDEC-1080P: set_frame_rate: the current time is 131624"]
 
Unable to confirm on my Mi 10T Lite. Send logcat (one of the pinned threads there).
and a second one without bluetooth used
 
Which Magisk modules are you using? We're rather not supposed to see
Code:
SystemConfig: Reading permissions from /system/etc/permissions/com.htc.htcadaptivesound_c.xml
on the Xiaomi device...

Try to disable Magisk modules (all or the sound related) and check if it will work normally.
No issues for me (without Magisk, neither with speaker nor Bluetooth).
 
Which Magisk modules are you using? We're rather not supposed to see
Code:
SystemConfig: Reading permissions from /system/etc/permissions/com.htc.htcadaptivesound_c.xml
on the Xiaomi device...

Try to disable Magisk modules (all or the sound related) and check if it will work normally.
No issues for me (without Magisk, neither with speaker nor Bluetooth).
oh its the xmlpak module
 
Which Magisk modules are you using? We're rather not supposed to see
Code:
SystemConfig: Reading permissions from /system/etc/permissions/com.htc.htcadaptivesound_c.xml
on the Xiaomi device...

Try to disable Magisk modules (all or the sound related) and check if it will work normally.
No issues for me (without Magisk, neither with speaker nor Bluetooth).
downgrading worked for me but i am unable to clear miui gallery app and it keeps popping up the can't downgrade database error.

(upgrading back to 22.2.9 broke sound again so i am doing a clean flash soon)
 
Last edited:
Same problem. After every reboot it's okay for 1 minute but after this do it again. Spotify, Youtube, even the alarm clock doesn't work. I'ts playing approx. 5 sec audio/video and freez the whole app for 2 sec. I don't use magisk on my phone
 
  • Like
Reactions: xMarvin732
Clean flash solved nothing...
Still keeps losing sound when i use bluetooth headphones

Its similar to how sound didnt work when system wide variable font or how it was called is activated, but its off
 
Last edited:
Its similar to how sound didnt work when system wide variable font or how it was called is activated, but its off
How the visual change might be even related with... sound? Explain, I don't get it.

BTW, managed to reproduce the issue. Disable OK Google for now.
 
  • Like
Reactions: Kazimir
How the visual change might be even related with... sound? Explain, I don't get it.

BTW, managed to reproduce the issue. Disable OK Google for now.
OK Google is off, and its working again :)
I confused the system wide variable font thing with something else, my bad.
i had the Sound bug once already and it was related to OK google too.
 
How the visual change might be even related with... sound? Explain, I don't get it.

BTW, managed to reproduce the issue. Disable OK Google for now.
I disabled ok Google and deleted the voice match from the device and the Google app cache and after a restart it's working fine. Thank you!