hakandundar34coding / system-monitoring-center

Multi-featured system monitor
GNU General Public License v3.0
905 stars 83 forks source link

[Bug] Missing Processes (Flatpak) #219

Closed hbednar closed 1 year ago

hbednar commented 1 year ago

When comparing this to GNOME System Monitor not all processes seem to be displayed, even when show all processes is selected.

hakandundar34coding commented 1 year ago

Can you write names of the processes that are not listed by System Monitoring Center?

Are there any errors when the application is run by using terminal?

hbednar commented 1 year ago

I am using flatpak on Debian sid and these are the errors I am getting: https://pastebin.com/raw/wnhydRzL

hakandundar34coding commented 1 year ago

The link did not work. Can you share the screenshot of the errors directly (attach them to the comment)?

hbednar commented 1 year ago

If the below link doesn't work either, do you know of an alternative to pastebin that works for you. https://pastebin.com/wnhydRzL

hakandundar34coding commented 1 year ago

Can you use the comment feature of Github for attaching image files?

A screenshot:

screenshot_share

hbednar commented 1 year ago

See attached error.txt

hakandundar34coding commented 1 year ago

I tested the application on Debian unstable version on virtual machine. There was no error when Processes tab is opened.

Did you change some packages of the system such as coreutils?

hbednar commented 1 year ago

I am using Debian sid with i3 and i have only install the flatpak package nothing else.

i have also spotted the below error when first opened using flatpak run io.github.hakandundar34coding.system-monitoring-center

/home/user/.local/share:/home/user/.local/share/flatpak/exports/share
is not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

dconf-WARNING:  Unable to open /usr/bin/dconf/profile/user: Not a directory
hakandundar34coding commented 1 year ago

I used the same distribution on virtual machine.

The warning is printed by Flatpak. It may be removed after restarting your system. Can you test the application after restarting your system?

hbednar commented 1 year ago

As you said before that this is a flatpak issue i have tested the deb vershon and i only get the below error instead. Also, the process icons are now showing where the were not before. If i had to guess i think this may be related to missing environment variables used by Flatpak.

(python3:2259144): dconf-WARNING **: Unable to open /usr/bin/dconf/profile/user: Not a directory

Update: After enabling the process tree i now get this error with the deb package:

Traceback (most recent call last):
  File "/usr/share/system-monitoring-center/systemmonitoringcenter/ProcessesMenu.py", line 566, in on_show_processes_as_tree_cb_toggled
    Common.save_tab_settings(Processes)
  File "/usr/share/system-monitoring-center/systemmonitoringcenter/Common.py", line 49, in save_tab_settings
    TabObject.loop_func()
  File "/usr/share/system-monitoring-center/systemmonitoringcenter/Processes.py", line 1365, in loop_func
    Common.update_treestore_rows(self, rows_data_dict, deleted_rows, new_rows, updated_existing_row_index, pid_list, self.pid_list_prev, self.show_processes_as_tree, self.show_processes_of_all_users)
  File "/usr/share/system-monitoring-center/systemmonitoringcenter/Common.py", line 1108, in update_treestore_rows
    piter_list.append(treestore.append(piter_list[row_id_list.index(parent_row)], tab_data_rows[pid_index]))
hakandundar34coding commented 1 year ago

Can you follow these steps?

Note: Share the errors including the first lines if there are lots of errors in terminal output.

hbednar commented 1 year ago

Can you follow these steps?

  • Close System Monitoring Center
  • Delete the config.txt file in /home/[USERNAME]/.config/system-monitoring-center
  • Download the latest source code
  • Extract it and open terminal in src folder
  • Run the following command: python3 ./run_from_source.py
  • Open the Processes tab and share the result

Note: Share the errors including the first lines if there are lots of errors in terminal output.

error.txt

hakandundar34coding commented 1 year ago

Are there any errors for other tabs?

For example; Can you open Users tab and add/remove columns?

hbednar commented 1 year ago

Are there any errors for other tabs?

For example; Can you open Users tab and add/remove columns?

Gdk-CRITICAL **: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed

hakandundar34coding commented 1 year ago

Can you follow these steps for sharing process information on your system?

Screenshot after the code change: smc_code

AtomicRobotMan0101 commented 1 year ago

JFYI - I had the problem of where I was not getting ANYTHING in the Process list. Nada. Blank.

Running the app from the terminal it was throwing a huge bunch of errors.

Turns out it could not connect to /usr/share/applications/libreoffice7.5-impress.desktop

I recently updated to 7.6 LibreOffice. I'd also done an apt purge on 7.5 but it left the links in /usr/share/applications... which clagged up the menu, but seems to have also caused this mysterious error. I hadn't cleaned the old links up as it didn't bother me too much.... (and nor could they be removed via Cinnamon Menus menu editor either, they were missing there)

Once the offending dead LibreOffice links were removed (deleted), the app behaves perfectly.

hakandundar34coding commented 1 year ago

@AtomicRobotMan0101,

It is a different bug. It is fixed in SMC v2.22.1. The application can be updated from:

hbednar commented 1 year ago

I have done some testing on different Linux OS and it seems to only be happening for me. When i have a chance, i will do an OS reinstall and update here if it still continues.

hbednar commented 1 year ago

I have made some adjustments to my environment variables and have now managed to get it working. But i am getting the below error but it doesn't seem to stop it from working:

(system-monitoring-center:26149): Gtk-WARNING **: Negative content height -4 (allocation 1, extents 2x3) while allocating gadget (node button, owner GtkButton)

hakandundar34coding commented 1 year ago

The warning in this comment is printed by GTK. There may be other problems on your system.

There may be Flatpak installation problems on your system. The errors/warnings in this issue were not printed during tests on virtual machine. Setting environment variables for System Monitoring Center is not required.

I will close this issue. But you can write additional comments. You can also open new issues for bugs, new features, etc.

hbednar commented 1 year ago

Thanks for the help