Skip to content
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

[Bug] Adding the Keyboard Layout applet causes the DE to fail #319

Open
AKotov-dev opened this issue Feb 24, 2023 · 30 comments · Fixed by #418
Open

[Bug] Adding the Keyboard Layout applet causes the DE to fail #319

AKotov-dev opened this issue Feb 24, 2023 · 30 comments · Fixed by #418
Labels
bug Something isn't working needs-more-info Needs More Info

Comments

@AKotov-dev
Copy link

Description

Hello.
Budgie Desktop-10.7.1, Mageia-9.

Problem:
If you add the Keyboard Layout applet to the bottom panel and reboot, the panel no longer loads and the system hangs: the hard disk arrives in some kind of write/read cycle, the keyboard does not work. The only method is the system Reset button.

Best regards,
Alex

Budgie version

budgie-desktop 10.7.1

Operating System

Mageia-9

Steps to reproduce the issue

Add the Keyboard Layout applet and restart your computer.

Actual result

DE does not load.

Expected result

The DE is supposed to boot sometime.

Additional information

No response

@serebit serebit added the bug Something isn't working label Feb 24, 2023
@serebit
Copy link
Member

serebit commented Feb 24, 2023

Can you reproduce this by relogging after adding the applet (i.e. log out and log back in) or is it only when rebooting?

@AKotov-dev
Copy link
Author

After log out and re-entry, the mouse and keyboard do not work. That is, the effect is about the same, except that now I see the bottom panel, but mouse clicks on it do not work.

@baraclese
Copy link

I believe I encountered the same bug on arch linux with the update from ibus 1.5.27 to 1.5.28, downgrading ibus (and libibus) to 1.5.27 fixed the problem.

@serebit
Copy link
Member

serebit commented Feb 25, 2023

Of course it's ibus...

@fossfreedom
Copy link
Contributor

Please can affected people describe their keyboard layouts. What are they? Are you using ibus? If so what is your ibus setup? Basically we need more info to be able to reproduce this.

As an aside we have .28 on ubuntu and we haven't noticed any issues with en_US

@serebit
Copy link
Member

serebit commented Feb 25, 2023

I can't reproduce this on Arch with ibus .28.

@AKotov-dev
Copy link
Author

AKotov-dev commented Feb 25, 2023

Guys, this may seem strange... But having QEMU on hand and the ability to create/use several clones of already installed/configured systems with Budgie-10.7.1 without the Keyboard Layout applet, after destroying another unsuccessful copy, I found out that if you add not only a single Keyboard Layout to the panel, but also the Night Light applet with it, then everything works after exit/login and after reboot. However, if you delete the Night Light applet and leave only the Keyboard Layout, then DE does not load again (see screenshot).

Snapshot_2023-02-25_22-53-46

I understand that it looks silly from my side, but maybe it will give you some thoughts... :)

p.s. Keyboard Layout = [EN/RU].

> rpm -qi ibus
Name        : ibus
Version     : 1.5.28
Release     : 1.mga9
...

Sincerely,
Alex

@baraclese
Copy link

Keyboard Layouts are US and Japanese (with ibus-kkc). I use a panel which has this structure:
Snapshot_top_panel

@fossfreedom
Copy link
Contributor

'fraid still cannot reproduce with the above two instruction variants on Ubuntu lunar.

When you have the DE issues please can you switch to a TTY (CTRL+ALT+F3), login and run

journalctl -ae --full

Use the arrow keys to move around - see if there are any obvious issues around the time of the DE failures - usually the text will be in either yellow or red.

@baraclese
Copy link

I couldn't get useful information from the journal. I was able to start btop and saw that the budgie-panel process was at 100% load and very quickly used up all the RAM until the system froze.

@AKotov-dev
Copy link
Author

