Anim8or Community

General Category => Anim8or v0.98 Discussion Forum => Topic started by: NickE on November 16, 2014, 08:23:12 pm

Title: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: NickE on November 16, 2014, 08:23:12 pm
If the attached an8 file is opened and switched to Sequence Mode or Scene Mode, Anim8or crashes.  Oddly, if the figure (and object) are imported into another an8 project, the figure can be added to a sequence and work as long as the figure is not modified.  If an attempt is made to alter the figure, Anim8or will crash.

This file was created by a prototype SMD file importer (similar to the BVH importer) that I am writing. This crashing behavior occurs regardless of whether the object is added to the skeleton.  A bare skeleton causes the same behavior.

Any insight would be appreciated.

Thank you,
NickE
Title: Re: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: MvGulik on November 17, 2014, 12:45:35 pm
... lol

Code: [Select]
framerate { 0 }Don't do that. Do f>0.
Title: Re: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: NickE on November 17, 2014, 01:18:45 pm
MvGulik,

Good catch!  Thank you so much!

NickE
Title: Re: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: MvGulik on November 17, 2014, 01:41:20 pm
YW.

Mmm. Rereading your initial message, This part:
Oddly, if the figure (and object) are imported into another an8 project, the figure can be added to a sequence and work as long as the figure is not modified.  If an attempt is made to alter the figure, Anim8or will crash.
Seems to be not directly related to the zero framerate. So you might not be completely out of the woods yet. (I have not checked this part)

*spelling*
Title: Re: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: NickE on November 17, 2014, 01:43:16 pm
With fixing the framerate issue, you can switch to the Sequence or Scene Mode without Anim8or crashing, but if the figure is clicked while in Skinning mode, then changed to Sequence or Scene Mode, Anim8or crashes.

Can anyone see anything wrong with the bone weighting section of the an8 file?

Thank you,
NickE

Title: Re: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: MvGulik on November 17, 2014, 06:06:22 pm
No clue for the why at this side. (Although I seems to vague remember some similar (general)issue.)

Anyway. Confirming this one for 1129, although at this end its the returning to Figure mode that triggers the crash. [XP]
- Load example file. (with the framerate{0} part fixed.)
- Switch to Figure mode.
- just in case: Flat-view + "Flat Outline" enabled.
- Activate Multi-Bone Skin.
- Click Mesh.
- Switch to other mode, and back to Figure mode.
* Crash.

(Disabling "Flat outline"/"Smooth Outline" seems to prevent the crash.)

edit:
---------------------------
System Information ...
---------------------------
OpenGL Vendor:   Intel
OpenGL Renderer: Intel 915G
OpenGL Version:  1.4.0 - Build 7.14.10.4764
OS Version:      Windows XP Service Pack 3 (5.1) build 2600
---------------------------

Edits:
Backtrack: Issue turned up between build 1061 .. 1066
Using Flat view and Flat outlines in Figure mode seems to be part of the triggers.
Title: Re: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: MvGulik on November 17, 2014, 07:03:27 pm
@Nick: Its a general issue. So other than that zero framerate, there is noting wrong with your an8 source.
Title: Re: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: Steve on November 17, 2014, 11:53:25 pm
The crash is definitely caused by the 0 fps frame rate. Anim8or divides the frame number by the frame rate using integer arithmetic, and dividing by integer 0 crashes.  I'll fix Anim8or to prevent setting the frame rate to 0.
Title: Re: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: MvGulik on November 18, 2014, 10:12:18 am
Mmm. To me that kinda reads as only the first issue is picked up.
So just in case, there a actually 2 unrelated issues here. Msg 5 being a run down on issue 2. (which can also be triggered by just using a simple Mesh-Object inside the Figure editor.)

*spelling*
(If more data is needed, just let me know.)
Title: Re: [Bug Report] - Switching to Sequence Mode or Scene Mode Crashes Anim8or
Post by: Steve on November 18, 2014, 03:56:03 pm
Yes, I'm still looking into the second issue.