Comments (6)
Seems that commenting out self.logger.debug("Download success")
in library.py makes it at least not crashing. Maybe because that self.logger.debug shouldn't be called in worker thread?
from kicad-jlcpcb-tools.
Also, if I comment out handler2
in mainwindow.py
(without commenting self.logger.debug("Download success")
), the problem will not happen neither. So it's obvious that we can't operate the log textbox directly in the log handler (which will have the textbox operated in the downloader thread, causing the crash). Instead, we should probably send a event to the main thread in the log handler. As I am not familiar with wxPython, could anyone please help to solve this problem?
from kicad-jlcpcb-tools.
You mean an wx event that the main task then sends to the logger?
from kicad-jlcpcb-tools.
You mean an wx event that the main task then sends to the logger?
I don't quite understand what you refer to. From my basic understanding, every UI operation should be done in UI thread. The logger handler2, which will operate the logbox, may be called from the downloader thread, thus violates this rule. I think we should not operate logbox directly in handler2. Rather, we should post a event to the UI thread in the log handler, and add log to the logbox within the UI thread.
from kicad-jlcpcb-tools.
Sounds right, I'll have a look into this next week!
from kicad-jlcpcb-tools.
This should be solved in 2021.12.1
from kicad-jlcpcb-tools.
Related Issues (20)
- BOM is not generated - KiCad 8.0.3 + JLCPCB Tools 2024.06.03 HOT 9
- Windows Mapped Drive Problems (recent windows 11 update?) HOT 4
- Plugin fails on components without pads HOT 4
- "Do not place" attribute ignored when creating BOM file HOT 2
- Update of parts DB fails HOT 4
- No files are generated in the latest nightly 8.99.0-unknown-5c22162d85 HOT 5
- Plugin not showing up kicad 8.0.3-1 HOT 1
- Help understanding the rotation feature HOT 2
- Some JLC part numbers missing in the HOT 3
- Idea: add component grouping in main view HOT 2
- Error after downloading DB HOT 5
- Stock and Type are no longer updated
- Show age of the database
- Failed to download JLCPCB Database HOT 2
- Failed to download JLCPCB Database HOT 1
- Improve part list HOT 6
- Empty BOM file HOT 5
- Feature Request: Export Additional Layers HOT 1
- Rotation non applied on CP_EIA package
- Bom Incomplete
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kicad-jlcpcb-tools.