Additionally, I tested Budgie-10.7.1 in Fedora-37 and everything works there, there are no problems. I tend to think that something else has not been fully updated in Mageia-9. Nothing else comes to mind... I installed the two applets I wrote about above. For now I will work like this. And I also could not get the journalctl output due to the system freezing. :(

@fossfreedom
Copy link
Contributor

The only thing I can think of here is to install the debug symbols for budgie-desktop using whatever instructions are relevant to your distro

Then using gdb to attach to the budgie-panel --replace running process and watch for whatever is basically spinning out of control

https://stackoverflow.com/questions/2308653/can-i-use-gdb-to-debug-a-running-process

@AKotov-dev
Copy link
Author

@fossfreedom

Thanks. In the meantime, here, I managed to take a screenshot when starting budgie-desktop --replace &! from IceWM with Keyboard Layout installed:

1

Then I launch from the Menu-IBus Settings. It outputs a warning that IBus is not being executed. Run it?. I press Yes and Keyboard Layout starts working and switching input languages and works well. He also suggests adding some lines to $HOME/.bashrc:

2

After adding these lines and restarting the computer, I see that ibus is not running and I start it and start it again budgie-desktop --replace &!

3

The result is that everything freezes again and the hard disk is constantly in a write/read cycle. After some time, the panel disappears altogether. What conclusions can be drawn from this? Thanks.

@AKotov-dev
Copy link
Author

AKotov-dev commented Feb 28, 2023

Additionally:

If you run ibus after the budgie-panel starts, then everything works fine, and if before the budgie-panel starts, then everything freezes.

In other words - it looks like this (I have problems with English, sorry, I'd rather show you):

So - Keyboard Layout starts and works well:

budgie-panel --replace & sleep 3 && ibus-daemon -d

...killing processes (cleaning for the test)

killall budgie-panel ibus-daemon

So (starting in reverse order) - the computer freezes and everything freezes:

ibus-daemon -d && sleep 3 && budgie-panel --replace &!

Maybe it will come in handy? Thanks.

@fossfreedom
Copy link
Contributor

ibus-daemon is started by budgie-wm - https://github.com/BuddiesOfBudgie/budgie-desktop/blob/main/src/wm/ibus.vala#L76 - The fact that you have had to start ibus-daemon before the panel is worrying.

Is there anything in the journal ibus related?

journalctl -ae | grep -i ibus

if you kill ibus-daemon and start it up again using the parameters budgie currently expect are there any errors/warning reported?

ibus-daemon --xim --panel disable

@AKotov-dev
Copy link
Author

I started journalctl -f (in real time in a separate terminal) and after about 2 minutes of waiting, this came out. Is that by any chance the wrong thing? :)

portal IBus

That is:
dbus-daemon[1411]: [session uid=1411] Failed to activate service 'org.freedesktop.portal.IBus': time out (service_start_time out=12000ms)

@fossfreedom
Copy link
Contributor

"current session already has an ibus-daemon"

Did you check and kill all ibus related processes first? Use ps -ef | grep -i ibus

Worth also checking the output of that command carefully to see how the current ibus processes have been initiated before killing them.

I think we need to see the output of this to see what happens on login

journalctl -ae | grep -i ibus

@AKotov-dev
Copy link
Author

oops... ok...
With this parameter ibus-daemon --xim --panel disable:

222

Now, if you run everything at once...

killall budgie-panel ibus-daemon
ibus-daemon --xim --panel disable & sleep 3 && budgie-panel --replace &!

...then again everything hangs and the log is not output, a complete freeze of the system:

333

And after about 5 minutes:

1987 Killed              budgie-panel --replace

@fossfreedom
Copy link
Contributor

image

That shows other budgie elements are not running as well.

Please confirm you are actually using lightdm with slick-greeter as your login manager. i.e. you are not using GDM3.

@AKotov-dev
Copy link
Author

I used lxdm. Right now I have installed lightdm and have already logged in through it. The result has not changed. By the way, Fedora-37 uses GDM and there are no problems. Is lightdm a prerequisite for Budgie? Then how to explain that Budgie is 10.6.4 + lxdm works now, if you install it?

@AKotov-dev
Copy link
Author

See: https://pkgs.org/search/?q=ibus

I suspect that Fedora-37 + Budgie-10.7.1 works because ibus-1.5.27 is installed in it. Let me remind you that in Mageia-9 ibus-1.5.28. By the way, in Ubuntu 22.04 LTS (Jammy Jellyfish) maximum version = ibus-1.5.26.

Now I will try to install ArchLinux (+ ArchLinux Extra x86_64 repo) with ibus-1.5.28 + Keyboard Layout with two input languages. With this I want to confirm or refute baraclese's theory about the upcoming regression.

Please, wait for the test results. Thanks...

@AKotov-dev
Copy link
Author

Test results in Arch Linux-2023.02.01 (ibus-1.5.28-1)

The version with a downgrade to ibus-1.5.27 for Arch Linux-2023.02.01 is not confirmed (see screenshot). In Arch Linux-2023.02.01 (ibus-1.5.28-1) Keyboard Layout switches languages perfectly and there are no problems with loading and freezing the system.

ArchLinux-2023 02 01_Clone2-RU

I have no more questions for the developers. Thank you all very much for the consultations provided. If you deem it necessary, this bug can be closed.

Sincerely,
Alex

@baraclese
Copy link

baraclese commented Mar 1, 2023

Today I have some time to look into this and installed a VM with Arch Linux. I was able to reproduce the error with the following setup:
prerequisite:

  • in /etc/locale.gen enable en_US.UTF-8 and ja_JP.UTF-8
  • run locale-gen

setup budgie:

  • add 'Keyboard Layout' plugin
  • open Budgie Control Center go to Region & Language, click Formats and set All Formats to Japanese (日本).
  • log out and log in again

@baraclese
Copy link

I bisected ibus to this first bad commit: ibus/ibus@19ca106

@serebit
Copy link
Member

serebit commented Mar 1, 2023

So the question remains, is this an ibus bug or a Budgie bug?

@serebit serebit added the verified Verified bug. label Mar 1, 2023
@NeWolf1
Copy link

NeWolf1 commented Jun 19, 2023

Keyboard layout doesn't seem to be relevant.
I have only US keyboard layout and locale.conf, locale.gen is set to en_GB.UTF-8

@serebit serebit linked a pull request Aug 2, 2023 that will close this issue
2 tasks
@stereotypy
Copy link

stereotypy commented Sep 18, 2023

Found out this is what was causing the segfault here: #446

This was introduced with the Budgie 10.8 update for me. People clearly still having issues with this recently around the update such as here: #441 and here: https://forum.endeavouros.com/t/keyboard-layout-applet-breaks-budgie/44245

@EbonJaeger @JoshStrobl looks like the fix still hasn't resolved it for folks.

This broke things so badly for me that I had to run dconf reset -f /com/solus-project/budgie-panel/ instead of the regular nohup command.

@serebit serebit reopened this Sep 18, 2023
@serebit
Copy link
Member

serebit commented Oct 16, 2023

Is this still happening? If it is, can you follow the steps in https://docs.buddiesofbudgie.org/developer/workflow/providing-backtraces so we can see where the segfault is occurring?

@serebit serebit added needs-more-info Needs More Info and removed verified Verified bug. labels Oct 16, 2023
@AKotov-dev
Copy link
Author

AKotov-dev commented Dec 27, 2023

Hello dear serebit. I apologize for the long absence of information on my part on this issue. I was forced to disable the notification service on my GitHub due to GitHub spam.

Regarding the issue, I can report the following: with the release of Budgie-v10.8 there are no more problems and DE works stably. This allowed me to release the next builds of my Mageia derivative. So you can clearly see that Budgie-v10.8.2 is working.

Budgie-v10 8 2-Proserpina

Thank you very much for your work. I congratulate everyone on the upcoming New Year, wish you good luck to all your projects and don’t say goodbye.

Sincerely,
Alex


Edited by @JoshStrobl: Removed off-topic or not appropriate commentary from comment.

@AKotov-dev
Copy link
Author

AKotov-dev commented Dec 27, 2023

Additionally, regarding the question full desktop crush after adding widgets #500 (see above, JoshStrobl mentioned this issue), I would like to inform you that a common reason for logging out with the error shown there in the screenshot is hardware acceleration. If you remove the gstreamer1.0-vaapi (gstreamer1-vaapi in Fedora) package and reboot, i.e. use only software acceleration, then perhaps the problem should go away. I release my builds exclusively with software graphics acceleration, since it is unknown which card and drivers will be used. This is most likely a GNOME issue, but not certain.

Sincerely,
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-more-info Needs More Info
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

6 participants