PhoenixFD for Maya crashes due to integer divide by zero error under mayapy

We’re running PhoenixFD version 3.04.00 with the mayapy.exe from Maya 2016.5 on WIndows 7 x64 and encountering a crash. We enabled MAYA_DEBUG_ENABLE_CRASH_REPORTING and the crash is inside the PhoenixFD plug-in. Here is the information from the crash file generated when mayapy.exe terminates:

//=====================================================
Maya Crash Report
//=====================================================
Exception code: C0000094: INT_DIVIDE_BY_ZERO
Fault address: B2B4C8BF in C:\Program Files\Autodesk\Maya2016.5\phoenixfd\plug-ins\phoenixfd.mll
0001:0027B8BF Logical offset (see .map file for location)

Call stack:
(11) section:offset 0001:0027B8BF Address: 0xB2B4C8BF Frame: 0x0023C310
    Module: C:\Program Files\Autodesk\Maya2016.5\phoenixfd\plug-ins\phoenixfd.mll (-exported-)
    Source: (0)

(12) section:offset 0001:00172AD0 Address: 0xB2A43AD0 Frame: 0x0023C850
    Module: C:\Program Files\Autodesk\Maya2016.5\phoenixfd\plug-ins\phoenixfd.mll (-exported-)
    Source: (0)

(13) section:offset 0001:0013E71B Address: 0xC06BF71B Frame: 0x0023C8B0
    Module: C:\Program Files\Autodesk\Maya2016.5\bin\OpenMaya.dll (-exported-)
    Location: THsurfaceShape::computePlug + 0x6B bytes
    Decl: public: virtual void THsurfaceShape::computePlug(class Tplug const & ptr64,class TdataBlock & ptr64)
    Source: (0)

(14) section:offset 0001:0015E68E Address: 0xCAC4F68E Frame: 0x0023CA40
    Module: C:\Program Files\Autodesk\Maya2016.5\bin\DependEngine.dll (-exported-)
    Location: TdependNode::dbEvaluate + 0x55E bytes
    Decl: protected: virtual bool TdependNode::dbEvaluate(class TmsgEval & ptr64)

The simulation works interactively, just crashes when run from mayapy.exe which may be a red herring. What we’re trying to do is drive the vertices of a polyhedral mesh from a PhoenixFD simulation. I am attaching the entire MayaCrashLog with the stack trace Note that the first 10 stack frames are missing (whatever phoenixfd is calling into).

Has anyone reported a crash like this?
Thanks,
- Bill
MayaCrashLog170907.1731.txt (15 KB)

Hey,

I think this one might not be in our bugtracker yet - would it be possible to send over the scene that exhibits the issue?

Thanks!

Hello. I’m still trying to isolate this into a standalone case which is independent of our pipeline. I’ll work on this today. Thanks.

Thank you! Please ping us whenever you have something.

I’m attaching an example. Unfortunately its a script you’ll need to run in a WiIndows shell window because the crash only occurs in mayapy mode, not interactively. Please let me know if you need help reproducing. Thanks.
2kos.zip (32.8 KB)

Sweet! Thanks a ton! Got the crash and the fix will be in tomorrow’s nightly.

Cheers!

Thank you so very much for the prompt turnaround! This really helps our production. Take care.