Qt WebEngine running on Windows11 with Touch screen crashed
-
I tried the QT sample application mini_browser QT 6.7.1 on Windows 11 with touch screen.
If a non-empty text input field in a browser page loses focus and the touch screen is used to change the focus, the QT application crashes (access violation). It doesn't happen with the mouse.The mini_browser with version QT 5.15 works fine with touch.
The application was created with msvc2019_64 qmake.
-
the crash take some seconds ... seems like stack overflow
-
@contemplatorUnser Running in debugger and inspecting the stack trace after the crash is first step to analyze crashes.
-
Hi jsulm,
thank you for your attention!
here is the stack trace:1 QString::constBegin Qt6Core 0x7ff89e6b4900
2 qmlEngine Qt6Qml 0x7ff89f9c066a
3 QQuickWebEngineViewPrivate::createTouchHandleDelegate Qt6WebEngineQuick 0x7ff94ecbfffe
4 QtWebEngineCore::TouchHandleDrawableDelegate::~TouchHandleDrawableDelegate Qt6WebEngineCore 0x7ff87e1099d1
5 TargetNtUnmapViewOfSection Qt6WebEngineCore 0x7ff882c272f3
6 TargetNtUnmapViewOfSection Qt6WebEngineCore 0x7ff882c2691f
7 TargetNtUnmapViewOfSection Qt6WebEngineCore 0x7ff882c268c3
8 TargetNtUnmapViewOfSection Qt6WebEngineCore 0x7ff882c26d66
9 TargetNtUnmapViewOfSection Qt6WebEngineCore 0x7ff882c27d84
10 TargetNtUnmapViewOfSection Qt6WebEngineCore 0x7ff882c28144
11 QtWebEngineCore::TouchHandleDrawableDelegate::~TouchHandleDrawableDelegate Qt6WebEngineCore 0x7ff87e109eb8
12 QtWebEngineCore::RenderViewContextMenuQt::initMenu Qt6WebEngineCore 0x7ff87e0ef315
13 CrashForExceptionInNonABICompliantCodeRange Qt6WebEngineCore 0x7ff880684e30
14 CrashForExceptionInNonABICompliantCodeRange Qt6WebEngineCore 0x7ff880683eeb
15 CrashForExceptionInNonABICompliantCodeRange Qt6WebEngineCore 0x7ff880683f64
16 CrashForExceptionInNonABICompliantCodeRange Qt6WebEngineCore 0x7ff880595b75
17 CrashForExceptionInNonABICompliantCodeRange Qt6WebEngineCore 0x7ff8806b4212
18 GetHandleVerifier Qt6WebEngineCore 0x7ff882629feb
19 QtWebEngineCore::URLRequestCustomJobDelegate::qt_metacast Qt6WebEngineCore 0x7ff87edc575c
20 GetHandleVerifier Qt6WebEngineCore 0x7ff8819c7512 -
I solved the problem by using the import QtWebEngine.ControlsDelegates in the main.qml. This also creates the directory .\qml\QtWebEngine\ControlsDelegates during the build.
This directory contains the QML modules TouchHandle.qml and TouchSelectionMenu.qml. This prevents the application from crashing.