Author Topic: Crashing on rendering.  (Read 5167 times)

Offline Hauvega

  • Newbie
  • *
  • Posts: 7
    • View Profile
Crashing on rendering.
« on: December 07, 2015, 06:46:59 AM »
Here is my crash zip.  Trying to figure this out.  Hanging on rendering.

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: Crashing on rendering.
« Reply #1 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.

Daniel Kulp
Framingham, MA

Offline Hauvega

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Crashing on rendering.
« Reply #2 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

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Crashing on rendering.
« Reply #3 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.

Offline Hauvega

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Crashing on rendering.
« Reply #4 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.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Crashing on rendering.
« Reply #5 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?

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: Crashing on rendering.
« Reply #6 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.

Daniel Kulp
Framingham, MA

Offline Hauvega

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Crashing on rendering.
« Reply #7 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?

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Crashing on rendering.
« Reply #8 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?

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: Crashing on rendering.
« Reply #9 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.
Daniel Kulp
Framingham, MA

Offline Hauvega

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Crashing on rendering.
« Reply #10 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. 

Offline Rod R

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Crashing on rendering.
« Reply #11 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.
« Last Edit: December 09, 2015, 01:36:20 AM by Rod R »

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Crashing on rendering.
« Reply #12 on: December 09, 2015, 07:42:01 AM »
Maybe some good incentive to actually learn how to create your own effects.

Offline Rod R

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Crashing on rendering.
« Reply #13 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.
« Last Edit: December 09, 2015, 11:26:23 AM by Rod R »

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: Crashing on rendering.
« Reply #14 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"?
Daniel Kulp
Framingham, MA