Git Product home page Git Product logo

Comments (4)

salvadordf avatar salvadordf commented on July 18, 2024 1

CEF/Chromium initialization and the creation of the first browser may take a few seconds for several reasons like proxy detection, antivirus scan, etc.

I will investigate if killing the app at that moment is a supported scenario in CEF.

from cef4delphi.

EricGrange avatar EricGrange commented on July 18, 2024 1

Issue seems to have been fixed by CEF 125.0.22

from cef4delphi.

salvadordf avatar salvadordf commented on July 18, 2024

Sometimes Chromium can detect when the application is closing and it will close the child processes automatically.

Applications should follow the destruction steps described in the code comments of the demos and stopping the debug session skips those steps.

CEF 125 has many internal changes and it might have changed the way it detects when the app is closing.

I built TabbedBrowser2 (32 bits) with Delphi 12 and killing the app from the task manager left no orphan processes but stopping the debugger left one process dangling.

I'll leave this issue open for the moment to see if there's some kind of Windows message or event that notifies the app that the debugging session was closed and then follow the destruction steps in order to close the child processes correctly.

from cef4delphi.

EricGrange avatar EricGrange commented on July 18, 2024

Erratum: it was from Delphi 12 not Delphi 10 for me

I have tried runs with or without gpu, with or without pre-existing cache folder, no effect AFAICT.

However there seems to be a time sensitivity related to initialization: when starting the TabbedBrowser2, if killing the main process in the first few seconds, there is pretty much always a leftover process.
When waiting maybe 15 seconds, there is no more leftover process, even if the browser frame is very active (I tried running webgl experiments and html5 games).

I went back to SimpleBrowser2 demo, and when killing it swiftly, it exhibits the same issue.

So this may be that the render process is not yet ready to detect or react to a kill notification early on, not sure if that's on the Delphi or the CEF side though.

from cef4delphi.

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.