Getting Last Group ID Crashes Cubit

Coreform Cubit Version: 2024.3
Platform: macOS 14.4.1

Issue
Hi all,

I’m trying to retrieve the ID of the latest group created. To do this I’m using:

cubit.get_last_id("group")

However, running this causes Cubit to crash immediately. Running this in the CLI gives the error:

...Interrupt Detected. CUBIT Exiting...
Segmentation fault (core dumped)

I’ve tried this in 2023.11 and the above command seems to work there — it only crashes in 2024.3

Do you have any suggestions for a workaround in 2024.3?

Hi @pmarty,
thanks for reporting this!

As workaround you could use the parse list.

list = cubit.parse_cubit_list("group","all")
id = list[len(list)-1]

Hi @Norbert_Hofbauer,

That’s perfect, thanks so much for your help!

Have a great day :slight_smile:

I have submitted a fix for the crash in cubit.get_last_id("group"). In addition to @Norbert_Hofbauer’s suggestion there is also a cubit.get_next_group_id() method.

Karl

Hi @kgmerkley,

Amazing, thanks so much for addressing this so quickly! I’ll definitely keep my eyes peeled for that in the next Cubit release :slight_smile:

All the best,
Pat

@pmarty – If you need it sooner than then, we use a pretty robust CI/CD system and that fix has already deployed in a development build. You can download the development build from our downloads page:

  1. Coreform Cubit
  2. Latest Development Builds
  3. Coreform-Cubit-2024.5-rc+49391-Win64.exe (or equivalent Mac/Linux installers)

That’s good to know, thanks a lot for the info @gvernon — I’ll definitely give that a shot!