resources icon indicating copy to clipboard operation
resources copied to clipboard

Applications & Processes Tabs are Blank with No Items. Regression?

Open robinkleem opened this issue 1 year ago • 18 comments

I know that this issue has occurred in the past and was addressed. Perhaps there has been a regression?

Here are the key facts:

  • I am running the latest flatpak version of resources.
  • The Applications tab shows "System Processes" 0B Memory and o.o% Processor and nothing else (see image below)
  • Processes tab is entirely blank and shows nothing (see image below)
  • All other tabs, including GPU, are working as expected

If I run "net.nokyan.Resources" from the cli, the application starts and works (with the issues documented above), and I get the following output:

INFO  resources::application > Resources (net.nokyan.Resources)
 INFO  resources::application > Version: 1.2.1 ()
 INFO  resources::application > Datadir: /app/share/resources
 DEBUG resources::application::imp > GtkApplication<Application>::startup
 DEBUG resources::application::imp > GtkApplication<Application>::activate

If I run "sudo net.nokyan.Resources" from the cli, the application fails to start and I get the following output:

error: app/net.nokyan.Resources/x86_64/stable not installed

I have tried toggling various settings using flatseal, but this did not make any difference.

I am happy to provide any other information that may be useful to help diagnose this issue.

IMAGES: image image

robinkleem avatar Dec 08 '23 23:12 robinkleem

Hi, thanks for reporting the issue. Which operating system are you running?

nokyan avatar Dec 08 '23 23:12 nokyan

I am running NIxOS 24.05 (Uakari) with Intel CPU and Nvidia GPU. I'm happy to provide a more detailed hardware/software breakdown if it would be helpful. Please let me know specifically what you require. Thank you.

Resources' process scanning unfortunately doesn't work as a Flatpak on NixOS since Resources needs to launch a seperate executable outside the Flatpak sandbox to do that and NixOS (as far as I know) doesn't support running ordinary executables. In #76, @Lukas-Heiligenbrunner seems to have made it work using NixOS' own package manager. Can you try that?

nokyan avatar Dec 11 '23 00:12 nokyan

Indeed it is :) https://search.nixos.org/packages?channel=unstable&show=resources&from=0&size=50&sort=relevance&type=packages&query=resources

I'm wondering why everybody tries to put gnome in front of the name, although its only a gtk and not a gnome app, yet^^

Lukas-Heiligenbrunner avatar Dec 12 '23 10:12 Lukas-Heiligenbrunner

Firstly, @nokyan and @Lukas-Heiligenbrunner, thank you both for your respective work on this project. I do think once the bugs are ironed-out it will be the preeminent GUI based resources monitor for Linux distributions.

@Lukas-Heiligenbrunner, apologies, resources is indeed now part of the unstable repo now. For some or other reason when I try and run it without first installing it via nix-shell i.e. nix-shell -p resources then I get an error involving error: undefined variable 'gnome-resources. However if I install the application via configuration.nix then it installs and I can indeed browse the apps and process tabs which are correctly populated.

Unfortunately however the GPU tab does not populate with the correct information.

As documented for @nokyan, if I install the flatpak version of resources (net.nokyan.Resources) then the application and process tabs do not display correctly, however the GPU tab does display correctly.

@Lukas-Heiligenbrunner, I don't want to hijack this thread to document feedback about the Nix version of resources. Is there a separate location to post feedback for the Nix version instead?

Thank you very much for your kind words. :) Could you send a screenshot of the GPU tab? I'm not familiar with NixOS and how packaging for it works but maybe there's something I could use to locate the issue.

nokyan avatar Dec 14 '23 00:12 nokyan

I'm seeing the same problem, but I am running Elementary OS 6.1. That is, no processes or applications show up. I first had a flatpak installation. Then I tried installing it directly from the AppCenter. Same problem.

harabedian avatar May 07 '24 05:05 harabedian

I'm seeing the same problem, but I am running Elementary OS 6.1. That is, no processes or applications show up. I first had a flatpak installation. Then I tried installing it directly from the AppCenter. Same problem.

Can you run flatpak run net.nokyan.Resources in a terminal and send me the output?

nokyan avatar May 07 '24 14:05 nokyan

