QWebEngineView - random crashes - Windows 10



  • I am trying to move from 5.4.1 to 5.5 and port my QWebView to QWebEngineView.

    Using the fancyWebEngine Browser example in 5.5, I get a lot of crash when playing html5 video.
    it's hard to know what the cause is, as the program is "not responding" and I don't have a crash log most of the time.
    But for example, I will navigate to a video on youtube, then type a new address in the locationEdit bar, then when I Press enter, the program will crash.

    Any ideas what may be causing this? Haven't touched the example code and i'm on fresh Windows 10.
    https://www.dropbox.com/s/4vnetiitg5yeiz7/crashQWebEngine.png?dl=0


    Edit: Not related to html5 videos, I just type multiple address and press enter on the locationEdit bar and I get a crash eventually. Not going to port to QWebEngineView yet.. need something robust -_-

    Thought it may be related to plugins, disabled them, but still get the crashes, here is one in the bigger example :
    https://www.dropbox.com/s/vr0s7j309w9pcf6/crashQWebEngine2.png?dl=0



  • This post is deleted!


  • One of the log I could get (the other are just stuck in "not responding")

    Starting C:\Qt\Qt5.5.0\Examples\Qt-5.5\webenginewidgets\build-fancybrowser-Desktop_Qt_5_5_0_MSVC2013_32bit-Debug\debug\fancybrowser.exe...
    [0803/173431:FATAL:gl_bindings_autogen_gl.cc(5046)] Check failed: false. Trying to call glDeleteSync() without current GL context
    Backtrace:
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x1262B6D1+37995249]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x1251A5AF+36876751]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x115264AF+20148431]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x14A38557+75796855]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x14A38636+75797078]
    CertificateErrorController::url [0x1015E5D2+15154]
    QtWebEngineCore::CustomUrlSchemeHandler::setScheme [0x1017D784+33140]
    QtWebEngineCore::CustomUrlSchemeHandler::setScheme [0x10179476+15974]
    QtWebEngineCore::CustomUrlSchemeHandler::setScheme [0x101793A5+15765]
    QtWebEngineCore::CustomUrlSchemeHandler::setScheme [0x1017942B+15899]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x102574EF+426255]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x12655B2B+38168395]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x125319AD+36971981]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x1252F854+36963444]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x1252FE3D+36964957]
    QtWebEngineCore::WebContentsAdapterClient::operator= [0x10174697+88887]
    QtWebEngineCore::WebContentsAdapterClient::operator= [0x101742B7+87895]
    QSortFilterProxyModel::mapToSource [0x6B80A021+3202412]
    QAbstractScrollArea::setHorizontalScrollBar [0x6BDF548E+211630]
    QAbstractScrollArea::setHorizontalScrollBar [0x6BDF18AE+196302]
    QSortFilterProxyModel::mapToSource [0x6B7C6B47+2926738]
    QSortFilterProxyModel::mapToSource [0x6B7CF379+2961604]
    QSortFilterProxyModel::mapToSource [0x6B7C7C16+2931041]
    QSortFilterProxyModel::mapToSource [0x6B859004+3525967]
    QSortFilterProxyModel::mapToSource [0x6B8572B0+3518459]
    CharNextW [0x75114923+115]
    CallWindowProcW [0x750F4790+768]
    DispatchMessageW [0x750F4091+593]
    DispatchMessageW [0x750F3E50+16]
    QSortFilterProxyModel::mapToSource [0x6B857DFE+3521353]
    QSortFilterProxyModel::mapToSource [0x6B7C28AC+2909687]
    QSortFilterProxyModel::mapToSource [0x6B7C2AB2+2910205]
    QtWebEngineCore::WebContentsAdapterClient::operator= [0x101739C5+85605]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x12531797+36971447]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x1256D306+37216038]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x1253164B+36971115]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x125957F6+37381142]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x12596218+37383736]
    QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall [0x125ADD0B+37480747]
    BaseThreadInitThunk [0x74C73744+36]
    RtlSetCurrentTransaction [0x7772A064+212]
    RtlSetCurrentTransaction [0x7772A02F+159]



  • Hi !
    I have the same problem...

    Can someone help us ?



  • Are you also on Windows 10 MSVC2013? Not sure if it's related to that.



  • I really wish they go back on the decision to not ship QWebKit with 5.6.
    I will not be able to do a smooth transition to QWebEngine, my app is based heavily on QWebKit addToJavascriptObject and I can't move until I'm sure QWebEngine is working perfectly. I guess i'll stay on 5.5 for a long time.



  • I have the same problem on Windows 8.1 using Visual Studio 2013. However the GL context is an exception that doesn't crash the program. The most annoying thing is that the WebEngineView just stops (hangs) for a while (several minutes), the QWebEngineProcess.exe just stops doing stuff, 0 % CPU. I don't know why or how to avoid this problem.

    Please help!



  • I created a bug report there:
    https://bugreports.qt.io/browse/QTBUG-48224

    If you want to add something you found. Thanks
    Hopefully we can use QWebEngine soon!



  • We're also trying to move from WebView to WebEngine in advance of the 5.6 release, however I'm seeing a crash in Qt5WebEngineCore. The is easily recreated on my Windows 10 system, and thus far, I have not seen this crash on Win7.

    I attached WinDbg, and trapped the following (Sorry, I don't have symbols - if someone could point me to symbols I can recreate with more useful details):

    0:016> g
    (3b70.4570): Access violation - code c0000005 (first chance)
    First chance exceptions are reported before any exception handling.
    This exception may be expected and handled.
    *** WARNING: Unable to verify checksum for Qt5WebEngineCore.dll
    *** ERROR: Symbol file could not be found. Defaulted to export symbols for Qt5WebEngineCore.dll -
    Qt5WebEngineCore!QtWebEngineCore::BrowserContextAdapter::browserContext+0x1dd38d:
    101da0ad f00fc108 lock xadd dword ptr [eax],ecx ds:002b:2d786f66=????????
    0:000:x86> kvn

    ChildEBP RetAddr Args to Child

    00 Qt5WebEngineCore!QtWebEngineCore::BrowserContextAdapter::browserContext+0x1dd38d
    01 Qt5WebEngineCore!QtWebEngineCore::BrowserContextAdapter::browserContext+0x1dd289
    02 Qt5WebEngineCore!QtWebEngineCore::WebContentsAdapter::webContents+0x2c0c3
    03 Qt5WebEngineCore!QtWebEngineCore::WebContentsAdapter::webContents+0x2bdbb
    04 Qt5WebEngineCore!QtWebEngineCore::WebContentsAdapter::webContents+0x2bd01
    05 Qt5WebEngineCore!QtWebEngineCore::WebContentsAdapter::webContents+0x11e9de
    06 Qt5WebEngineCore!QtWebEngineCore::WebContentsAdapter::webContents+0x11eb2b
    07 Qt5WebEngineCore!QtWebEngineCore::BrowserContextAdapter::isOffTheRecord+0x9ba3e
    08 Qt5WebEngineCore!QtWebEngineCore::BrowserContextAdapter::isOffTheRecord+0x9b98e
    09 Qt5WebEngineCore!QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall+0x214632
    0a Qt5WebEngineCore!QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall+0x2146bf
    0b Qt5WebEngineCore!QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall+0x2115ba
    0c Qt5WebEngineCore!QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall+0x210ca5
    0d Qt5WebEngineCore!QtWebEngineCore::BrowserContextAdapter::customUrlSchemeHandlers+0x9ae7d
    0e Qt5WebEngineCore!QtWebEngineCore::BrowserContextAdapter::browserContext+0x3ef8c9
    0f Qt5WebEngineCore!QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall+0x38639b
    10 Qt5WebEngineCore!QtWebEngineCore::BrowserContextAdapter::customUrlSchemeHandlers+0xcb7bf
    11 Qt5WebEngineCore!QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall+0x38ab49
    12 Qt5WebEngineCore!QtWebEngineCore::URLRequestCustomJobDelegate::qt_static_metacall+0x38ae3d
    13 Qt5WebEngineCore!QtWebEngineCore::BrowserContextAdapter::browserContext+0x3f7e4



  • Have you guys tried 5.5.1? Wondering if theses issues still exist.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.