Sean Meighan

Software => Bugs in xLights/Nutcracker => Topic started by: Hauvega on December 07, 2015, 06:46:59 AM

Title: Crashing on rendering.
Post by: Hauvega on December 07, 2015, 06:46:59 AM
Here is my crash zip.  Trying to figure this out.  Hanging on rendering.
Title: Re: Crashing on rendering.
Post by: dkulp on December 07, 2015, 09:40:25 AM

You have a lightning effect that doesn't have any of the lightning properties defined:

Code: [Select]
    Rendering layer effect for frame 984 of Arch7, layer 0.
    BUTTON_Palette1=#FF0000,BUTTON_Palette2=#00FF00,BUTTON_Palette3=#0000FF,BUTTON_Palette4=#FFFF00,BUTTON_Palette5=#FFFFFF,BUTTON_Palette6=#000000,CHECKBOX_LayerMorph=0,CHECKBOX_OverlayBkg=0,CHECKBOX_Palette1=0,CHECKBOX_Palette2=0,CHECKBOX_Palette3=0,CHECKBOX_Palette4=0,CHECKBOX_Palette5=1,CHECKBOX_Palette6=1,CHOICE_LayerMethod=Normal,Effect=Lightning,SLIDER_Brightness=100,SLIDER_Contrast=0,SLIDER_EffectLayerMix=0,SLIDER_SparkleFrequency=0,TEXTCTRL_Fadein=0.00,TEXTCTRL_Fadeout=0.00

