Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: BUG: anim8or freezing from converted file. file too big?  (Read 20177 times)

Deepthought

  • Full Member
  • ***
  • Posts: 157
    • View Profile
BUG: anim8or freezing from converted file. file too big?
« 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.
« Last Edit: February 04, 2016, 09:47:33 pm by Deepthought »
Logged

kreator

  • Hero Member
  • *****
  • Posts: 1146
  • Anim8or, Blender, & Carrara. A Great Combination!
    • View Profile
    • Anim8orWorld
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #1 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?
« Last Edit: February 05, 2016, 01:05:19 am by kreator »
Logged
O

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2126
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #2 on: February 05, 2016, 01:50:33 am »

I'll look into it.
Logged

Deepthought

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #3 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.
Logged

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1482
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #4 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.
Logged

Deepthought

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #5 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
Logged

Claude

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #6 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.
Logged

Deepthought

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #7 on: February 06, 2016, 04:59:47 pm »

yeah, I'm not even getting that far
Logged

selden

  • Full Member
  • ***
  • Posts: 221
    • View Profile
    • Modelling for Celestia
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #8 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.
« Last Edit: February 07, 2016, 10:04:42 am by selden »
Logged
Selden

Deepthought

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #9 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.
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2126
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #10 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 }
  }
}
Logged

Deepthought

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #11 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.
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2126
    • View Profile
Re: BUG: anim8or freezing from converted file. file too big?
« Reply #12 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 }
Logged