Video Stutters, Wifi connection lost when "Adjust Display Refresh Rate" is on

I use OSMC on a rpi 3b +. I use it to play videos in my OpenMediaVault NAS that runs a plex server.

If I turn on “Adjust Display Refresh Rate” the videos stutter, sound goes off and Wifi drops until I use a mouse to stop the video.

Below is the DEBUG log

19:15:21.405 T:1926244864   DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
19:15:21.406 T:1665041152   DEBUG: Skin Helper Widgets --> Kodi_Monitor: sender xbmc - method: Player.OnPlay  - data: {"item":{"id":437,"type":"movie"},"player":{"playerid":1,"speed":1}}
19:15:21.417 T:1926244864   DEBUG: ------ Window Init (VideoFullScreen.xml) ------
19:15:21.417 T:1926244864    INFO: Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY
19:15:21.432 T:1926244864  NOTICE: Display resolution ADJUST : 1920x1080 (1920x1080) @ 23.98 - Full Screen (34) (weight: 0.000)
19:15:21.458 T:1886384896   DEBUG: CAESinkPi:Drain delay:98ms now:0ms
19:15:21.459 T:1886384896   DEBUG: CAESinkPi:Deinitialize
19:15:21.459 T:1886384896   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
19:15:21.470 T:1886384896   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0x6fd6bdc8
19:15:21.471 T:1886384896   DEBUG: CActiveAESink::OpenSink - trying to open device PI:HDMI
19:15:21.472 T:1886384896   DEBUG: CAESinkPi:Initialize Format:24 Channels:2 Samplerate:48000 framesize:8 bufsize:19200 bytes/s=384000.00 dest=PI:HDMI
19:15:21.472 T:1886384896   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
19:15:21.473 T:1886384896   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0x6fd6bdc8
19:15:21.475 T:1886384896   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_render) - port(100), nBufferCountMin(1), nBufferCountActual(2), nBufferSize(19200), nBufferAlignmen(16)
19:15:21.476 T:1886384896   DEBUG: CActiveAESink::OpenSink - SinkPi Initialized:
19:15:21.476 T:1886384896   DEBUG:   Output Device : HDMI
19:15:21.476 T:1886384896   DEBUG:   Sample Rate   : 48000
19:15:21.476 T:1886384896   DEBUG:   Sample Format : AE_FMT_FLOATP
19:15:21.476 T:1886384896   DEBUG:   Channel Count : 2
19:15:21.476 T:1886384896   DEBUG:   Channel Layout: FL,FR
19:15:21.476 T:1886384896   DEBUG:   Frames        : 2400
19:15:21.476 T:1886384896   DEBUG:   Frame Size    : 8
19:15:21.481 T:1895908096   DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
19:15:21.531 T:1886384896   DEBUG: Previous line repeats 1 times.
19:15:21.531 T:1886384896   DEBUG: CAESinkPi:Drain delay:48ms now:0ms
19:15:21.531 T:1886384896   DEBUG: CAESinkPi:Deinitialize
19:15:21.531 T:1886384896   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
19:15:21.535 T:1886384896   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0x6fd6bdc8
19:15:21.536 T:1926244864  NOTICE: VideoPlayer: OnLostDisplay received
19:15:21.565 T:1926244864   DEBUG: EGL set HDMI mode (1,32)=0 off
19:15:21.585 T:1623098112   DEBUG: CWebServer[80]: request received for /jsonrpc
19:15:21.614 T:1155527424   DEBUG: CRBP::WaitVsync no  vsync 7548/7549 display:0(10000010) delay:0
19:15:21.633 T:1305957120  NOTICE: PLEX.websocket_client: Alexa_Websocket: Timeout while connecting, trying again
19:15:21.665 T:1155527424   DEBUG: CRBP::WaitVsync no  vsync 7548/7549 display:0(0) delay:0
19:15:21.725 T:1859121920   DEBUG: Previous line repeats 1 times.
19:15:21.725 T:1859121920   DEBUG: EGL tv_service_callback (8,1,32)
19:15:21.726 T:1926244864   DEBUG: EGL set resolution 1920x1080 -> 1920x1080 @ 23.98 fps (1,32) flags:20010004 aspect:1.00
19:15:21.765 T:1155527424   DEBUG: CRBP::WaitVsync no  vsync 7548/7549 display:10000020(0) delay:0
19:15:21.773 T:1926244864   DEBUG: CreateWindow: Created surface of size 1920x1080
19:15:21.773 T:1895908096   DEBUG: CActiveAE - display reset event
19:15:21.773 T:1926244864  NOTICE: VideoPlayer: OnResetDisplay received
19:15:21.773 T:1926244864    INFO: GLES: Maximum texture width: 2048
19:15:21.773 T:1886384896    INFO: CActiveAESink::OpenSink - initialize sink
19:15:21.773 T:1886384896   DEBUG: CActiveAESink::OpenSink - trying to open device PI:HDMI
19:15:21.773 T:1886384896   DEBUG: CAESinkPi:Initialize Format:24 Channels:2 Samplerate:48000 framesize:8 bufsize:19200 bytes/s=384000.00 dest=PI:HDMI
19:15:21.774 T:1886384896   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
19:15:21.775 T:1886384896   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0x6fde0358
19:15:21.776 T:1886384896   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_render) - port(100), nBufferCountMin(1), nBufferCountActual(2), nBufferSize(19200), nBufferAlignmen(16)
19:15:21.777 T:1886384896   DEBUG: CActiveAESink::OpenSink - SinkPi Initialized:
19:15:21.777 T:1886384896   DEBUG:   Output Device : HDMI
19:15:21.777 T:1886384896   DEBUG:   Sample Rate   : 48000
19:15:21.777 T:1886384896   DEBUG:   Sample Format : AE_FMT_FLOATP
19:15:21.777 T:1886384896   DEBUG:   Channel Count : 2
19:15:21.777 T:1886384896   DEBUG:   Channel Layout: FL,FR
19:15:21.777 T:1886384896   DEBUG:   Frames        : 2400
19:15:21.778 T:1886384896   DEBUG:   Frame Size    : 8
19:15:21.781 T:1895908096   DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
19:15:21.781 T:1079358208   DEBUG: Previous line repeats 2 times.
19:15:21.782 T:1079358208   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_PAUSE: 1
19:15:21.782 T:1079358208   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_PAUSE: 0
19:15:21.787 T:1182790400   DEBUG: CVideoPlayer::HandleMessages - player started 1
19:15:21.787 T:1182790400   DEBUG: CVideoPlayer::SetCaching - caching state 3
19:15:21.787 T:1182790400   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
19:15:21.787 T:1182790400   DEBUG: CVideoPlayer::SetCaching - caching state 0
19:15:21.788 T:1182790400   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
19:15:21.788 T:1182790400   DEBUG: VideoPlayer::Sync - Audio - pts: 192000.000000, cache: 260556.999400, totalcache: 500000.000000
19:15:21.788 T:1182790400   DEBUG: VideoPlayer::Sync - Video - pts: 0.000000, cache: 50000.000000, totalcache: 100000.000000
19:15:21.788 T:1079358208   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_RESYNC(-100000.000000)
19:15:21.788 T:1079358208   DEBUG: CDVDAudio::Resume - resume audio stream
19:15:21.789 T:1895908096   DEBUG: CRBP::AdjustHDMIClock(1.00000) = 1.00000
19:15:21.789 T:1895908096   DEBUG: ActiveAE - start sync of audio stream
19:15:21.807 T:1155527424   DEBUG: CVideoReferenceClock: cleaning up RPi
19:15:21.807 T:1155527424   DEBUG: CVideoReferenceClock: setting up RPi
19:15:21.808 T:1155527424   DEBUG: CVideoReferenceClock: fps: 23.98
19:15:21.808 T:1155527424   DEBUG: CVideoReferenceClock: Detected refreshrate: 23.976 hertz
19:15:21.888 T:1087746816   DEBUG: CVideoReferenceClock: Clock speed 100.000003%
19:15:21.888 T:1121972992   DEBUG: CMMALRenderer::SetVideoRect 0,0,1920,1040 -> 0,20,1920,1060 (o:0 v:0 d:0 i:0)
19:15:21.889 T:1926244864   DEBUG: CMMALRenderer::RenderUpdate - vsync 7539 (+12)
19:15:21.889 T:1121972992   DEBUG: CMMALRenderer::SetVideoRect 0,0,1920,1040 -> 0,20,1920,1040 t:100000
19:15:21.891 T:1639875328   ERROR: Window Translator: Can't find window videolibrary
19:15:21.893 T:1673429760   DEBUG: Skin Helper Service --> Kodi_Monitor: sender xbmc - method: Player.OnPlay  - data: {"item":{"id":437,"type":"movie"},"player":{"playerid":1,"speed":1}}
19:15:21.931 T:1895908096   DEBUG: ActiveAE::SyncStream - average error of -3.873023, start adjusting
19:15:21.932 T:1895908096   DEBUG: ActiveAE::SyncStream - average error -0.873023 below threshold of 30.000000
19:15:21.945 T:1926244864   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
19:15:21.946 T:1926244864   DEBUG: CMMALRenderer::RenderUpdate - vsync 7552 (+1)
19:15:22.022 T:1087746816   DEBUG: CVideoPlayerVideo - CDVDMsg::GENERAL_PAUSE: 1
19:15:22.022 T:1087746816   DEBUG: CVideoPlayerVideo - CDVDMsg::GENERAL_PAUSE: 0
19:15:22.022 T:1087746816   DEBUG: CVideoPlayerVideo - CDVDMsg::GENERAL_RESYNC(-100000.000000)
19:15:22.101 T:1639875328   ERROR: Window Translator: Can't find window videolibrary
19:15:22.634 T:1305957120  NOTICE: PLEX.websocket_client: Alexa_Websocket: connection closed, (re)connecting
19:15:22.635 T:1305957120   DEBUG: PLEX.websocket_client: Alexa_Websocket: Uri: wss://pubsub.plex.tv/sub/websockets/19384598/a3d52fac-5281-4995-81f2-9efd87c979e0?X-Plex-Token=hVpMpo6sePvJ17vMQ7xp, sslopt: {}
19:15:22.976 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:0.99232 threshold:0.020 error:-15.355169
19:15:24.024 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:1.00027 threshold:0.020 error:0.531179
19:15:24.206 T:1305957120  NOTICE: PLEX.websocket_client: Alexa_Websocket: Error connecting
19:15:24.259 T:1623098112   DEBUG: CWebServer[80]: request received for /jsonrpc
19:15:24.408 T:1247236864   DEBUG: PLEX.plexgdm: Recieved UDP packet from [('192.168.1.8', 38692)] containing [M-SEARCH * HTTP/1.1]
19:15:24.409 T:1247236864   DEBUG: PLEX.plexgdm: Detected client discovery request from ('192.168.1.8', 38692).  Replying
19:15:24.411 T:1247236864   DEBUG: PLEX.plexgdm: Sending registration data HTTP/1.0 200 OK
19:15:25.070 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:1.00627 threshold:0.020 error:12.061102
19:15:25.208 T:1305957120  NOTICE: PLEX.websocket_client: Alexa_Websocket: connection closed, (re)connecting
19:15:25.208 T:1305957120   DEBUG: PLEX.websocket_client: Alexa_Websocket: Uri: wss://pubsub.plex.tv/sub/websockets/19384598/a3d52fac-5281-4995-81f2-9efd87c979e0?X-Plex-Token=hVpMpo6sePvJ17vMQ7xp, sslopt: {}
19:15:25.510 T:1623098112   DEBUG: CWebServer[80]: request received for /jsonrpc
19:15:26.072 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:1.00693 threshold:0.020 error:12.863662
19:15:26.730 T:1087746816   DEBUG: CPullupCorrection: detected pattern of length 1: 41708.38, frameduration: 41708.333333
19:15:26.732 T:1623098112   DEBUG: CWebServer[80]: request received for /jsonrpc
19:15:27.121 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:1.00377 threshold:0.020 error:6.292632
19:15:27.293 T:1305957120  NOTICE: PLEX.websocket_client: Alexa_Websocket: Error connecting
19:15:27.890 T:1321202432   DEBUG: PLEX.websocket_client: PMS_Websocket: Received message from PMS server: {u'PlaySessionStateNotification': [{u'viewOffset': 208, u'playQueueItemID': 8571, u'url': u'', u'ratingKey': u'1242', u'state': u'playing', u'sessionKey': u'18', u'key': u'/library/metadata/1242', u'guid': u''}], u'type': u'playing', u'size': 1}
19:15:28.022 T:1926244864   DEBUG: CMMALRenderer::RenderUpdate - vsync 7698 (+1)
19:15:28.074 T:1623098112   DEBUG: CWebServer[80]: request received for /jsonrpc
19:15:28.122 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:1.00083 threshold:0.020 error:0.404812
19:15:28.294 T:1305957120  NOTICE: PLEX.websocket_client: Alexa_Websocket: connection closed, (re)connecting
19:15:28.295 T:1305957120   DEBUG: PLEX.websocket_client: Alexa_Websocket: Uri: wss://pubsub.plex.tv/sub/websockets/19384598/a3d52fac-5281-4995-81f2-9efd87c979e0?X-Plex-Token=hVpMpo6sePvJ17vMQ7xp, sslopt: {}
19:15:28.312 T:1289179904   DEBUG: PLEX.subscribers: Sent server notification with parameters: {u'hasMDE': u'1', u'X-Plex-Provider-Version': '2.3.12', u'X-Plex-Platform': u'Linux', u'playQueueItemID': u'8571', u'ratingKey': u'1242', u'key': u'/library/metadata/1242', u'duration': 6182774, u'X-Plex-Device-Name': u'PlexKodiConnect', u'X-Plex-Token': u'hVpMpo6sePvJ17vMQ7xp', u'X-Plex-Model': u'unknown', u'X-Plex-Platform-Version': u'unknown', u'X-Plex-Client-Identifier': u'a3d52fac-5281-4995-81f2-9efd87c979e0', u'X-Plex-Device': u'Linux', u'state': u'playing', u'X-Plex-Product': u'PlexKodiConnect', u'time': 208, u'X-Plex-Version': '2.3.12'} to https://192-168-1-8.1275ec1d73534fb59955132a05670972.plex.direct:32400/:/timeline
19:15:29.121 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:0.99970 threshold:0.020 error:-1.841897
19:15:29.413 T:1247236864   DEBUG: PLEX.plexgdm: Recieved UDP packet from [('192.168.1.8', 38692)] containing [M-SEARCH * HTTP/1.1]
19:15:29.414 T:1247236864   DEBUG: PLEX.plexgdm: Detected client discovery request from ('192.168.1.8', 38692).  Replying
19:15:29.415 T:1247236864   DEBUG: PLEX.plexgdm: Sending registration data HTTP/1.0 200 OK
19:15:30.170 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:0.99914 threshold:0.020 error:-2.967242
19:15:31.171 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:0.99949 threshold:0.020 error:-2.260106
19:15:32.220 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:0.99966 threshold:0.020 error:-1.935096
19:15:33.220 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:1.00000 threshold:0.020 error:-1.249356
19:15:34.219 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:1.00014 threshold:0.020 error:-0.976785
19:15:34.418 T:1247236864   DEBUG: PLEX.plexgdm: Recieved UDP packet from [('192.168.1.8', 38692)] containing [M-SEARCH * HTTP/1.1]
19:15:34.419 T:1247236864   DEBUG: PLEX.plexgdm: Detected client discovery request from ('192.168.1.8', 38692).  Replying
19:15:34.420 T:1247236864   DEBUG: PLEX.plexgdm: Sending registration data HTTP/1.0 200 OK
19:15:35.220 T:1895908096   DEBUG: ActiveAE::SyncStream pll:0.00000 (act:1.00000 lim:0.00000) rr:1.00002 threshold:0.020 error:-1.209786

I have seen posts with similar issues but they were all quite old and none of the solutions worked.

Appreciate any input on this.

How are you powering your Pi?
Can you upload a full set of logs?

Hi Sam,

I’m currently powering it with oneplus 5 dash charger until I receive the official power adapter. I have not seen any under voltage alerts.

I will upload the full logs as soon as possible. Thank you very much.

Hi Sam,

I received the rpi power source and now it works fine. Thank you very much :slight_smile: