mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 23:45:57 +03:00
[GH-ISSUE #539] Signal SIGXCPU on Linux when I build it myself #323
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#323
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Fruitsalad on GitHub (Oct 9, 2024).
Original GitHub issue: https://github.com/jpochyla/psst/issues/539
Describe the bug
After compiling the program myself, I get a SIGXCPU signal (CPU time limit exceeded) whenever I try to play a track. The program then crashes. This did not happen when I used a prebuilt binary.
To Reproduce
I presume this does not happen on your device, which makes it rather difficult to reproduce. I simply ran:
Of course that makes the process seem a bit cleaner than it really was since at first I missed out on the
apt-get installstep. Nevertheless I don't believe I did anything particularly out of the ordinary, and after properly ensuring all packages are installed (onlylibssl-devwasn't already installed) acargo clean && cargo run --bin psst-guiyields the same results.Environment
@Fruitsalad commented on GitHub (Oct 9, 2024):
This issue isn't very important to me by the way, but I thought it was good to make record of it.
@SO9010 commented on GitHub (Oct 10, 2024):
Heya, I'm pretty sure that this happens as a protection for your computer not to crash, so only the program crashes. This is because you are only building the "developer" build, add --release after your command, then it will remove this issue ;)
So try:
cargo run --bin psst-gui --release@jacksongoode commented on GitHub (Oct 10, 2024):
This is still a little bit weird that this happens. I don't know exactly what the resolution here is.
@SO9010 commented on GitHub (Oct 10, 2024):
Ah ok so I have been looking through documentation, I think the way to fix this is through checking your current CPU time limit:
ulimit -tThen you can set it to unlimited though this:
ulimit -t unlimitedThis may be wrong I haven't tested it yet.
@SO9010 commented on GitHub (Oct 11, 2024):
No this isn't the answer, mine is already set to unlimited... wierd!
@Fruitsalad commented on GitHub (Oct 12, 2024):
I tried a couple of things just now:
psst-gui(specificallyroute_widget()):In a debug build this gives:
Where
18446744073709551615is2**64 - 1(presumably unlimited).I honestly don't think this bug is viable to fix without a kernel developer butting in. If you want to close this as
wontfixthat would be fine by me.@SO9010 commented on GitHub (Oct 14, 2024):
Thank you so much for your help!
@SO9010 commented on GitHub (Oct 16, 2024):
@jacksongoode should we close this now, I do want to note that building with these optimisations does make it take a bit longer to build.
@jacksongoode commented on GitHub (Oct 16, 2024):
I think it's ok to close, if this needs to be reopened if someone wants to figure out more optimal dev settings I believe that's fine.