I’m running KiCad 6.0.2-1 on Manjaro Linux and cannot use the software at all now. Every time I select a symbol to be added to the schematic the whole of KiCad crashes on me. This happens with existing projects and newly created ones, I’ve even tried a couple of different symbols.
I ran KiCad from the terminal to figure out what was going on, the first time I got this error:
corrupted size vs. prev_size zsh: IOT instruction (core dumped)
After that I received this error every time:
zsh: segmentation fault (core dumped) kicad
Now after trying to add a power symbol to a blank project I got this error:
zsh: segmentation fault (core dumped) kicad
i965: Failed to submit batchbuffer: No such file or directory zsh: IOT instruction (core dumped) kicad
First:
Start by upgrading KiCad to V6.0.4. There have been some bug fixes in between.
(Or better, because you have trouble now:
Uninstall KiCad.
Delete / rename the configuration files.
Install KiCad V6.0.4.
Second:
When you have problems, always post the full KiCad verstion from: Help / About KiCad / Copy Version Info. It’s some 15+ lines with info over various parts of KiCad.
Third: I can’t help much with this, maybe you can find a hint with the search below:
If I understood correctly, you can still open KiCad and change Preferences. Try Display Options → Fallback Graphics.
I say this because searches point to a possibility of some graphics (driver) related issue.
In any case they are related to memory management which would be very serious if it would be caused by KiCad itself. But I suspect this is a problem with some external library.
That is correct, I can also add footprints in the PCB editor just fine. When I change display options to Fallback Graphics in eeschema, kicad crashes as well. So yeah a graphics driver might be the issue here. I get the following error again:
i965: Failed to submit batchbuffer: No such file or directory zsh: IOT instruction (core dumped) kicad
Also: in the PCB editor graphics are already set to Fallback
I feel I might not have said it concisely enough. Once I set the option to “Fallback Graphics” and press Ok to apply the setting it crashes immediately.
And it’s exhibiting the same behaviour. I did also get a bunch of these errors in the terminal: *** BUG *** In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug
I tried this already, but it seems like it doesn’t do anything. The crashes still happen and when I open Preferences the Rendering Engine option is still set to “Accelerated”.
Yeah I realize that, I was just checking to see if maybe a more recent version would correct the issue. If the bug persists in the nightly it will probably still be in 6.0.4 as well right?
That’s fair, I will use the force LIBGL workaround for now. 6.0.4 is in the Arch repositories already so I think it’ll be available on Manjaro pretty soon as well. If the issue persists I should probably submit a bug report somewhere I think…
To be honest I don’t think this is related to KiCad, it’s because of “rolling release” nature of Manjaro which necessarily causes binary or other incompatibilities between packages every now and then. Recompiling the whole distro might help