NetRadiant crash with IQM code on macOS on M1 (both Rosetta2 and native)
z-Silhouette on IRC reported me he got NetRadiant crashes on maCOS on M1 mac with amd64 NetRadiant build from https://netradiant.gitlab.io/page/download running on Rosetta2 or with self-built native build. It turns out the crash disappears when the iqm
keyword is removed from the unvanquished.game
file, meaning the crash is gone when the IQM code isn't used by NetRadiant.
The code was added in !184 (merged).
The crash happens at the moment an entity using an IQM model is added.
There is also a low chance the root cause of the crash lives in NetRadiant and is only triggered by some data fed by the IQM module but the bug seems to be very reproducible just by adding any entity and then just by adding any IQM model to the scene.
The work around to disable iqm model loading in NetRadiant is only somewhat acceptable when models are only used to be displayed in editor as entity previews. There is an high probability the crash would also affect map compilation with q3map2 as soon as IQM map models are expected to be baked in in level geometry (this scenario is untested on M1 mac).
I don't have M1 hardware and I don't reproduce the crash on Intel mac so I don't really know where to head at.
Since the picomodel IQM code is common to GtkRadiant, NetRadiant and DarkRadiant is is likely to be reproducible with other softwares too.