That's causing the crash.   I've updated the code to defend agains that (so if #bolts is 0, make it 1, etc...) so next build won't crash, but I'm kind of curious how that lightning effect was created.

Title: Re: Crashing on rendering.
Post by: Hauvega on December 07, 2015, 10:28:53 AM
Random generation.  I also notice duplication and out of order effect ref number ordering in xml file
Title: Re: Crashing on rendering.
Post by: Gilrock on December 07, 2015, 02:46:01 PM
That doesn't sound like a problem.  It creates an effect database to conserve space so its expected that effect reference numbers will show up multiple times and in different orders.
Title: Re: Crashing on rendering.
Post by: Hauvega on December 08, 2015, 05:18:40 AM
Well I still am having trouble with rendering.  It does not complete.  I have to either crash the program or kill in the task manager.  XL3 does not have this problem.  Random generated effects in XL3 works.
Title: Re: Crashing on rendering.
Post by: Gilrock on December 08, 2015, 06:39:28 AM
Well I still am having trouble with rendering.  It does not complete.  I have to either crash the program or kill in the task manager.  XL3 does not have this problem.  Random generated effects in XL3 works.

Well Dan's fix obviously isn't released yet so did you change something to expect a different outcome?
Title: Re: Crashing on rendering.
Post by: dkulp on December 08, 2015, 07:16:54 AM
That said, if you can look in the backtrace.txt of the crash report and if it's NOT rendering a lightning effect, send the report.   I only fixed the lightning effect, if some other random effect is causing a problem, we'd like to know about it.

Title: Re: Crashing on rendering.
Post by: Hauvega on December 08, 2015, 11:17:50 AM
Even when I remove the lightning effect on loading.  I then attempt to render the sequence and it hangs in rendering.  I left it alone for 45 mins and it still never completed.  I force a crash by clicking on the grid.  Is there a way to remove some suspected effects or correct them in the xml file?
Title: Re: Crashing on rendering.
Post by: Gilrock on December 08, 2015, 11:31:10 AM
Sounds like maybe some other effects aren't getting proper default values during random generation.  For now can you just create a random sequence in XL3 and then open the XML file in XL4 to convert it?
Title: Re: Crashing on rendering.
Post by: dkulp on December 08, 2015, 12:55:51 PM

No, this was another bug that I fixed with fixing the lightning effect.  In certain cases, the single strand chase can get into an infinite loop, usually when dropped on a model that is only a single node.   I think we need another release real soon to get these fixes out.
Title: Re: Crashing on rendering.
Post by: Hauvega on December 08, 2015, 04:58:48 PM
What models are really good for randomizing?  I would like to see a feature that allows the user to customize
the random effect set.   Not all effects are good for randomizing. 
Title: Re: Crashing on rendering.
Post by: Rod R on December 09, 2015, 01:33:28 AM
Sounds like maybe some other effects aren't getting proper default values during random generation.  For now can you just create a random sequence in XL3 and then open the XML file in XL4 to convert it?

I'm the same issue, I tried making up a random sequence in XL3 and opening it up in XL4 to convert but same issue.  It crashes whenever I try to render or save any sequence that I have.  The last thing I was doing was cutting and pasting ramp up/down effects.  If I just open and play any sequence its fine only crashes when saving or rendering.
Title: Re: Crashing on rendering.
Post by: Gilrock on December 09, 2015, 07:42:01 AM
Maybe some good incentive to actually learn how to create your own effects.
Title: Re: Crashing on rendering.
Post by: Rod R on December 09, 2015, 08:46:48 AM
I was actually cutting and pasting my own effects from one group of elements to another its a bunch of A/C lawn elements (20 items) too much to redo by hand each one. Simple on, offs ramps but to redo each line (20) cutting and pasting was faster that's when the crash occurred which was weird nothing intensive just time consuming to recreate.  I was coping from other views (lawn to roof) switching back and forth did it in the past with no issues. Just can't seem to recover from it.  Doesn't matter which sequence I have I open so it does look like the something that is common got corrupted not sure how.
Title: Re: Crashing on rendering.
Post by: dkulp on December 09, 2015, 10:00:35 AM

WOW!!!  Someone has spent a lot of time on custom models.    Very very nice.   Love the dinosaur.    I might just save your xml to copy some of the custom models.   Awesome job.


That said, your problem is entirely due to your "Mini Tree #1" model being corrupt.   Somehow, in the xml, I see:

Code: [Select]
<model name="Mini Tree #1" DisplayAs="Effect" StringType="RGB Nodes"

"Effect" is not a valid type.   I assume that should be "Tree 180"?
Title: Re: Crashing on rendering.
Post by: Rod R on December 09, 2015, 10:31:39 AM
Thanks, yea spend some time creating the models, but it really helps me when visualizing the house model, if not gets really confusing.  Yea the mini trees are half trees too cheap to go all the way around with the RGb's, besides that no one beside me sees the backs of the trees.  I figured that one of the RGB models got corrupt it was just weird that it happened when I was working with the A/C elements ramps and such.  What wold be the best way to fix it?
Title: Re: Crashing on rendering.
Post by: dkulp on December 09, 2015, 10:50:56 AM
I think if you go to the layout tab, open the models dialog, and open the settings for the Mini Tree #1 and change the type to Tree 360 and then back to Tree 180, it should fix it.

Alternatively, open up the xlights_rgbeffects.xml (with xLights closed) in notepad or something and change the attribute to "Tree 180".
Title: Re: Crashing on rendering.
Post by: Rod R on December 09, 2015, 11:25:57 AM
I think if you go to the layout tab, open the models dialog, and open the settings for the Mini Tree #1 and change the type to Tree 360 and then back to Tree 180, it should fix it.

Alternatively, open up the xlights_rgbeffects.xml (with xLights closed) in notepad or something and change the attribute to "Tree 180".

Hi Daniel, that fixed the issue what was strange it was turned around.   The original models are set for 180 when I check Mini tree #1 it was set for 360.  The other mini trees were fine.  I switched #1 back to 180, now everything is fine.  Thanks for your help really appreciate it.  Was really confused, it was just weird how it happened I'm thinking it must have happened when I did a render.  I do it time to time to run part of the sequence to see how its looking.  Anyway thanks again.
Title: Re: Crashing on rendering.
Post by: ejosterberg on December 20, 2015, 02:17:49 PM
My problem might be similar. I have just started setting up XLights to replace my LOR SS software now that I'm over my license count with RGB Pixels. I've not yet started any sequencing.
I have just laid out my models (While traveling with my laptop) and I've attempted to copy my show directory to the PC running at the house. (New install).  All other tabs appear to be fine, but when I attempt to view the layout tab, the application crashes. I applied updates to go from 4.2.17 to 4.2.25 and I'm still crashing.
Title: Re: Crashing on rendering.
Post by: ejosterberg on December 20, 2015, 02:22:18 PM
And I can confirm it's also crashing on 4.3.0
Title: Re: Crashing on rendering.
Post by: Gilrock on December 20, 2015, 03:32:57 PM
This looks to be video driver related to me.
Title: Re: Crashing on rendering.
Post by: ejosterberg on December 20, 2015, 05:05:04 PM
Thank you.
I've updated the video drivers and the problem is now gone!

 -Eric