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

Downloaded RPM, crashes on start (XDG_RUNTIME_DIR) #220

Closed
SpaceRaccoonFluff opened this issue May 25, 2023 · 10 comments · Fixed by #259
Closed

Downloaded RPM, crashes on start (XDG_RUNTIME_DIR) #220

SpaceRaccoonFluff opened this issue May 25, 2023 · 10 comments · Fixed by #259
Labels
Linux Something related to Linux operating system missing dependency Problem related to an external required dependency
Milestone

Comments

@SpaceRaccoonFluff
Copy link

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.:

  1. Go to https://www.sniffnet.net/download/ and download RPM
  2. Double click to install it.
  3. Click the icon or "open" button in Software Center
  4. Enter in your sudo password
  5. 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.

@GyulyVGC
Copy link
Owner

Hi @SpaceRaccoonFluff 😀

On Fedora, you have to install:

  • alsa-lib-devel
  • libpcap-devel
  • fontconfig-devel

It opens the terminal at start because it needs admin privileges to monitor a network card on Linux (and macOS).

@GyulyVGC GyulyVGC added missing dependency Problem related to an external required dependency Linux Something related to Linux operating system labels May 25, 2023
@SpaceRaccoonFluff
Copy link
Author

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
Copy link
Owner

Do you receive any error message? If so, please post it.

@SpaceRaccoonFluff
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

I remember of a guy who solved this exact problem in #17.
You can check how he solved it.

@SpaceRaccoonFluff
Copy link
Author

SpaceRaccoonFluff commented 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
Copy link
Owner

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.

@GyulyVGC GyulyVGC changed the title Downloaded RPM, opening it brings up terminal promting for password then crashes Downloaded RPM, crashes on start (XDG_RUNTIME_DIR) May 26, 2023
@4r7if3x
Copy link
Contributor

4r7if3x commented Jun 1, 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.

@GyulyVGC GyulyVGC added this to the v1.2.1 milestone Jun 1, 2023
@GyulyVGC
Copy link
Owner

GyulyVGC commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Something related to Linux operating system missing dependency Problem related to an external required dependency
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants