svalinn / Cubit-plugin

Plugins and command extensions for Coreform Cubit
BSD 3-Clause "New" or "Revised" License
17 stars 14 forks source link

Crash on export with OSX #133

Open sjcrs opened 2 years ago

sjcrs commented 2 years ago

Hi, I have installed Cubit 2021.5 on my Macbook (running 11.4 Big Sur) and have installed the corresponding Cubit plugin for macOS and cubit 2021.5. With a simple STEP file imported, I'm following the directions here (https://svalinn.github.io/DAGMC/usersguide/cubit_workflow.html). When I run the export dagmc command, Cubit crashes and returns a lengthy problem report. The head of this shows:

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information: Assertion failed: (0), function serial_create_file, file /Users/runner/work/Cubit-plugin/moab/moab/src/io/WriteHDF5.cpp, line 2497.

I can reproduce the problem and show a lengthier chunk of the report if necessary. I'm hoping someone can help me get past this error.

Thanks!

pshriwise commented 2 years ago

Sorry to hear this is crashing @sjcrs!

It looks to me like this is coming from the following assertion in MOAB that has to do with the length of tag data https://bitbucket.org/fathomteam/moab/src/f641aadf7c6d240be3e6140c458bfdfb912bb3a1/src/io/WriteHDF5.cpp#lines-2942

Out of curiosity, can you successfully export a single volume like a sphere or box?

sjcrs commented 2 years ago

I created a single cube in CAD, exported to STEP, imported into Cubit, and saw the same behavior on exporting to dagmc.

makeclean commented 2 years ago

Could you attach a cubit journal file, or an acis file fully marked up that we can take a look at?

sjcrs commented 2 years ago

Hi all, I'm starting from a STEP file and issuing the following commands

import step "/TIARA_CAD.step" heal imprint body all merge tol 5e-7 merge all group "mat:Iron" equals 1 3 5 group "mat:Aluminum" equals 7 to 11 group "mat:Concrete" equals 6 group "mat:Scintillator" equals 12 group "mat:Vacuum" equals 2 group "mat:Iron" add 4 group "mat:Aluminum" add 13

dagmc export "tiara.h5m"

At this point it crashes.

Andy, I can email you the STEP file and/or a .cub5 file, if that's alright. I don't have a place to stash it on the web in order to produce a link.