Anim8or Community

General Category => Anim8or v0.98 Discussion Forum => Topic started by: Deepthought on February 04, 2016, 09:47:04 pm

Title: BUG: anim8or freezing from converted file. file too big?
Post by: Deepthought on February 04, 2016, 09:47:04 pm
I'm trying to load some files from a conversion program i wrote. whenever I try to to load them with the latest build, anim8or completely freezes. They work just fine with version 97d. Even if i re-save from version 97d, they still crash the latest version. The issue is present in both windows 7 and linux under wine. I have attached one of the files i am trying to use.
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: kreator on February 05, 2016, 01:04:06 am
Running ok with me. Build 1215 of Anim8or,  Windows 10 has not locked up for me yet.  Memory issue with you?
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Steve on February 05, 2016, 01:50:33 am
I'll look into it.
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Deepthought on February 05, 2016, 03:40:57 pm
Running ok with me. Build 1215 of Anim8or,  Windows 10 has not locked up for me yet.  Memory issue with you?
I have 8 gigs RAM on the win7 machine and 4gigs on the linux one, so that shouldn't be a problem.
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Raxx on February 05, 2016, 03:49:19 pm
The only time this file crashes is if I click in the console window before it loads the scripts. But it does this with any file.
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Deepthought on February 05, 2016, 04:07:53 pm
specifically, the problem is that when i open the file, I see the little loading bar on the bottom, and it shows the name of one of the objects, but then the GUI freezes with the layer selector over the splash screen
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Claude on February 05, 2016, 04:46:39 pm
Build 1213 Windows 7
Loads OK.
Freezes in sequence mode when clicking play
button.
Try setting frame to 30 when you create
your file.It seems to solve the problem in my case.
Possibly unrelated.
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Deepthought on February 06, 2016, 04:59:47 pm
yeah, I'm not even getting that far
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: selden on February 07, 2016, 10:02:42 am
For those who said it worked OK, how long did you wait? And what type of  hardware do you have?

 It had been using 25% of the CPU on my system(*) for several minutes before I terminated it, but it was only using about 70MB of memory. It didn't even get so far as naming any objects.

----
 * -- I'm using build 1215 under Win7 on a 1.6GHz Core i7 laptop with Nvidia NVS 3100 graphics.
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Deepthought on February 12, 2016, 11:31:18 pm
Huh.  If I go into notepad and strip out the header, it gives me the error reading file dialog. If I strip out the material definitions it loads the geometry and I can redefine the materials.
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Steve on February 13, 2016, 05:25:18 pm
The problem is that the grid size in the environment chunk is all zeros.  This causes Anim8or to go into a loop.  I don't know how this happened but I've added a patch to Anim8or to replace any 0 valued grid settings with the defaults so this won't happen:

header {
  version { "0.97d beta" }
  build { "2008.09.21" }
}
environment {
  grid { 0 0 0 0 }
  lighting {
    intensity { 1 }
    ambientintensity { 0.20000 }
  }
  framerate { 0 }
  film {
    size { 400 300 }
    ratio { 4 3 }
  }
}
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Deepthought on February 13, 2016, 09:18:45 pm
OK. Thanks. I'll add 1s for the grid to my program. I bet if the grid rendering code was incrementing by 0 it could never finish rendering the grid.
Title: Re: BUG: anim8or freezing from converted file. file too big?
Post by: Steve on February 14, 2016, 06:15:56 pm
It was dividing by 0.0 which resulted in +Inf for the number of lines to draw :-)

If you want to use the Anim8or defaults here are the values - you probably also want to set the frame rate to something besides 0:

  grid { 1 10 50 50 }
  framerate { 30 }