Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QWebEngineView crashes when shutting down.



  • Hi,
    it seems QWebEngineView crashs when shutton down application with and without deleting it explicitly.

    Qt 5.10.1 Visual Studio 2017 - Windows 10

    [7416:14384:0424/201447.350:FATAL:resource_scheduler.cc(949)] Check failed: client_map_.empty(). 
    Backtrace:
    	QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x00000001824FD435+320677]
    	QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x0000000182507588+361976]
    	QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x00000001823EAD30+3536]
    	QtWebEngineCore::FaviconManager::qt_static_metacall [0x0000000181157349+2333113]
    	QtWebEngineCore::FaviconManager::qt_static_metacall [0x000000018112E047+2164407]
    	QtWebEngineCore::FaviconManager::qt_static_metacall [0x000000018112DC49+2163385]
    	QtWebEngineCore::FaviconManager::qt_static_metacall [0x000000018114505E+2258638]
    	QtWebEngineCore::FaviconManager::qt_static_metacall [0x000000018113A8C4+2215732]
    	IsSandboxedProcess [0x000000018485F449+10167129]
    	IsSandboxedProcess [0x0000000184133F3D+2649677]
    	IsSandboxedProcess [0x0000000184134079+2649993]
    	IsSandboxedProcess [0x0000000184135063+2654067]
    	QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x0000000180219890+472496]
    	QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x000000018251BBC9+445497]
    	QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182432C95+298293]
    	QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182431122+291266]
    	QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x00000001824317A4+292932]
    	QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x0000000182520507+464247]
    	QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x00000001825216DD+468813]
    	QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182432980+297504]
    	QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x000000018245DE3F+474847]
    	QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182466163+508419]
    	QWebEngineCookieStorePrivate::q_func [0x0000000180CDE65E+2605534]
    	QWebEngineCookieStorePrivate::q_func [0x0000000180CE00B4+2612276]
    	QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x00000001824673F7+513175]
    	QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x00000001823FFB51+89073]
    	BaseThreadInitThunk [0x00007FFA445A1FE4+20]
    	RtlUserThreadStart [0x00007FFA46B1F061+33]
    

    Any ideas?



  • if your QWebEngineView has a parent widget, it is automatically destroyed whether the parent widget is destroyed.

    Now, your stack shows a QEnableSharedFromThis. This is for classes that are created using a QSharedPointer and that need to be able to recreate a QSharedPointer from them. It might means that you have somewhere a "delete toto;" called on a SharedFromThis class. This might explain the crash.


Log in to reply