You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Downloaded RPM, crashes on start (XDG_RUNTIME_DIR) #220
Describe the bug
I'm using Fedora 38. I downloaded the RPM and when I go to open the app, the terminal opens up asking me for my password. Once I put the password in the sniffnet logo and some text that I can't read before the terminal window vanishes/crashes 1 second later after entering my sudo password.
To Reproduce
Describe steps to reproduce the bug, e.g.:
Click the icon or "open" button in Software Center
Enter in your sudo password
Watch as it crashs.
Expected behavior
For the GUI to open up and let me use the app. Also why does clicking the icon open up my terminal instead of the GUI app from the start?
Desktop (please complete the following information):
OS: Linux Fedora 38
Additional context
Is this a dependency issue? I did not install any, If so I am pretty new to linux overall still and need help with the exact commands for Fedora specifically to properly install them. Thanks to anyone who can get this working, I really need a GUI based bandwidth monitor and I want to like this one.
I had to record it and watch it frame by frame since the terminal crashes in less than a second after typing in the password but this is what I was able to capture before crashing/closing: https://imgur.com/a/lnLpdvu
I also got that error but it was more like a warning in my case because the app was able to correctly run anyway.
I'll come back to you if I have any news.
Near the bottom that link mentions something about wgpu and x11. I use wayland on Fedora. Is that why the GUI is not showing up? If so what would the command to fix it be?
I honestly have no idea, but at this point I think that the problem is related to the graphical renderer.
If you have Rust installed, I suggest you to build Sniffnet from the glow-renderer branch, which usually solves renderer-related problems.
changed the title [-]Downloaded RPM, opening it brings up terminal promting for password then crashes[/-][+]Downloaded RPM, crashes on start (XDG_RUNTIME_DIR)[/+]on May 26, 2023
This issue is probably related to #224 which will be patched soon.
Regarding:
On Fedora, you have to install:
alsa-lib-devel
libpcap-devel
fontconfig-devel
The -dev / -devel versions of Linux packages are only useful to developers since they come with extra stuff necessary to build the app. End users can install the normal packages instead. However, in my incoming PR, I've added the dependencies to the installer, so you won't need to worry about that anymore.
Regarding:
I honestly have no idea, but at this point I think that the problem is related to the graphical renderer. If you have Rust installed, I suggest you to build Sniffnet from the glow-renderer branch, which usually solves renderer-related problems.
Here is what Iced troubleshooting says:
GraphicsAdapterNotFound
This occurs when the selected built-in renderer is not able to create a context.
Often this will occur while using iced_wgpu as the renderer without supported hardware (needs Vulkan, Metal or DX12). In this case, you could try using the iced_glow renderer.
NOTE: Chances are you have hardware that supports at least OpenGL 2.1 or OpenGL ES 2.0, but if you don't, right now there's no software fallback, so it means your hardware doesn't support Iced.
Although I had faced such error in my testing VM, I don't believe it's related to your issue.
Activity
GyulyVGC commentedon May 25, 2023
Hi @SpaceRaccoonFluff 😀
On Fedora, you have to install:
It opens the terminal at start because it needs admin privileges to monitor a network card on Linux (and macOS).
SpaceRaccoonFluff commentedon May 25, 2023
I went ahead and sudo dnf installed those 3 but it's still crashing when I open it and type in my password in the terminal.
GyulyVGC commentedon May 25, 2023
Do you receive any error message? If so, please post it.
SpaceRaccoonFluff commentedon May 25, 2023
I had to record it and watch it frame by frame since the terminal crashes in less than a second after typing in the password but this is what I was able to capture before crashing/closing: https://imgur.com/a/lnLpdvu
GyulyVGC commentedon May 25, 2023
I also got that error but it was more like a warning in my case because the app was able to correctly run anyway.
I'll come back to you if I have any news.
GyulyVGC commentedon May 25, 2023
I remember of a guy who solved this exact problem in #17.
You can check how he solved it.
SpaceRaccoonFluff commentedon May 25, 2023
Near the bottom that link mentions something about wgpu and x11. I use wayland on Fedora. Is that why the GUI is not showing up? If so what would the command to fix it be?
GyulyVGC commentedon May 26, 2023
I honestly have no idea, but at this point I think that the problem is related to the graphical renderer.
If you have Rust installed, I suggest you to build Sniffnet from the
glow-rendererbranch, which usually solves renderer-related problems.[-]Downloaded RPM, opening it brings up terminal promting for password then crashes[/-][+]Downloaded RPM, crashes on start (XDG_RUNTIME_DIR)[/+]4r7if3x commentedon Jun 1, 2023
This issue is probably related to #224 which will be patched soon.
Regarding:
The
-dev / -develversions of Linux packages are only useful to developers since they come with extra stuff necessary to build the app. End users can install the normal packages instead. However, in my incoming PR, I've added the dependencies to the installer, so you won't need to worry about that anymore.Regarding:
Here is what Iced troubleshooting says:
Although I had faced such error in my testing VM, I don't believe it's related to your issue.
GyulyVGC commentedon Jun 7, 2023
Hey @SpaceRaccoonFluff
We changed the building strategy and we are looking for feedback/testers to see if we finally solved this issue.
Could you kindly try the new package available below?
Sniffnet_LinuxRPM_x86_64.rpm.zip
Thanks in advance.