-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuttering when pushing properties data to SnapServer through a plugin #1351
Comments
I've never observed such an issue, I'm using |
Thanks for getting back to me. It's good to know that the issue is my end somewhere, so will hopefully be resolvable (tbh, I thought that someone else would have found this if it was an issue with SnapServer, but wanted to be sure before I spent any more time trying to debug this). I'll get Modipy installed when I have a bit of free time and get back to you. |
The |
It does still stutter with the example script, yes: Info Log
This is with loglevel set to Trace Log
So the issue appears to be that a resync is forced every time an rpc message is received, and for some reason I have an abnormally high time value for the resync. Things I have (blindly, and naively) attempted, but have made no difference:
|
Have you tried using more threads? |
I just tried it now. I upped it from I would say that it might reduce the length of the stutter a bit, but not enough to not be noticeable. If it helps any, SnapServer is running under the following conditions:
Other things I have now ruled out:
--Edit-- If I disconnect all clients (ie shutdown all running SnapClient instances), I still get the As soon as I reconnect a client, the So, perhaps I am looking in the wrong place, and it is either a client config issue, or some kind of timing issue between server and clients? |
First up, thanks for this awesome software!
Now, I'm not sure if what I have here is a bug, or if it is user error, probably the latter
I am currently working on a meta plugin (which I intend to PR to the project, for you to decide to use or reject, but that is a different conversation).
I have the plugin pretty much working how I want, but have hit an issue. Whenever
Plugin.Stream.Player.Properties
is sent to Snapserver a noticeable stutter occurs. Specifically, I see a highonResync
value then 2 very noticeable stutters after this in the audio stream.To better demonstrate, I have put together a short video. Top window is the output from Snapserver. Bottom window is the tail of the plugin's debug log (I have inserted an
info
jsonrpc log message so that Snapserver shows when it receives the data. This is not part of the plugin, it is just for debugging here. I can confirm that this log line has no impact on the issue):https://www.youtube.com/watch?v=BVve-wI6Tcg
The data here is being sent every 10 seconds (again, just for testing purposes. It makes no difference if this is 1 second, or 10 minutes, the stutter still occurs). The bottom debug log shows the exact data that is being sent to Snapserver.
Am I missing something obvious here? Is the plugin blocking Snapserver in some way? It seems unlikely, but I can't rule it out yet.
It is probably worth adding, that running the query on the backend, but not sending the data to Snapserver does not cause the stutter, so I have ruled out issues with the source.
The text was updated successfully, but these errors were encountered: