we were seeing something similar when we built our exe with Lazarus 2.4 with 32 bit target and ran on a 64 bit windows OS. In our case, the OpenFileDialog would take 20 to 30 seconds.
I used this as the main excuse to update to 3.4 where the same code compiled for either 32 bit or 64 bit opens the dialog within 2 seconds.
There was definitely an issue with FileOpen Dialog using Qt5, that was fixed, from memory about the time Lazarus 3.0 was released. It was 20second or a bit more freeze that related to dbus communications, "manageable" with the right dbus add-ons installed. Its not there now. Certain combinations of native widgets, all a blur in my memory now.
msintle's experience is a crash. From memory, some people reported that problem caused caused a crash, I never saw it. But it does not appear in any current Lazarus now. But msintle's use of Ubuntu 22.04 would be the right timing to show that problem. It was only with Qt5, never a problem with gtk2. Don't think Qt6 was a thing then ...
Look though the Qt branch of the forum, couple of years back.
msintle, you see it on both GTK2
and Qt5 ? (How about Qt6?) And using the Lazarus in U24.04 (from memory Laz_3.2) ? If so, not the issue above. Maybe unique to "VMs running on Parallels on an M3 Submax." ? Hmm, I wonder what that means ?
Davo