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

phantom yad clicks #2575

Closed
3 tasks done
thepotatolover opened this issue Apr 5, 2024 · 21 comments
Closed
3 tasks done

phantom yad clicks #2575

thepotatolover opened this issue Apr 5, 2024 · 21 comments
Labels
User Error Issue is due to user error and not a bug with pi-apps

Comments

@thepotatolover
Copy link

Confirmations

What happened?

Clicking any app to install it maxes out cpu and causes the os to lock up

Description

Newest version of pi apps on rpi 4 8gb newest rpi os 64bit

When i click any app to install it, it then causes the cpu to go to 100% and eventually the os locks up fully for no reason

What are your system specs (run the following command in your terminal)?

OS: Debian GNU/Linux 12 (bookworm)
OS architecture: 64-bit
Last updated Pi-Apps on: 04/04/2024
Latest Pi-Apps version: 04/05/2024
Kernel: aarch64 6.6.20+rpt-rpi-v8
Device model: Raspberry Pi 4 Model B Rev 1.4
SOC identifier: bcm2711
Cpu name: Cortex-A72
Ram size: 7.81 GB
Raspberry Pi OS image version: 2024-03-15
Language: en_US.UTF-8

(Recommended) Error log? Terminal output? Debug messages?

YAD_XID IS 0X400003 (gets spammed)
Terminated (randomly shows)
sh: 1: echo: echo: I/O error (also randomly shows)
@thepotatolover thepotatolover added the bug Something isn't working label Apr 5, 2024
Copy link
Contributor

github-actions bot commented Apr 5, 2024

Hello there 👋
Thanks for submitting your first issue to the Pi-Apps project! We'll try to get back to you as soon as possible.
In the meantime, we encourage you join our Discord server, where you can ask any questions you might have.

Please respond as soon as possible if a Pi-Apps maintainer requests more information from you. Stale issues will be closed after a lengthy period of time with no response.

@Botspot
Copy link
Owner

Botspot commented Apr 5, 2024

Pi-Apps tries to run quickly, so when you are viewing the main top level of blue categories, the subcategories are being generated in the background. This involves reading a lot of files, so with a really slow SD card, you may encounter a brief freeze.

What kind of drive are you using to boot the Pi from? Have you benchmarked it with the agnostics tool? If not, please install agnostics with apt, then go to the start menu -> Accessories -> Raspberry Pi Diagnostics and follow the instructions.

@thepotatolover
Copy link
Author

Pi-Apps tries to run quickly, so when you are viewing the main top level of blue categories, the subcategories are being generated in the background. This involves reading a lot of files, so with a really slow SD card, you may encounter a brief freeze.

What kind of drive are you using to boot the Pi from? Have you benchmarked it with the agnostics tool? If not, please install agnostics with apt, then go to the start menu -> Accessories -> Raspberry Pi Diagnostics and follow the instructions.

im booting from a sd card and the diag gives it a pass

@Botspot
Copy link
Owner

Botspot commented Apr 5, 2024

im booting from a sd card and the diag gives it a pass

OK try this command and see if it causes the 100% cpu issue:

~/pi-apps/preload yad ''

Please give it a few seconds. On my Pi4 it would usually only use some cpu in the first couple seconds.

@thepotatolover
Copy link
Author

im booting from a sd card and the diag gives it a pass

OK try this command and see if it causes the 100% cpu issue:

~/pi-apps/preload yad ''

Please give it a few seconds. On my Pi4 it would usually only use some cpu in the first couple seconds.

alright would you like a video of the issue that is happening?

@thepotatolover
Copy link
Author

I ran the command and it says Preload-daemon skipped; nothing was changed

@Botspot
Copy link
Owner

Botspot commented Apr 5, 2024

I ran the command and it says Preload-daemon skipped; nothing was changed

ok, so then if you open pi-apps again, does it still have the 100% cpu issue?

@thepotatolover
Copy link
Author

I ran the command and it says Preload-daemon skipped; nothing was changed

ok, so then if you open pi-apps again, does it still have the 100% cpu issue?

yes

@thepotatolover
Copy link
Author

image

@thepotatolover
Copy link
Author

