Sean Meighan

Software => Bugs in xLights/Nutcracker => Topic started by: DoctorWizard on March 05, 2019, 06:58:42 PM

Title: Animated GIF causes fatal crash when used with 'Image' model (Linux)
Post by: DoctorWizard on March 05, 2019, 06:58:42 PM
So I was thinking about how I might be able to model motorized moving things, such as disco balls and those swirly Gemmy projectors, and self-blinking things such as meteor tubes.  I thought to try an animated GIF, or better yet, an animated PNG (*.apng) since PNG also gives an alpha channel in addition to transparency.

Sigh.  It didn't work.  It will load a .apng without crashing, but only uses the first frame.  An animated .gif however, causes an immediate fatal crash every time in the Linux release 2019.8.  Tried multiple .gif's and .apng's in case perhaps one of them was corrupted.

Ideally it would be awesome if you could fully support these formats including the animation, alpha channel and transparency.
Title: Re: Animated GIF causes fatal crash when used with 'Image' model (Linux)
Post by: ghormann on March 06, 2019, 04:18:12 PM
For awareness, there is an open issue where animated gifs crash under linux.

https://github.com/smeighan/xLights/issues/1323

Greg
Title: Re: Animated GIF causes fatal crash when used with 'Image' model (Linux)
Post by: ghormann on March 06, 2019, 04:35:02 PM
Actually, can you
1) Are you compiling your self or using appImage
2) Share your house model
3) Share your animated image.


I just tested with 2019.15, complied myself on Uubuntu 18.04.02.  I tested the animated image in the issue linked above and it worked fine.

Greg.
Title: Re: Animated GIF causes fatal crash when used with 'Image' model (Linux)
Post by: DoctorWizard on March 07, 2019, 07:03:09 PM
Loads most of my test gif's without crashing using the 2019.14 appimage.  (Still doesn't animate though.  Sigh.)  With 2 of my test gif's get the message "unable to load suchandsuch.gif" but those 2 are pretty big with lots of frames.
Title: Re: Animated GIF causes fatal crash when used with 'Image' model (Linux)
Post by: ghormann on March 08, 2019, 04:03:24 PM
I've only tried a few, but the ones I tried animate.

If you have a reasonable size that loads but doesn't animate, you'll have to share so that someone can try to reproduce.

Greg