Skip to content

Cannot start program, OS error code 2 #3

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

Closed
BachoSeven opened this issue Sep 4, 2020 · 7 comments
Closed

Cannot start program, OS error code 2 #3

BachoSeven opened this issue Sep 4, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@BachoSeven
Copy link

Not the same error as #1; AUR build on ArchLinux x86_64; output of RUST_BACKTRACE=full freshfetch:

$ RUST_BACKTRACE=full freshfetch
thread 'main' panicked at 'error reading file: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/info/gpu.rs:40:38
stack backtrace:
   0:     0x561f6bdccda5 - <unknown>
   1:     0x561f6bdf335c - <unknown>
   2:     0x561f6bdc93a2 - <unknown>
   3:     0x561f6bdcf440 - <unknown>
   4:     0x561f6bdcf18c - <unknown>
   5:     0x561f6bdcfa83 - <unknown>
   6:     0x561f6bdcf67b - <unknown>
   7:     0x561f6bdf1d01 - <unknown>
   8:     0x561f6bdf1b23 - <unknown>
   9:     0x561f6bc7b602 - <unknown>
  10:     0x561f6bc84973 - <unknown>
  11:     0x561f6bc91af0 - <unknown>
  12:     0x561f6bca258a - <unknown>
  13:     0x561f6bc8def3 - <unknown>
  14:     0x561f6bdcff23 - <unknown>
  15:     0x561f6bca3552 - <unknown>
  16:     0x7fb4e843c152 - __libc_start_main
  17:     0x561f6bc720ee - <unknown>
@K4rakara
Copy link
Owner

K4rakara commented Sep 4, 2020

Its close to issue #1, but its not identical. This one seems to be an issue with gpu.rs rather than cpu.rs. I'll look into the issue, thanks for reporting.

@K4rakara K4rakara added the bug Something isn't working label Sep 4, 2020
@K4rakara
Copy link
Owner

K4rakara commented Sep 5, 2020

@BachoSeven now that I'm looking at the code, it looks like that line is when the program calls the program lspci. Do you have that installed on your system?

@BachoSeven
Copy link
Author

Yes, as a part of pciutils.

K4rakara added a commit that referenced this issue Sep 5, 2020
The panic message pointed towards the  macro, so I converted
it to just use . Hopefully this resolves the issue.
@K4rakara
Copy link
Owner

K4rakara commented Sep 5, 2020

@BachoSeven Could you try this with the development version? I've implemented a potential fix.
If you're using the AUR version:

cd src/freshfetch/
git pull
git checkout v0.1.2
cd ../..
makepkg

If you're using the raw repo:

git pull
git checkout v0.1.2
cargo build --release -vv

@BachoSeven
Copy link
Author

Yes, that fixes the issue!

@K4rakara
Copy link
Owner

GPU detection

@K4rakara
Copy link
Owner

@K4rakara K4rakara mentioned this issue Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants