Bug 473249

Summary: kscreenlocker on X11 does not unlock after pressing enter
Product: [Unmaintained] kscreenlocker Reporter: duha.bugs
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: nate
Priority: NOR Keywords: qt6
Version First Reported In: git-master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description duha.bugs 2023-08-10 15:59:51 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
On X11:
1 Lock the screen
2 Type password and hit Enter

OBSERVED RESULT
Screen does not unlock on x11.
Workarounds: Either hit Tab then Enter or use the Icon to unlock.

EXPECTED RESULT
Screen unlocks like in the wayland session
Comment 1 Nate Graham 2023-08-11 18:11:53 UTC
Can you run this command in a terminal window:

QT_LOGGING_RULES='kscreenlocker_greet=true' kscreenlocker_greet --testing --theme /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/

And paste the text it outputs into a comment here?
Comment 2 duha.bugs 2023-08-11 21:08:25 UTC
Command:
QT_LOGGING_RULES='kscreenlocker_greet=true' kscreenlocker_greet --testing --theme /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/

 Output:
 QT_LOGGING_RULES='kscreenlocker_greet=true' kscreenlocker_greet --testing --theme /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/
bash: kscreenlocker_greet: command not found

After specifing the paths:
Command:
QT_LOGGING_RULES='kscreenlocker_greet=true' /home/duha/kde/usr/lib/libexec/kscreenlocker_greet --testing --theme /home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/

Output:
kscreenlocker_greet: Greeter is starting up.
Detected locale "LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=de_AT.UTF-8;LC_COLLATE=de_AT.UTF-8;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
kscreenlocker_greet: [PAM] Starting... using service "kde"
QQmlComponent: Component is not ready
kf.plasma.quick: "file:///home/duha/kde/usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml" 
 "Error loading QML file.\n13: module \"org.kde.plasma.plasmoid\" is not installed\n"
qt.dbus.integration: Could not connect "org.kde.Solid.PowerManagement.PolicyAgent" to inhibitionsChanged(QList<InhibitionInfo>, QStringList)
error connecting to inhibition changes via dbus
qt.qml.defaultmethod: Assigning an object to a signal handler is deprecated.Instead, create the object, give it an id, and call the desired slot from the signal handler.
kf.kirigami: Failed to find a Kirigami platform plugin
qt.qml.context: file:///home/duha/kde/usr/lib/qml/org/kde/plasma/components/TextField.qml:44:5 Parameter "echoMode" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
file:///home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml:226: ReferenceError: wallpaper is not defined
kscreenlocker_greet: Wallpaper needs to be a QtQuick Item
Locked at 1691788043
Failed to find shader "/home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/\n            varying highp vec2 qt_TexCoord0;\n            uniform highp float qt_Opacity;\n            uniform lowp sampler2D source;\n            uniform lowp vec4 colorBorder;\n\n            const highp float blend = 0.01;\n            const highp float innerRadius = 0.47;\n            const highp float outerRadius = 0.49;\n            const lowp vec4 colorEmpty = vec4(0.0, 0.0, 0.0, 0.0);\n\n            void main() {\n                lowp vec4 colorSource = texture2D(source, qt_TexCoord0.st);\n\n                highp vec2 m = qt_TexCoord0 - vec2(0.5, 0.5);\n                highp float dist = sqrt(m.x * m.x + m.y * m.y);\n\n                if (dist < innerRadius)\n                    gl_FragColor = colorSource;\n                else if (dist < innerRadius + blend)\n                    gl_FragColor = mix(colorSource, colorBorder, ((dist - innerRadius) / blend));\n                else if (dist < outerRadius)\n                    gl_FragColor = colorBorder;\n                else if (dist < outerRadius + blend)\n                    gl_FragColor = mix(colorBorder, colorEmpty, ((dist - outerRadius) / blend));\n                else\n                    gl_FragColor = colorEmpty;\n\n                gl_FragColor = gl_FragColor * qt_Opacity;\n            }\n        "
ShaderEffect: Failed to deserialize QShader from /home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/
            varying highp vec2 qt_TexCoord0;
            uniform highp float qt_Opacity;
            uniform lowp sampler2D source;
            uniform lowp vec4 colorBorder;

            const highp float blend = 0.01;
            const highp float innerRadius = 0.47;
            const highp float outerRadius = 0.49;
            const lowp vec4 colorEmpty = vec4(0.0, 0.0, 0.0, 0.0);

            void main() {
                lowp vec4 colorSource = texture2D(source, qt_TexCoord0.st);

                highp vec2 m = qt_TexCoord0 - vec2(0.5, 0.5);
                highp float dist = sqrt(m.x * m.x + m.y * m.y);

                if (dist < innerRadius)
                    gl_FragColor = colorSource;
                else if (dist < innerRadius + blend)
                    gl_FragColor = mix(colorSource, colorBorder, ((dist - innerRadius) / blend));
                else if (dist < outerRadius)
                    gl_FragColor = colorBorder;
                else if (dist < outerRadius + blend)
                    gl_FragColor = mix(colorBorder, colorEmpty, ((dist - outerRadius) / blend));
                else
                    gl_FragColor = colorEmpty;

                gl_FragColor = gl_FragColor * qt_Opacity;
            }
        . Either the filename is incorrect, or it is not a valid .qsb file. In Qt 6 shaders must be preprocessed using the Qt Shader Tools infrastructure. The vertexShader and fragmentShader properties are now URLs that are expected to point to .qsb files generated by the qsb tool. See https://doc.qt.io/qt-6/qtshadertools-index.html for more information.
ShaderEffect: shader preparation failed for file:///home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/%0A            varying highp vec2 qt_TexCoord0;%0A            uniform highp float qt_Opacity;%0A            uniform lowp sampler2D source;%0A            uniform lowp vec4 colorBorder;%0A%0A            const highp float blend = 0.01;%0A            const highp float innerRadius = 0.47;%0A            const highp float outerRadius = 0.49;%0A            const lowp vec4 colorEmpty = vec4(0.0, 0.0, 0.0, 0.0);%0A%0A            void main() %7B%0A                lowp vec4 colorSource = texture2D(source, qt_TexCoord0.st);%0A%0A                highp vec2 m = qt_TexCoord0 - vec2(0.5, 0.5);%0A                highp float dist = sqrt(m.x * m.x + m.y * m.y);%0A%0A                if (dist %3C innerRadius)%0A                    gl_FragColor = colorSource;%0A                else if (dist %3C innerRadius + blend)%0A                    gl_FragColor = mix(colorSource, colorBorder, ((dist - innerRadius) / blend));%0A                else if (dist %3C outerRadius)%0A                    gl_FragColor = colorBorder;%0A                else if (dist %3C outerRadius + blend)%0A                    gl_FragColor = mix(colorBorder, colorEmpty, ((dist - outerRadius) / blend));%0A                else%0A                    gl_FragColor = colorEmpty;%0A%0A                gl_FragColor = gl_FragColor * qt_Opacity;%0A            %7D%0A        


Failed to find shader "/home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/\n            uniform mediump mat4 colorMatrix;\n            uniform mediump sampler2D source;\n            varying mediump vec2 qt_TexCoord0;\n            uniform lowp float qt_Opacity;\n\n            void main(void)\n            {\n                mediump vec4 tex = texture2D(source, qt_TexCoord0);\n                gl_FragColor = tex * colorMatrix * qt_Opacity;\n            }\n        "
ShaderEffect: Failed to deserialize QShader from /home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/
            uniform mediump mat4 colorMatrix;
            uniform mediump sampler2D source;
            varying mediump vec2 qt_TexCoord0;
            uniform lowp float qt_Opacity;

            void main(void)
            {
                mediump vec4 tex = texture2D(source, qt_TexCoord0);
                gl_FragColor = tex * colorMatrix * qt_Opacity;
            }
        . Either the filename is incorrect, or it is not a valid .qsb file. In Qt 6 shaders must be preprocessed using the Qt Shader Tools infrastructure. The vertexShader and fragmentShader properties are now URLs that are expected to point to .qsb files generated by the qsb tool. See https://doc.qt.io/qt-6/qtshadertools-index.html for more information.
ShaderEffect: shader preparation failed for file:///home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/%0A            uniform mediump mat4 colorMatrix;%0A            uniform mediump sampler2D source;%0A            varying mediump vec2 qt_TexCoord0;%0A            uniform lowp float qt_Opacity;%0A%0A            void main(void)%0A            %7B%0A                mediump vec4 tex = texture2D(source, qt_TexCoord0);%0A                gl_FragColor = tex * colorMatrix * qt_Opacity;%0A            %7D%0A        


qt.virtualkeyboard.hunspell: Hunspell dictionary is missing for "en_GB". Search paths QList("/usr/share/qt6/qtvirtualkeyboard/hunspell", "/usr/share/hunspell", "/usr/share/myspell/dicts")
QMetaObject::invokeMethod: No such method ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)
QMetaObject::invokeMethod: No such method ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)
file:///home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/MediaControls.qml:84:9: QML QQuickImage: Blocked request.
qt.qml.context: file:///home/duha/kde/usr/lib/qml/org/kde/plasma/extras/PasswordField.qml:53:5 Parameter "event" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
kscreenlocker_greet: Start auth
qt.qml.context: file:///home/duha/kde/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml:312:17 Parameter "password" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
kscreenlocker_greet: Auth done RC 0 Success
Comment 3 Bug Janitor Service 2023-08-26 03:45:20 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 duha.bugs 2023-08-29 19:02:03 UTC
Setting this to NOT A BUG for now since I have trouble with my breeze Theme.