I'm seeing the same problem, but I am running Elementary OS 6.1. That is, no processes or applications show up. I first had a flatpak installation. Then I tried installing it directly from the AppCenter. Same problem.

Can you run flatpak run net.nokyan.Resources in a terminal and send me the output?

Ran the flatpak command you asked me to run and got the following output (see attachment).

resources_err.log

harabedian avatar May 07 '24 18:05 harabedian

I'm seeing the same problem, but I am running Elementary OS 6.1. That is, no processes or applications show up. I first had a flatpak installation. Then I tried installing it directly from the AppCenter. Same problem.

Can you run flatpak run net.nokyan.Resources in a terminal and send me the output?

Ran the flatpak command you asked me to run and got the following output (see attachment).

resources_err.log

So I installed elementary OS 6.1 in a VM and could reproduce your issue. The problem is that elementary OS 6.1 is already 2.5 years old and ships a glibc that's too old for Resources' companion process that is spawned outside the Flatpak sandbox to gather process data. Consider updating to a newer version of elementary OS.

nokyan avatar May 18 '24 13:05 nokyan

Hi I have the same issue no process shows.

Environment: PostMarket OS edge, gnome 46, Librem 5, mobile phone, flatpak resources v 1.5.0, wayland-1.23.0-r0.

resources

CaptainMorgan12 avatar Jun 26 '24 05:06 CaptainMorgan12

Hi I have the same issue no process shows.

Environment: PostMarket OS edge, gnome 46, Librem 5, mobile phone, flatpak resources v 1.5.0, wayland-1.23.0-r0.

resources

Could you please post the full logs in text form? This screenshot doesn't really help too much, I'm afraid. Though since this has probably something to do with resources-processes, you can also try running /var/lib/flatpak/app/net.nokyan.Resources/current/active/files/libexec/resources/resources-processes in a terminal and post the logs in text from here. If nothing happens after executing the command above, press Enter in the terminal. This should cause a lot of text to be printed in the console.

nokyan avatar Jun 26 '24 09:06 nokyan

here is the error log:

INFO resources::application > Resources (net.nokyan.Resources) INFO resources::application > Version: 1.4.0 () INFO resources::application > Datadir: /app/share/resources DEBUG resources::utils > Running as Flatpak DEBUG resources::utils::memory > Unable to get memory information without elevated privileges DEBUG resources::utils::app > Detecting installed applications… DEBUG resources::utils::app > The following locales will be used for app names and descriptions: ["en_US", "en", "en_US.UTF-8"] DEBUG resources::utils::app > Detected 218 applications DEBUG resources::utils::pci > Parsing pci.ids… DEBUG resources::utils::pci > Successfully parsed pci.ids DEBUG resources::utils::gpu > Found GPU "HD Graphics 630" (PCI slot: 0000:00:02.0 · PCI ID: 8086:591b · Category: Intel) DEBUG resources::utils::cpu > CPU temperature sensor located at /sys/class/hwmon/hwmon6/temp1_input (coretemp) WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer DEBUG resources::ui::window > A drive has been added (or turned visible): /sys/block/nvme0n1 DEBUG resources::ui::window > A drive has been added (or turned visible): /sys/block/sda DEBUG resources::ui::window > A network interface has been added (or turned visible): /sys/class/net/enp2s0f1 DEBUG resources::ui::window > A network interface has been added (or turned visible): /sys/class/net/docker0 DEBUG resources::ui::window > A network interface has been added (or turned visible): /sys/class/net/wlp3s0 DEBUG resources::ui::window > A network interface has been added (or turned visible): /sys/class/net/tun0 WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer WARN resources::ui::window > Unable to update process and application data, reason: failed to fill whole buffer

CaptainMorgan12 avatar Jun 26 '24 14:06 CaptainMorgan12

output.txt

and process output

CaptainMorgan12 avatar Jun 26 '24 14:06 CaptainMorgan12

output.txt

and process output

I can't really read anything in there, is it possible to just copy the output out of your terminal?

nokyan avatar Jun 27 '24 18:06 nokyan

that is what shows on the terminal and agreed it isnt legible unfortunately

CaptainMorgan12 avatar Jun 27 '24 20:06 CaptainMorgan12