-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kikit crash when trying to panelized PCB #694
Comments
Could be related to this issue: |
@kfirmaymon84: Could you try the upstream version? I am able to panelize the board with the upstream version of KiKit. So I would like to rule the possibility this issue is caused by your setup (e.g., Windows or dependencies mismatch). |
I am on Windows 11, KiCad 8.0.4, and KiKit 1.6.0. I can confirm that the GUI will lock up and eventually close. I switched to the CLI and discovered another issue. The output kicad_pcb file will be blank if text is enabled and the anchor is set to I went back to the GUI and turned my text off, but KiCad will still lock up and eventually close. I also see that KiKit now requires an output file in the GUI. If I set this to the currently opened file since I want the panel to show up like previous KiKit versions, KiCad will crash quickly after the "Running kikit" dialog opens. If I set the output file to something new, not opened, KiCad takes awhile to lockup an crash during panelization. Since there is an output option in the GUI now, are you moving away from panelizating the currently opened file? IE You want to panelize the current open board? Here is my JSON file:
|
No, the whole point of GUI existence is that people can quickly preview the panel and iterate to get the desired shape. PcbNew is used as a live preview of the panel. When you are satisfied with the result, you should get the penalization JSON and put it in your makefile or CI or another automated pipeline for building production files. GUI was never meant as a way of preparing manufacturing files. Unless something significantly changes in KiCAD, it will never be. KiCAD API is limited, and there are numerous aspects of the PCB we cannot modify via the API (e.g., sheet size, custom DRC rules, rules violation exclusions etc.). Therefore, KiKit parses and modifies the board, project, and schematic files. These changes cannot be brought to the "live view" provided by PcbNew. So when you save the board from preview, all of these features are missing, and the panels are not passing DRC or have other defects. However, people insisted on saving the preview and using it for production. They were constantly reporting, "Hey, the panel from the GUI does not pass DRC!". Hence, I introduced the output file parameter in GUI in v1.6.0 to make them happy. They can use the GUI, they see live preview and they also get a file that is not damaged. Back to the original issue, can you confirm that in v1.6.0:
So far, I struggle to reproduce the issue you report on both of my machines running Ubuntu 22.04 and Windows 11. The board panelizes just fine. Is it possible that you output the panel to a network location? Or to a location handled by OneDrive cloud sync? |
Yes, I just panelized four projects. My most complex only took 5 seconds. Like I mentioned before, the panel will be blank though if text is enabled and the anchor point is set to KiCad will crash with the exact same JSON file used in the CLI through the GUI.
My project is local, both the input and out, OneDrive is disabled. My local storage is a PCIe 4.0 NVMe. I've spent some time this morning to see how I can help you replicate this. The GUI crashes for me with your basic example CLI:
I have uninstalled KiCad 7.0.10, 8.0.4, and deleted the KiCad folder from my Documents which stores the plugins. After a fresh install of only 8.0.4, installing only the KiKit plug in and the backend, the sample above still crashes in the GUI. Backend install log:
Windows Info:
I have another Windows 11 and Windows 10 computer that I will test on and report back within the next day. |
I have the exact same behavior on my Windows 11 laptop. It works just fine in the CLI but not the GUI.
|
My Windows 10 machine failed the first attempt, but worked every subsequent attempt. I went back to one of my Windows 11 machines for more testing via the GUI.
If it would help, I could create a private repo and invite you. Then you could try a problem layout file with my json config. You would need to delete this files once you were done testing. Just let me know if that would help. |
I have the same problem. The GUI is not freezing when my outputfile has another name, then the opened pcb file what is used as a preview . Typically it has the same name as the project file. |
Hello, |
Still having the same problem, Update: |
There is an experimental branch (https://github.com/yaqwsx/KiKit/tree/ui_stall) that could solve your issue. Could you try installing it via |
Sadly even with this version the UI still crashes. Is there something particular to do to install this version appart from running this pip command and restarting kicad? |
@Hyrla: Just to be sure, do you follow the instructions for using Kikit correctly? That is:
|
Prerequisites
KiKit version
1.5.1
KiCAD version
8.0.2
Operating system
Windows 11
Description
Hi,
When I run kikit panelize,
the "Running kikit widows freeze,
after a couple of secoud, I got a message "Kicad PCB Editor 8.0.2 is not responding"
if I close the program and open the PCB file I can see that the file is been penalized.
if I run kikit from CLI everything runs ok,
Steps to Reproduce
Just penalize PCB.
EvoAcs_SideTouchSens.zip
The text was updated successfully, but these errors were encountered: