xLightsSequencer / xLights

xLights is a sequencer for Lights. xLights has usb and E1.31 drivers. You can create sequences in this object oriented program. You can create playlists, schedule them, test your hardware, convert between different sequencers.
GNU General Public License v3.0
569 stars 212 forks source link

Mac xLights Freezes when Image model is added #4962

Open kevinsaucier opened 1 week ago

kevinsaucier commented 1 week ago

MacOS 15 xLights 2024.17 and 2024.18

I have a layout that has been working fine on Windows all year. Just picked up an M4 Mini and copied my layout files (and supporting files over) and it was working OK to start with but, a few days ago, I was no longer able to make changes on the Layouts tab. If I tried to copy/delete/replace a model, xLights would just go to the spinning rainbow orb forever (I even left it overnight, just in case). I /could/ change a models position on the controller (via Visualizer) and it didn't freeze, but working with any model directly failed.

After much trial and error, I think I've narrowed it down to the Image model. I have 32 image models in my layout to support visualizing the RGBW lights for my fountains. Each of the 8 fountains is represented by 4 images laid on top of each other on the layout (the image below shows 4 of the fountains). 24 images seems to work fine but xLights is freezing as soon as I add the 25th. Doesn't seem to matter which one is 25th (I tried different orders).

The attached zip file includes both _working and _notworking versions of a simplified XML file. To duplicate the behavior, rename each to remove the and open the layout. Try to copy the star in the middle of the layout (or just try to add another model - I've been using stars). In the _working layout, it works as you expect. In the _not_working layout, the new model freezes for a few seconds and then you get the spinning orb of you're screwed.

image

As a side note, even when the layout is working, I've found a couple of times when the images just glitch out (all 8 fountains turn into bright ping rectangles). Never seen that on the Windows version either. 🤷‍♂️

Let me know if I can provide any further info (or if there happens to be a better way to visualize what I'm trying to visualize. Thanks!

Archive.zip

LamboCreeper commented 6 days ago

I am facing a similar issue to this which is causing my system to run out of memory.

It occurs when I am in the Sequencer tab and clicked on a display element which is an Image (for context: I use these for sequencing DC items connected to relays). I get the same bright pink rectangle in the model preview as mentioned above. I believe this has started happening as of 2024.18. Happy to provide any additional information or raise a separate issue if you believe this is separate. Thanks

Screenshot of xLights' memory usage when clicked on a Image-based display element in the Sequencer:

image