With Kicad 6.0.1 (info below) almost every time I try to open a project it crashes.
Actually, I can often open the schematic without problems, but when I switch to the layout it crashes. Furthermore, if I open the layout without open the schematic the crash is almost there.
After 4-5 trials usually it works. Other times, I need to restart the PC and try again.
I did a search to understand if Kicad has a log file but I didn’t find anything.
Launching the executable from command line, I hoped it printed something useful. Instead nothing is shown.
But when the crash happens I read: Segmentation fault.
You type “run” and kicad runs. When you get it to crash, gdb stops and you can type “backtrace” and it gives some information. Probably you should install kicad-dbg package first, it has debugging information which gives more useful information for backtrace, but it’s a large package.
I’m trying to understand that. It seems it’s related to all my projects, but the behavior is quite strange. On some projects it happens more frequently on day, but on another those projects opens correctly and other show the issue - even without any edit made.
Until now, every time I run Kicad with gdb it worked fine…
It’s not unheard of that debugging makes it behave correctly and a crash appears only with a normal execution. Sadly, it’s impossible to fix it can’t be debugged.
It’s also possible to create a core dump automatically after a segfault which can be loaded to gdb and examined, but it’s unnecessarily difficult on Ubuntu. You can try and read for example 16.04 - Where do I find the core dump in ubuntu 16.04LTS? - Ask Ubuntu. If running through gdb doesn’t reproduce the problem, this may be the only chance.