Skip to content

Downloaded RPM, crashes on start (XDG_RUNTIME_DIR) #220

Closed

Description

@SpaceRaccoonFluff

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.

Activity

  1. GyulyVGC commented on May 25, 2023

    @GyulyVGC
    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).

  2. added
    missing dependencyProblem related to an external required dependency
    LinuxSomething related to Linux operating system
    on May 25, 2023
  3. SpaceRaccoonFluff commented on May 25, 2023

    @SpaceRaccoonFluff
    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.

  4. GyulyVGC commented on May 25, 2023

    @GyulyVGC
    Owner

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

  5. SpaceRaccoonFluff commented on May 25, 2023

    @SpaceRaccoonFluff
    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

  6. GyulyVGC commented on May 25, 2023

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

  7. GyulyVGC commented on May 25, 2023

    @GyulyVGC
    Owner

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

  8. SpaceRaccoonFluff commented on May 25, 2023

    @SpaceRaccoonFluff
    Author

    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?

  9. GyulyVGC commented on May 26, 2023

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

  10. 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
  11. 4r7if3x commented on Jun 1, 2023

    @4r7if3x
    Contributor

    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.

  12. added this to the v1.2.1 milestone on Jun 1, 2023
  13. GyulyVGC commented on Jun 7, 2023

    @GyulyVGC
    Owner

    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.

  14. linked a pull request that will close this issueFinalising the new packaging strategy #259on Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    LinuxSomething related to Linux operating systemmissing dependencyProblem related to an external required dependency

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions