Page 1 of 1

Bullet dynamica crash when opening scenes

Posted: Wed Nov 28, 2012 7:38 am
by ydiaz
Hello,

I'm having a quite annoying crash when using the Bullet Dynamica plugin in Maya 2011. It also happens on Maya 2012 for the Mac which makes me think it's something I'm doing wrong.

I attached the scene with that gives me the problem. I just used dg_Voro_py to shatter a sphere, chose a single piece, went to the dynamica shelf and clicked Create Active Mesh Rigid Body. The simulation runs fine and everything seems perfect, so I save the scene, no errors there, but when I try and load it again Maya crashes. The scene won't open anywhere else too, even on a Mac machine with Maya 2012.

I tried deleting the history on the piece and/or using Mesh > Cleanup with several tool settings with no luck. It doesn't seem to happen when creating Active Hull Rigid Bodies though, but the simulation I get using them isn't nearly as accurate.

Any idea what am I doing wrong?

Re: Bullet dynamica crash when opening scenes

Posted: Sat Dec 01, 2012 5:41 pm
by ydiaz
so apparently it was my fault because I was using Maya ASCII instead of Maya Binary :shock:

everything works perfectly fine if I save the scene as MB. At least I found the problem, right? :lol:

Thanks!

Re: Bullet dynamica crash when opening scenes

Posted: Sat Dec 01, 2012 9:39 pm
by majestik666
out of curiosity, do you have a stacktrace of the crash ?

on scene load maya nodes are sometimes not completly ready
so most of the operations have to be delayed until the loading
is finished, really not sure without a stack trace but could be the cause.

Re: Bullet dynamica crash when opening scenes

Posted: Mon Dec 03, 2012 4:14 pm
by ydiaz
I don't know how to get to one, unfortunately. I've searched the logs in my Mac but there doesn't seem to be anything there. Where can I get the stacktrace?

Re: Bullet dynamica crash when opening scenes

Posted: Tue Dec 04, 2012 12:10 am
by majestik666
if you launch maya from a shell with :

maya -d gdb

you should get a stacktrace upon crashing

Re: Bullet dynamica crash when opening scenes

Posted: Tue Dec 04, 2012 7:42 am
by ydiaz
Seems like maya doesn't understand the -d flag, it returns the typical help text describing the flags:

Flags:
-v prints the product version and cut number
-batch for batch mode
-prompt for interactive non-gui mode
-proj [dir] look for files in the specified project dir
-command [mel command] runs the specified command on startup
-file [file] opens the specified file
-script [file] sources the specified file on startup
(use complete file name)
-recover recover the last journal file
(use 'Render -help' for more options)
-optimizeRender [file] [outfile]
(use 'maya -optimizeRender -help' for more options)
the specified scene. required to archive
-noAutoloadPlugins do not auto-load any plug-ins.
-3 enable Python 3000 compatibility warnings
-help prints this message

I'm running it using the Maya Terminal, which usually works for everything else. Do I need to run in differently somehow?