After the window opened at the end the entire rpi was locked up for about 4 minutes and it became responsive again and spammed the window open

piapps.lockingupssystem.mp4

image

@Botspot
Copy link
Owner

Botspot commented Apr 5, 2024

Yeah that is strange.

I would like to connect to your system using TeamViewer to have a look for myself. Please install Teamviewer with this command:

~/pi-apps/manage install TeamViewer

And then launch TeamViewer from Menu -> Internet, accept the terms and conditions, and then send me the ID and password in a private discord message to @Botspot.

@thepotatolover
Copy link
Author

Fixed

dev connected tryed reproducing didnt work while dev was connected worked after a reboot and dev was disconnected after changing theme to another and changing it back the issue now doesnt seem to happen

@Botspot
Copy link
Owner

Botspot commented Apr 5, 2024

so basically, I could never reproduce it while connected to @thepotatolover with RustDesk, and after disconnecting, @thepotatolover could still not reproduce it until rebooting.
RustDesk connection seemed to fix it until a reboot.

@thepotatolover then switched to the xlunch theme, which worked fine, then switched back to yad-default where this issue no longer occurs.

@thepotatolover will re-open this issue if the issue returns. My theory is it's something graphics-related somehow causing run_user_selection to be run over and over, but this is unconfirmed.

@theofficialgman theofficialgman added User Error Issue is due to user error and not a bug with pi-apps and removed bug Something isn't working labels Apr 9, 2024
@theofficialgman
Copy link
Collaborator

Yeah that is very strange. As indicated by the terminal logs yad is registering repeated clicks (calling run_user_selection) even when the user is (seemingly) only hovering.

That could be some strange filsystem corruption but I think it would need to be very specific. Maybe they are leaving out critical information like the presence of a rogue virtual mouse or touchscreen causing these phantom clicks.

Regardless its not a pi-apps issue itself.

@thepotatolover
Copy link
Author

Tryed on 2 installs 1 on a usb ssd and an sd card and they both gave the same issue only had 1 keyboard and mouse that also works fine nothing else was plugged into usb except the mouse and keyboard and the usb ssd when i was booting from the ssd otherwise it would of just been the keyboard and mouse

@thepotatolover
Copy link
Author

also they was both clean installs from the raspberry pi imager

@Botspot Botspot reopened this Apr 11, 2024
@theofficialgman
Copy link
Collaborator

theofficialgman commented Apr 11, 2024

Can not reproduce on a fresh image

OS: Debian GNU/Linux 12 (bookworm)
OS architecture: 64-bit
Last updated Pi-Apps on: 04/11/2024
Latest Pi-Apps version: 04/10/2024
Kernel: aarch64 6.6.20+rpt-rpi-v8
Device model: Raspberry Pi 4 Model B Rev 1.5
SOC identifier: bcm2711
Cpu name: Cortex-A72
Ram size: 3.79 GB
Raspberry Pi OS image version: 2024-03-15
Language: en_US.UTF-8

As I said before, this is not a pi-apps issue. This appears to be a hardware issue. Your video can only be simulated by spamming the mouse left click on the GUI at very high frequency (looks like 20 times per second in your video). Try using different peripherals (keyboard and mouse).

@thepotatolover
Copy link
Author

i did same issue

@theofficialgman
Copy link
Collaborator

theofficialgman commented Apr 11, 2024

I don't really have any answer for you than swap out hardware one by one.
eg:
mouse
keyboard
storage
SBC (so if you have another pi, try it)
power supply

it is simply impossible to trigger multiple run_user_selection without selecting or double clicking on an entry in the yad list. So whatever hardware failure you have is causing many many additional mouse click actions.

@theofficialgman theofficialgman changed the title pi apps maxing out cpu when navagating menus phantom yad clicks Apr 19, 2024
@Botspot
Copy link
Owner

Botspot commented May 20, 2024

@thepotatolover were there ever any more updates to this? This is a very strange issue and you have been the only one to ever report it.

@theofficialgman
Copy link
Collaborator

Closing as unactionable.

@theofficialgman theofficialgman closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Error Issue is due to user error and not a bug with pi-apps
Projects
None yet
Development

No branches or pull requests

3 participants