Hi James,
Troubleshooting an intermittent segfault can be summarized as an exercise in frustration, causes can be all over the place, but it can be really tough. One thing you can do is enable the python
faulthandler. This may help with identifying where in the code things are blowing up (but that's not necessarily a guarantee that that is where the issue is).
If you are unable to reproduce the issue with any reliability (which I maintain doing this is a critical step and effort should be made to attempt to do this), and migrating to a different binding is feasible, I would recommend doing that. That's no guarantee to fix the issue though.
Some other frequent causes of segfaults can involve the python garbage collection cleaning up an object that may have some kind of internal Qt reference. These can sometimes occur when using the `del` operator or calling `gc.collect()`.
Here is a
link to closed PRs with the word "segfault" in there. Not all these PRs addressed a segfault, but you can see what changes were made to fix some segfaults.
Hope that helps,
Ogi