News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16445
Latest: Octonath
New This Month: 16
New This Week: 2
New Today: 1
Stats
Total Posts: 132566
Total Topics: 16436
Most Online Today: 160
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 126
Total: 126

FP 7.5 Crash after approximately 440 loads of the same Playlist, memory full

Started by digilabpg, April 23, 2024, 04:57:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

digilabpg

good morning everyone,
I have this problem if anyone can help, I have an RP4 with FFP 7.5 but I also have the same problem with all versions, I have a Python script that periodically loads a Playlist that loads a photo in FHD, after about 440 loads of the same Playlist FFP crashes, I have seen that with each loading of the Playlist the used memory increases until it is almost exhausted, after the crash FPPD restarts and frees the memory but the screen remains off for a few seconds.
What I'm wondering is if it's possible to prevent the same Playlist being loaded multiple times from taking up more and more memory to avoid the Crash.
Thanks very much to anyone who can help me.

Poporacer

Quote from: digilabpg on April 23, 2024, 04:57:22 AMI have a Python script that periodically loads a Playlist that loads a photo in FHD
Can you explain this? Maybe the Script that you are using?

Quote from: digilabpg on April 23, 2024, 04:57:22 AMafter about 440 loads of the same Playlist FFP crashes
Why is the script loading the playlist 440 times?

Quote from: digilabpg on April 23, 2024, 04:57:22 AMWhat I'm wondering is if it's possible to prevent the same Playlist being loaded multiple times
It is possible, but there are MANY times that people would actually need to load the same playlist back to back. How would you identify a valid back to back as opposed to an unwanted one? Without more information, it sounds like your script is to blame and not FPP. But I could be wrong.
If to err is human, I am more human than most people.

CaptainMurdoch

I'm really curious what is going on here.  I have 3 picture frames running FPP that display photos all day long with two changing the picture every minute and one changing every 30 seconds and I haven't seen these run out of memory.   fppd has been running since January 5th on one of these since that was the last time I pulled in updates on that particular unit.

A lot of my pictures are pre-sized to 1920x1080 to fit the resolution of the monitor, but some are direct uploads from my iPhone so the are 12 megapixels.  FPP will cache the scaled copy of the image so subsequent iterations displaying the same image will not have to rescale every time the same image is displayed.
-
Chris

digilabpg

Quote from: digilabpg on April 23, 2024, 04:57:22 AMgood morning everyone,
I have this problem if anyone can help, I have an RP4 with FFP 7.5 but I also have the same problem with all versions, I have a Python script that periodically loads a Playlist that loads a photo in FHD, after about 440 loads of the same Playlist FFP crashes, I have seen that with each loading of the Playlist the used memory increases until it is almost exhausted, after the crash FPPD restarts and frees the memory but the screen remains off for a few seconds.
What I'm wondering is if it's possible to prevent the same Playlist being loaded multiple times from taking up more and more memory to avoid the Crash.
Thanks very much to anyone who can help me.
thanks for the reply, 
I always load the same Playlist which always loads the same image, the Playlist is immediately paused and the image remains fixed on the screen, the Python script creates a new image with the same name and then reloads the same Playlist , the screen displays the new image and pauses again, this repeats about every second, after about 440 times FFPD crashes, I saw that this operation allocates memory up to full, I thought this was the problem.
thanks for your answer.

digilabpg

Quote from: Poporacer on April 23, 2024, 07:20:39 AM
Quote from: digilabpg on April 23, 2024, 04:57:22 AMI have a Python script that periodically loads a Playlist that loads a photo in FHD
Can you explain this? Maybe the Script that you are using?

Quote from: digilabpg on April 23, 2024, 04:57:22 AMafter about 440 loads of the same Playlist FFP crashes
Why is the script loading the playlist 440 times?

Quote from: digilabpg on April 23, 2024, 04:57:22 AMWhat I'm wondering is if it's possible to prevent the same Playlist being loaded multiple times
It is possible, but there are MANY times that people would actually need to load the same playlist back to back. How would you identify a valid back to back as opposed to an unwanted one? Without more information, it sounds like your script is to blame and not FPP. But I could be wrong.
thanks for your answer,
I load the same Playlist many times because the playlist loads a single image which is immediately paused, the Python Script modifies the image which is reloaded on the screen recalling the same Playlist, this operation is repeated once a second, I have seen that after about 440 times FFPD crashes, I saw that it increases the memory allocation until it is full, I thought this was a problem and I could be doing the procedure wrong.
Thank you.

CaptainMurdoch

What FPP Command are you using to start the playlist the second and following times?  Are you using "Insert Playlist Immediate"?  If so, you have 440 nested playlists which would consume memory.  You should just set the playlist as repeating and then using the "Next Playlist Item" command to stop the pause and loop back around to the Image entry and display the image again.  FPP will detect that the image has changed if the timestamp is updated and it will reload/rescale/recache the new image.
-
Chris

digilabpg

Quote from: CaptainMurdoch on April 23, 2024, 03:48:12 PMWhat FPP Command are you using to start the playlist the second and following times?  Are you using "Insert Playlist Immediate"?  If so, you have 440 nested playlists which would consume memory.  You should just set the playlist as repeating and then using the "Next Playlist Item" command to stop the pause and loop back around to the Image entry and display the image again.  FPP will detect that the image has changed if the timestamp is updated and it will reload/rescale/recache the new image.
Good morning and thanks for your help,
using the 'Item' command as you suggested, the memory allocation does not change but the image always remains fixed on the first one, the timestamp of the image changes but it seems that the new one is not loaded, the first one always remains on the screen , I attach an example of the Script:

# I set overlay mode
arg = {"State" : 1}
r = requests.put('http://localhost/api/overlays/model/fb0/state';, json = arg)

while True:
   # load Playlist, old method
   #r = requests.get('http://localhost/api/command/Start Playlist/step1/false/false')

   # Load the playlist new method, the Playlist loads the image and then pauses
   r = requests.get('http://localhost/api/command/Start Playlist At Item/step1/1/false/false')

   # I edit the image loaded from the playlist
   mod_image()

   # Sleep
   time.sleep(1.0)

I thank anyone who can help me, bye.

PixelsAndPepsi

I didn't say use the Item start option, I said use the "next playlist item" FPP Command.  That tells FPP to jump to the next item in the playlist which will stop pausing and loop back around to the top of the playlist and reload the image.

CaptainMurdoch

Quote from: PixelsAndPepsi on April 25, 2024, 07:35:31 AMI didn't say use the Item start option, I said use the "next playlist item" FPP Command.  That tells FPP to jump to the next item in the playlist which will stop pausing and loop back around to the top of the playlist and reload the image.

This is me and my test account.  For some reasons every time I go into Tapatalk, it insists on logging me out of my main account and into the test account and this time I forgot to log back into the main account. Tapatalk has definitely gone down the drain over the years, especially with the new popup ads.
-
Chris

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod