GithubHelp home page GithubHelp logo

Stuck alt-tab cycle-window OSD about labwc HOT 18 CLOSED

labwc avatar labwc commented on May 26, 2024
Stuck alt-tab cycle-window OSD

from labwc.

Comments (18)

johanmalm avatar johanmalm commented on May 26, 2024 1

Thanks. Maybe this is the sort of thing we need to do:
https://github.com/swaywm/sway/blob/aaf68cf423d718a748b56481fddb37e9186b83ed/sway/input/keyboard.c#L513

from labwc.

 avatar commented on May 26, 2024 1

57cc72b fixes this on my end. Closing.

from labwc.

01micko avatar 01micko commented on May 26, 2024

This issue occurs on my system only when I have geany IDE open. Maybe try that to reproduce?

from labwc.

01micko avatar 01micko commented on May 26, 2024

This bug affects my productivity almost daily so @ARDiDo , @Joshua-Ashton any ideas? The sway/input/keyboard.c line does look like a way forward to me, but I really have no idea.

from labwc.

01micko avatar 01micko commented on May 26, 2024

More info as I've been capturing unique logs over past weeks. (only last 10 lines posted each log).
Note that I update at least 3 times a week to latest git version and do run a patch to run as root; see puppylinux-woof-CE/woof-CE#2563. The error is quite consistent and persistent!

labwc -d >> /var/log/labwc${$}.log


/var/log/labwc10789.log
00:00:00.001 [INFO] [libseat] [libseat/libseat.c:67] Seat opened with backend 'builtin'
00:00:00.001 [INFO] [libseat] [libseat/backend/seatd.c:222] Enabling seat
00:00:00.001 [INFO] [backend/session/session.c:110] Successfully loaded libseat session
00:00:00.003 [INFO] [backend/backend.c:219] Found 1 GPUs
00:00:00.003 [INFO] [backend/drm/backend.c:183] Initializing DRM backend for /dev/dri/card0 (radeon)
00:00:00.003 [DEBUG] [backend/drm/drm.c:81] Atomic modesetting unsupported, using legacy DRM interface
00:00:00.003 [DEBUG] [backend/drm/drm.c:98] ADDFB2 modifiers unsupported
00:00:00.003 [INFO] [backend/drm/drm.c:259] Found 2 DRM CRTCs
00:00:00.003 [INFO] [backend/drm/drm.c:186] Found 2 DRM planes
00:00:00.003 [ERROR] [../src/server.c:80] unable to drop root

/var/log/labwc12570.log
00:00:18.013 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:00:18.029 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
00:00:18.029 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:00:20.333 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:00:20.389 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:00:20.423 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:00:20.524 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:00:20.524 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc12739.log
00:02:41.044 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:02:41.052 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
00:02:41.052 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:02:42.339 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:02:42.394 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:02:42.428 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:02:42.530 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:02:42.530 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc13376.log
04:23:55.097 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
04:23:55.105 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
04:23:55.105 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
04:23:56.690 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
04:23:56.736 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
04:23:56.770 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
04:23:56.869 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
04:23:56.869 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc21167.log
00:01:31.057 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:01:31.073 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
00:01:31.073 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:01:33.510 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:01:33.567 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:01:33.601 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:01:33.700 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:01:33.700 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc21791.log
00:00:56.946 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:00:56.954 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
00:00:56.954 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:00:58.429 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:00:58.478 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:00:58.512 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:00:58.608 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:00:58.608 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc22414.log
00:04:00.150 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:04:00.158 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
00:04:00.158 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:04:01.783 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:04:01.831 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:04:01.866 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:04:01.966 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:04:01.966 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc22703.log
00:01:15.999 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:01:16.063 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
00:01:16.063 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:01:17.692 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:01:17.737 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:01:17.771 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:01:17.868 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:01:17.868 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc22903.log
00:16:11.051 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:16:11.059 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:16:11.067 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:16:12.809 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:16:12.865 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:16:12.899 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:16:13.012 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:16:13.012 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc23441.log
02:54:05.368 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
02:54:05.384 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
02:54:05.385 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
02:54:06.738 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
02:54:06.791 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
02:54:06.826 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
02:54:06.923 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
02:54:06.923 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc26225.log
00:24:46.601 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'HDMI-A-1'
00:24:46.601 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:24:46.601 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:24:48.775 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:24:48.828 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:24:48.862 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:24:49.091 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:24:49.091 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc2682.log
16:50:52.732 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
16:50:52.732 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
16:50:52.740 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
16:50:52.740 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
16:50:52.748 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
16:50:52.748 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
16:50:52.756 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
16:50:52.756 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland

/var/log/labwc27511.log
00:02:20.103 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
00:02:20.103 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:02:20.103 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'HDMI-A-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:02:21.604 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:02:21.657 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:02:21.691 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:02:21.786 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:02:21.786 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc28371.log
00:03:07.285 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
00:03:07.285 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:03:07.285 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'HDMI-A-1'
(EE) failed to read Wayland events: Broken pipe
warn: wayland.c:691: disconnected from Wayland
00:03:08.748 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:03:08.808 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:03:08.842 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:03:08.937 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:03:08.937 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

/var/log/labwc28630.log
00:00:59.134 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'VGA-1'
00:00:59.134 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'DVI-D-1'
00:00:59.134 [DEBUG] [types/output/cursor.c:395] Falling back to software cursor on output 'HDMI-A-1'
(EE)warn:  wayland.c:691: failed to read Wayland events: Broken pipe
disconnected from Wayland
00:01:00.837 [DEBUG] [backend/drm/drm.c:1026] connector DVI-D-1: De-allocating CRTC 0
00:01:00.893 [DEBUG] [backend/drm/drm.c:1026] connector VGA-1: De-allocating CRTC 1
00:01:00.927 [INFO] [libseat] [seatd/seat.c:413] No clients on seat0 to activate
00:01:01.040 [INFO] [libseat] [seatd/seat.c:519] Closed client 1 on seat0
00:01:01.040 [INFO] [libseat] [seatd/seat.c:198] Removed client 1 from seat0

Most of the time I can just exit the session and restart but as you see in the logs sometimes the system hangs and a hard reboot is needed.

from labwc.

johanmalm avatar johanmalm commented on May 26, 2024

@01micko I didn’t realise it was so persistent. I’ve tried with geany, but still can’t reproduce it.

How do the logs differ when you get the alt-tab issue vs when you don’t.

Unfortunately I won’t be able to look at it until the weekend at the earliest, so it will have to wait unless anyone has time.

from labwc.

01micko avatar 01micko commented on May 26, 2024

I really don't know if geany is to blame or not. It's just I nearly always have it, firefox and foot or lxterminal open all the time and it seems to usually happen when I want to alt-tab to geany! It could well just be a coincidence.

from labwc.

01micko avatar 01micko commented on May 26, 2024

I'm beginning to think it may be a libinput bug. I'll try to update it. EDIT: Updated from 1.19.1 to 1.19.2 but no different. ☹️

from labwc.

01micko avatar 01micko commented on May 26, 2024

I have a partial log with just libinput entries

grep 'libinput' /var/log/labwc5908.log >~/lwc-libinput.log

Thousands of the 404 warning. Don't know if it's of any use. Maybe I need to run with debug symbols?

00:00:00.277 [DEBUG] [backend/libinput/backend.c:87] Starting libinput backend
00:00:00.489 [DEBUG] [backend/libinput/events.c:95] Added Power Button [0:1]
00:00:00.492 [DEBUG] [backend/libinput/events.c:95] Added Power Button [0:1]
00:00:00.494 [DEBUG] [backend/libinput/events.c:95] Added PixArt USB Optical Mouse [2362:9488]
00:00:00.494 [INFO] [../src/seat.c:52] Skipping libinput configuration for device
00:00:00.494 [DEBUG] [backend/libinput/events.c:95] Added   USB Keyboard [1241:5890]
00:00:00.497 [DEBUG] [backend/libinput/events.c:95] Added   USB Keyboard System Control [1241:5890]
00:00:00.500 [DEBUG] [backend/libinput/events.c:95] Added   USB Keyboard Consumer Control [1241:5890]
00:00:00.503 [DEBUG] [backend/libinput/events.c:95] Added Eee PC WMI hotkeys [0:0]
00:00:00.505 [DEBUG] [backend/libinput/backend.c:133] libinput successfully initialized
00:16:47.528 [DEBUG] [backend/libinput/events.c:328] Unknown libinput event 404
00:16:47.592 [DEBUG] [backend/libinput/events.c:328] Unknown libinput event 404
00:16:47.640 [DEBUG] [backend/libinput/events.c:328] Unknown libinput event 404
00:17:31.487 [DEBUG] [backend/libinput/events.c:328] Unknown libinput event 404
(snipped over 2000 lines out of this partial log)

08:03:59.730 [DEBUG] [backend/libinput/events.c:328] Unknown libinput event 404
08:03:59.786 [DEBUG] [backend/libinput/events.c:328] Unknown libinput event 404
08:03:59.834 [DEBUG] [backend/libinput/events.c:328] Unknown libinput event 404
08:04:07.595 [DEBUG] [backend/libinput/events.c:328] Unknown libinput event 404

from labwc.

01micko avatar 01micko commented on May 26, 2024

Working much better now, but geany IDE still has issues, so I'm calling it a geany bug. Closing.

Hmmm... can't close. Please close. Thanks

from labwc.

johanmalm avatar johanmalm commented on May 26, 2024

@01micko I think we ought to try not sending the released key events to the client unless the press event was sent (i.e. for key bindings).
Your geany behaviour is a good “test” for this, so keen to give it a shot - just haven’t had time yet.
So suggest we keep the issue open if you’re happy to.

from labwc.

01micko avatar 01micko commented on May 26, 2024

So suggest we keep the issue open if you’re happy to.

Sure, no problem.

from labwc.

bi4k8 avatar bi4k8 commented on May 26, 2024

I was just able to reproduce this issue by accidentally leaving Caps Lock on.

from labwc.

 avatar commented on May 26, 2024

Thanks for finding that @bi4k8. It works for Num Lock as well.
We might need to make an exception for them in any_modifiers_pressed().
However, we still likely need to implement something like @johanmalm suggested.

from labwc.

01micko avatar 01micko commented on May 26, 2024

Maybe why I have so many issues, I often leave numlock on, and why it seems so intermittent.

from labwc.

01micko avatar 01micko commented on May 26, 2024

Now that I'm more aware of my numlock status I've had geany open and lxterminal with firefox, editing scripts, minimising geany while testing, then alt-tab raising geany without issue.

from labwc.

01micko avatar 01micko commented on May 26, 2024

Last post here 5 days ago and computer uptime is:

~$ uptime
 09:16:11 up 5 days,  2:36,  0 users,  load average: 0.73, 0.50, 0.33

Simply being aware of the numlock status solves this for me so now we know the cause. Nice to be fixed for 0.4.0 👍

from labwc.

01micko avatar 01micko commented on May 26, 2024

Fixed here 😃

from labwc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.