There is this bug that lets Kicad crash. I can easily recreate it.
Just open a project and open schematic and board editor. Than close the editors and use Kicad’s main window to open a different project.
From this point as soon as you open the board editor, Kicad crashes. It does not matter if you open the editor from either the main window or via the schematic editor.
Application: KiCad x64 on x64
Version: 7.0.5, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: May 27 2023 02:48:13
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1936 without C++ ABI
Build settings:
KICAD_SPICE=ON
I see that I have to upgrade. Can somebody tell me that this is a known bug?
I believe that my work PC with 7.0.7 also suffers from it.
Discovered that if I remove All my plugins from the Scripting>plugin folder, it stops crashing.
(Nothing wrong with my Plugins and this crashing started with v6).
I want my (custom) plugins so, I live with the Crashing and just Quit Kicad and Re-Open it…
Is it already known which plugin(s) are related to this problem?
Have you made a bug report for it in the last 20 months? As long as bugs don’t get reported, they won’t get fixed either. There is a strong correlation between those two.
With also the last remark of Billy_B in that thread there are now at least 4 people reporting this on this user forum.
I don’t use plugins much, and don’t have this problem myself.
Yes, it is known … But it’s not clear where to report? I usually calculate the deletion method by 1 and check … The second problem is that the plugin, after being removed from the manager, can remain in another folder and hang in processes, and in this case only the complete deletion of the folder where it is located helps (from the post above description) … On the one hand, this is a problem of the plugin developer, on the other hand, deleting the plugin from the manager does not always help, and here is the problem of kicad
Another point on the example of the kibom plugin that continues to work and does not close, this behavior only happens on win64 on Linux, everything works fine As a result, there is not only a dependence on the plugin, but also on the platform
Are you sure that everything is ok with your plugins? I can’t trace the dependency, for some reason some of the plugins work fine and the other honor does not allow the program to close completely … somehow it turns out selectively and on which side of the problem it’s hard to say …
the main thing here is to determine which side of the problem, if from the plugin side, then a question to the author if the problem is on the kicad side, then open the error on gitlab
Replication Layout really hangs after closing…
I uninstalled the replicate layout plugin, on work PC problem → gone. (for now, I’ll keep checking)
I reinstalled, problem is still → gone.
I’ll try my other machine tonigh. Though this one also had the problem.
???
I wrote that I have no problem with the Replicate Layout plugin, and suspected the JLCPCB plugin to be the culprit. (I have not installed that one).
I knew well what you wrote. But I suspected the other plugin… because my problems started about the same time that I installed the plugin. I have used the the JLCPCB plugin much longer than that. And now it seems that the layout replicate plugin may be the cause
I also think plugins should run in some kind of sandbox so they can’t crash KiCad at all. I imagine there are libraries for such things, but all my programming knowledge is on microcontroller level and I don’t know much about PC stuff.
I removed all of my plugins and added them back one-by-one with enough testiing between each move.
It turns out that the plugins that caused my crashing was due to bad Indentation of pcb Refresh!!! Just needed to indent to correct position and Bingo, no more crashing.
I’m not completely finished going through them (just did the one’s I often use so, if it happens again, I’ll re-post…
As of now my plugins work without Crashing when re-opening PCB and Projects/PCB’s.
My plugins include:
embedded action code
running external App’s
tweaking Footprints, layers
calculations, text replacement, graphic tweaks…
track and pad tweaks…
calling wx, Tkinter Graphics, windows and Message Pop-Up’s…
FOLLOW-UP…
I went through all of my Plugins and found only the one mentioned having Refresh with incorrect indentation. After fixing that, and going throung many Usage-Tests, Open, Close, Open-other Projects and challenging my plugins to Crash, No Problems . So, conclude it was my Oversight at not seeing the indentation of Refresh in one plugin was not consistent with my other plugins, even though that plugin worked.