nokyan / resources

Keep an eye on system resources
GNU General Public License v3.0
783 stars 58 forks source link

The flatpak version does not run on Wayland on Ubuntu 24.10. #382

Closed weverton-reis closed 1 month ago

weverton-reis commented 1 month ago

Is there an existing issue for this?

Current Behavior

The flatpak version does not run on Wayland on Ubuntu 24.10. When I switch to x11 ubuntu xorg it runs normally.

This is the result when running it from the terminal using the command "flatpak run net.nokyan.Resources":

(resources:2): Gdk-WARNING **: 20:17:16.708: vkCreateWaylandSurfaceKHR(): A host memory allocation has failed. (VK_ERROR_OUT_OF_HOST_MEMORY) (-1)

Expected Behavior

Would it run normally in the same way as in x11.

Steps To Reproduce

  1. Install via gnome software or run "flatpak install flathub net.nokyan.Resources" in the terminal;

  2. Leave Ubuntu 24.10 in wayland;

  3. Open the application via graphical interface or run the following command in the terminal "flatpak run net.nokyan.Resources".

Environment

Program Version: 1.6.0
Package Type: Flatpak
System: Ubuntu 24.10
Hardware Info: Intel core i7-13700KF, 32GB RAM, Nvidia RTX 4080, ASUS ROG STRIX B760-F GAMING WIFI

Anything else?

No response

nokyan commented 1 month ago

Hi, can you try running flatpak override --user --env=GSK_RENDERER=gl net.nokyan.Resources in your terminal and then try to run it again?

EvanFro commented 1 month ago

I am getting a similar issue on Ubuntu 24.10 using Wayland. The command above did not solve it, unfortunately. When running flatpak run net.nokyan.Resources, I get the following error message: (resources:2): Gdk-WARNING **: 09:30:58.533: vkCreateWaylandSurfaceKHR(): A host memory allocation has failed. (VK_ERROR_OUT_OF_HOST_MEMORY) (-1) . It seems like this bug patch didn't fix it on Wayland on Ubuntu, unfortunately. Let me know if you need any additional information!

nokyan commented 1 month ago

Can you try the workaround mentioned here?

EvanFro commented 1 month ago

Hi @nokyan , that solved the issue, thanks! Should be an easy fix to deploy then hopefully.

nokyan commented 1 month ago

Hi @nokyan , that solved the issue, thanks! Should be an easy fix to deploy then hopefully.

Great! Though this seems to be an issue with Flatpak and/or GNOME, so Resources won't ship a fix for this. :)

weverton-reis commented 1 month ago

@nokyan Thank you very much! It worked for me.

EvanFro commented 2 weeks ago

@nokyan Just wondering. Do you have any idea where I can report this so that the issue can be resolved without having to go through this workaround? Thanks for your help!

nokyan commented 2 weeks ago

@nokyan Just wondering. Do you have any idea where I can report this so that the issue can be resolved without having to go through this workaround? Thanks for your help!

Sorry, I don't know where to report it to. :/

EvanFro commented 2 weeks ago

@nokyan Just wondering. Do you have any idea where I can report this so that the issue can be resolved without having to go through this workaround? Thanks for your help!

Sorry, I don't know where to report it to. :/

Apparently it was fixed with the latest Nvidia drivers 565 :D #368 I'll wait until it gets out of beta then everything should work fine.