pmarty
May 26, 2024, 3:30pm
#1
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]
pmarty
May 28, 2024, 6:25am
#3
Hi @Norbert_Hofbauer ,
That’s perfect, thanks so much for your help!
Have a great day
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
pmarty
May 29, 2024, 9:24am
#5
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
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 :
Coreform Cubit
Latest Development Builds
Coreform-Cubit-2024.5-rc+49391-Win64.exe
(or equivalent Mac/Linux installers)
pmarty
May 30, 2024, 8:24am
#7
That’s good to know, thanks a lot for the info @gvernon — I’ll definitely give that a shot!