Weird Playlist script behaviour

You have a question or need an advice about how to do something? Ask it here!
Post Reply
Thijmen
Posts: 130
Joined: 16 Jul 2019 20:19
Weird Playlist script behaviour

Post by Thijmen »

Hi there,

Sometimes I experience some issue with playlist script generation.
I hope you can help me.

What I am seeing is two things:

1. Sometimes playlist does not generate at all
I assume that the "engine" then cannot generate the first entry and just stops then.
If I then use a PROGRAM_STARTSCRIPT with the _same_ script directly, it opens a new playlist (with that same script), it will generate fine.

2. Sometimes, when a new playlist is opened, I see less tracks
For example, I just had that it would only show 3 tracks in the playlist. After playing the first one, I can see the others being added.
Playlist lookahead is on the script 0 and 6 configured in the global settings.

If there is some logs available for me to debug this, I would've done this but I need some guidance here.
User avatar
radio42
Site Admin
Posts: 9052
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Weird Playlist script behaviour

Post by radio42 »

1. No, it might skip that script line. So I guess there is some other issue. But I can not tell here which one. Any hint or exception the the logs? See the ribbon tab.

2. Maybe it is the same issue?
Yes, you can use the „Test…“ function of the script to see, if you maybe have a history issue?
Thijmen
Posts: 130
Joined: 16 Jul 2019 20:19
Re: Weird Playlist script behaviour

Post by Thijmen »

1. No, nothing in the error log. Last exception dates from january.

2. No errors pop up from there, and work properly.
User avatar
radio42
Site Admin
Posts: 9052
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Weird Playlist script behaviour

Post by radio42 »

The "Test..." function always produces an output - so it is impossible 'nothing pop up'.
The full output in this window (bottom part) is interesting...
Attachments
Screenshot 2026-03-20 192310.png
Thijmen
Posts: 130
Joined: 16 Jul 2019 20:19
Re: Weird Playlist script behaviour

Post by Thijmen »

I've send you the log via Email
User avatar
radio42
Site Admin
Posts: 9052
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Weird Playlist script behaviour

Post by radio42 »

That log returned script entries / tracks.
As you said, it seems, that it only under certain conditions produces errors resp. has issues.
So this is indeed hard to measure it tell from here.
So you would need to monitor it when you discover the error. I assume it is a history issue.
Thijmen
Posts: 130
Joined: 16 Jul 2019 20:19
Re: Weird Playlist script behaviour

Post by Thijmen »

>So you would need to monitor it when you discover the error. I assume it is a history issue.

I understand. What can I do in that situation? Would the script scheduler output some debug log somewhere, perhaps something that I can toggle?
User avatar
radio42
Site Admin
Posts: 9052
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Weird Playlist script behaviour

Post by radio42 »

No. When the error occurs you might run the test script.
Or you enable the Debug Logging in the general settings and you can take a look once the issue occurred.

It is really difficult to find the reason.
How often do you have the issue?
Thijmen
Posts: 130
Joined: 16 Jul 2019 20:19
Re: Weird Playlist script behaviour

Post by Thijmen »

I think this happens maybe 2-3 times a week? I have every hour a new script in the scheduler.

I don't think it's due to to the scripting being wrong, since starting a new program with the PROGRAM_STARTSCRIPT works directly. Odd, isn't it?

I've enabled the debug logging - once this happens again I'll take a look to see what's going on.
User avatar
radio42
Site Admin
Posts: 9052
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Weird Playlist script behaviour

Post by radio42 »

No, I also guess the script is not the issue.
Hence my guess it might be related to the history.

Post Reply