-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when visible qtvirtualkeyboard hogs cpu #14
Comments
Hi, I tried to reproduce the error here with Qt 6.5.3, but I couldn't replicate the problem you mentioned. Could you provide more information about your setup? Which platform are you trying to run this on? Does this issue occur on a specific website? To assist further, it would be helpful to know:
|
Hi Arthur, My system is running on a AM5748 which contains a GPU. This is the qtbase config: qtbase -e |grep ^"PACKAGECONFIG=" PACKAGECONFIG=" accessibility dbus fontconfig glib gui harfbuzz icu jpeg libinput openssl png udev widgets xkbcommon zlib zstd kms gbm gles2 eglfs mtdev Qt Virtual Keyboard configuration is default. In task manager I see 20 threads (seems to be same as in in qt5) named Here a snippet of ftrace while keyboard is visible: QSGRenderThread-6044 [001] d...2.. 8236.200650: sched_switch: prev_comm=QSGRenderThread prev_pid=6044 prev_prio=120 prev_state=R ==> next_comm=tTimer next_pid=1481 next_prio=45 So it seems that while the keyboard is visible, it's rendering at 100% all the time. The GUI is written in Javascript (React framework) and is working properly. I'm getting some error messages ("MESA LOADER" I had already with qt5.15, Address family not supported is new with qt6) and IMHO do not relate, timewise, to the visibility of the keyboard: MESA-LOADER: failed to open omapdrm: /usr/lib/dri/omapdrm_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri) BR, Chris |
It looks like the high CPU usage with the Qt Virtual Keyboard in Qt 6.5 might be due to Qt 6's lack of official support on TI processors (as per recent TI forum discussions). I couldn't replicate the issue without TI hardware, but the problem likely lies in the Qt 6 and TI processor integration. Can you share your /etc/qt6/eglfs_kms_cfg.json? It might give us more clues. For now, it seems this is a compatibility issue with Qt 6 on TI hardware. |
Hi Arthur, { |
Hi,
I migrated from qt5.15 to qt6.5 and am using latest qt-kiosk-browser.
When I activate the qtvirtualkeyboard by touching an input field it is properly displayed but hogs the cpu(s) with 100% load and it takes 2-3s for every key to respond. When I hide qtvirtualkeyboard cpu load is back to normal.
This is how I start the executable:
#!/bin/bash
export XDG_CONFIG_HOME=/tmp/${UID}-runtime-dir
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
export WS_CALUDEV_FILE=/etc/udev/rules.d/ws-calibrate.rules
export QT_BEARER_POLL_TIMEOUT=200000000
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir -p "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
mkdir -p "${XDG_RUNTIME_DIR}/qtvirtualkeyboard"
fi
export QT_QPA_EGLFS_INTEGRATION=eglfs_kms
export QT_QPA_EGLFS_KMS_CONFIG="/etc/qt6/eglfs_kms_cfg.json"
export QT_QPA_EGLFS_ALWAYS_SET_MODE="1"
export LANG=en_US.UTF-8
qt-kiosk-browser -platform eglfs /etc/qt-kiosk-browser.conf --no-sandbox --noerrdialogs --log-level=1 --disable-pinch
Everything was working fine in qt5.15.
Any idea what could cause the problem?
Br Chris
The text was updated successfully, but these errors were encountered: