-
Notifications
You must be signed in to change notification settings - Fork 65
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
FIX: Add Try/Catch to prevent Failures on Imports #166
base: master
Are you sure you want to change the base?
Conversation
…ter failures on import
@AccidentallyTheCable |
Im not really comfortable with doing that because the boards are not part of a public project. Theres also a high probability it wouldnt load properly anyway given the custom kicad footprints and whatnot. Kicad VersionApplication: KiCad (64-bit) Version: (6.0.5), release build Libraries: Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW Build Info: Build settings: Freecad VersionOS: Windows 10 Version 2009 |
@AccidentallyTheCable |
@easyw my bad I dont know why I didnt think of that. Ive attached the log from freecad start to import failure, the stp model, as well as the kicad_mod file. |
@AccidentallyTheCable
|
@AccidentallyTheCable |
@easyw Id be happy to give it a try, but even if it cannot be reproduced, these should still have some kind of checking around it. either |
the strange thing is that a FC shape should always has those color properties... |
I ended up upgrading FC because of problems with Asm4 as well, and this problem still occurs. Something that may be worth noting, the board has many of these components on it (17 of them, and 16 of them are located in hierarchical sheets within kicad). When loading the board with KicadStepUp, the first one loads as a black color, but then all others load as a gray color. Im not sure if that has anything to do with this, but it seemed in the same 'problem' area of not being able to set colors. |
that's very strange... it could be a video driver issue...
|
Managed to finally get this working, after a complete uninstall and reinstall of everything. I still strongly suggest wrapping those calls in try/catch or hasattr calls |
Any progress here ? |
These properties (Specifically in
copy_objs
) were causing my kicad imports to fail because these properties did not exist.I wrapped them in try/catch and was able to successfully import my board. I did try/catches around others to prevent other potential failures as well, though I didnt want to go too overboard.