Giter Club home page Giter Club logo

Comments (6)

t123yh avatar t123yh commented on September 24, 2024

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.

t123yh avatar t123yh commented on September 24, 2024

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.

Bouni avatar Bouni commented on September 24, 2024

You mean an wx event that the main task then sends to the logger?

from kicad-jlcpcb-tools.

t123yh avatar t123yh commented on September 24, 2024

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.

Bouni avatar Bouni commented on September 24, 2024

Sounds right, I'll have a look into this next week!

from kicad-jlcpcb-tools.

Bouni avatar Bouni commented on September 24, 2024

This should be solved in 2021.12.1

from kicad-jlcpcb-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.