Frame skipping

Hi,

I am not sure if this started after March or April update, but ‘recently’ I get consistent frame skipping.

I run OpenVPN and Transmission, and thought CPU usage from that might be causing it, so turned off those services to check, but no difference.

It also seems like refresh rate is not switching anymore? I have set 3 second delay for refresh rate switch since both my projector and TV is slow to switch when jumping from 60p to 24p. This switch doesn’t seem to happen anymore, and I tried resetting the Kodi settings related to this, but no difference.

Skipping feels almost like 1-2 frames every 1-2 seconds. Sound is perfect with passthrough, and everything keeps in sync. Used to be perfect playback, and this started in the last couple of weeks.

Finally, thought I would provide logs from the get go, but this is what I get :confused:
osmc@osmc:~$ grab-logs -A
Logs successfully uploaded.
Logs available at https://paste.osmc.tv/

No idea where to start, and would prefer not to reset the whole thing so I would have to set up the vpn and everything again…

Try logs on a fresh boot after immediately reproducing the problem. Currently your logs are likely too large.

That did the trick. Here are the logs.

https://paste.osmc.tv/zucarafeti

I can’t say for sure that it’s causing your frame-skipping problem but you have installed network-manager (and network-manager-openvpn) that are going to cause network-related conflicts with connman,

ii  network-manager                      1.6.2-3                        armhf        network management framework (daemon and userspace tools)
ii  network-manager-openvpn              1.2.8-2                        armhf        network management framework (OpenVPN plugin core)

I would suggest that you remove them both. If the problem persists, at least we have eliminated one possible cause.

sudo apt-get purge network-manager-openvpn
sudo apt-get purge network-manager
1 Like

Indeed – I saw that last night but was mobile so didn’t get a chance to look at the rest of the log in detail.

You also have some audio issues:

21:03:47.546 T:4039111424   ERROR: CAESinkALSA::InitializeHW - Unable to find a suitable output format

Can you describe your audio setup? You seem to have selected 4 channels

So I purged network-manager, and I’ll be damned, but things seem to be working? I have had it installed for a long time, and this problem was fairly recent, and since things fill up the buffer fast enough, I never would have suspected it…

As for my audio setup, it is a 3.1, but pretty much everything is passthrough to my receiver without issue, and it deals with the speaker setup. The only reason I had 3.1 set in Kodi is if it needed to do any mixing for when things aren’t bitstreamed (or so I thought). Anyway, my receiver can deal with it, so set it to 7.1 for good measure. Also tried both settings to see if it was network-manager or this setting causing the interference, and the culprit seems to have been network-manager.

Finally, I played a couple of clips to test, and I ran into a thing that happens every once in a while, which is that it doesn’t start playback with passthrough, and things get jerky and have the wrong sound. Stop playback, start again, and usually things are back to normal. The last two playbacks in this log is ‘no passthrough and jerky playback’ >> stop and start playback >> ‘things are passthrough and buttery smooth’.
https://paste.osmc.tv/nanahusilo

This one doesn’t really bother me that much though, since once it starts playing correctly, you can watch the whole movie without issue.

Anyway, long winded reply, but THANKS! I have no idea how/why network-manager would ever cause the frame skipping, so big shout out to dill the trouble shooting demi-dog-god.

Sorry, just another note, I also don’t think it is changing the refresh rate to 23.976, just going by how fast the TV/projector starts.

The log will you show you this, and playback will not be smooth if the refresh rate is not being adjusted.

Make sure:

Adjust Refresh Rate: Always
Sync Playback to Display: Off
Resolution: 1080p

The settings are already like that.

I went through the logs to try and find something, and it seems to be defaulting to 60hz for some reason:

09:56:15.617 T:4077924944 NOTICE: InitWindowSystem: Using EGL Implementation: amlogic
09:56:15.678 T:4077924944 ERROR: GetString: error reading /home/osmc/.kodi/userdata/disp_cap
09:56:15.678 T:4077924944 WARNING: UpdateResolutions: ProbeResolutions failed. Trying safe default.
09:56:15.678 T:4077924944 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
09:56:15.678 T:4077924944 NOTICE: Found (1920x1080@60.000000) at 16, setting to RES_DESKTOP at 16

Even though it finds the modes in a different piece of the log:
10:32:18.682 T:4074439248 ERROR: GetString: error reading /home/osmc/.kodi/userdata/disp_cap
10:32:18.682 T:4074439248 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
10:32:18.683 T:4074439248 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940060 Hz
10:32:18.683 T:4074439248 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080i @ 60.000000 Hz
10:32:18.683 T:4074439248 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080i @ 59.940060 Hz
10:32:18.683 T:4074439248 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
10:32:18.683 T:4074439248 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.940060 Hz
10:32:18.683 T:4074439248 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 30.000000 Hz
10:32:18.683 T:4074439248 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 29.970030 Hz
10:32:18.683 T:4074439248 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 24.000000 Hz
10:32:18.683 T:4074439248 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 23.976025 Hz
10:32:18.683 T:4074439248 NOTICE: Found (1920x1080@60.000000) at 20, setting to RES_DESKTOP at 16

Can we get some complete debug logs when you have a refresh rate problem?

Sam