GithubHelp home page GithubHelp logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
There is a topic on CEF forum regarding this matter:
http://magpcss.org/ceforum/viewtopic.php?f=6&t=10252

I'm not sure how threads in Qt work.

Original comment by [email protected] on 27 Nov 2012 at 2:56

  • Changed state: Accepted

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
[deleted comment]

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024

Original comment by [email protected] on 27 Nov 2012 at 3:06

  • Changed title: PyQt example crashes when closing window

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Fixed in revision 2469d5441fd3.

The solution was to assign None to QApplication before calling shutdown:

  app = None
  cefpython.Shutdown()

This fix removed errors in the console, I'm assuming it also fixed the crash, 
but as I couldn't reproduce it, I'm not 100% sure, so better test it.

Original comment by [email protected] on 27 Nov 2012 at 9:46

  • Changed state: Fixed

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Verified. Issue disappears if None is assigned to app. App must be garbage 
collected by null assignment but not sure how/why it was causing the error in 
first place.

Original comment by [email protected] on 27 Nov 2012 at 11:34

from cefpython.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
I guess Qt could still run some internal threads that collided with shutdown or 
something. It makes sense, we called cefpython.Initialize() before QApplication 
was initialized, so we should destroy QApplication (it also needs to do some 
cleanup, probably called in destructor) before cefpython.shutdown().

Original comment by [email protected] on 28 Nov 2012 at 12:39

from cefpython.

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.