Giter Site home page Giter Site logo

Comments (4)

yuanfeng1995 avatar yuanfeng1995 commented on July 17, 2024 1

我找到了解决办法,原因是cef关闭的流程不对,可以参考这个https://blog.csdn.net/sfhinsc/article/details/87540851

解决方法,在类CCefManager的releaseCef函数里面做出如下修改
void CCefManager::releaseCef()
{
CefQuitMessageLoop(); // 先关闭cef3的事件循环,如果没有这个就会导致退出时候阻塞
CefShutdown(); // 再关闭cef3
}

from qcefview.

yuanfeng1995 avatar yuanfeng1995 commented on July 17, 2024

你好,我在退出测试程序时候会阻塞住,我调试发现调用这个函数QCefViewBrowserHandler::CloseAllBrowsers(bool force_close)的最后一段代码close_cv_.wait(lock);之后就阻塞住了,而且没有进入QCefViewBrowserHandler::OnBeforeClose这个函数。我没有打开弹出的网页,只打开了一个百度界面,关闭就阻塞住了。我使用的是VS2013+Qt5.6.3编译的整个项目

from qcefview.

tishion avatar tishion commented on July 17, 2024

can you reproduce it stably? If so please capture a dump file and share it with me.

from qcefview.

Fidark avatar Fidark commented on July 17, 2024

有解决吗,我也遇到了这个问题。环境是一样的。直接运行QCEFViewTest,退出不了。我现在的解决方案是在退出的时候用taskkill。
Do you have a solution? I also have this problem. The environment is the same. Run qcefviewtest directly, unable to exit.My current solution is to use taskkill when exiting.

from qcefview.

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.