-
Notifications
You must be signed in to change notification settings - Fork 100
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
-r
option seems to force reboot on MacOS
#116
Comments
I wasn't able to easily reproduce this. Try logging the state of processes when you try to restart: while sleep 1; do
date
ps -x
done > ps_log Then when your Mac starts up again see if processes are in an unexpected state ( Does it matter if reboot from the terminal? sudo shutdown -r now |
thanks for the quick response! also sorry i don't think i was super clear before - the reboot seems to be forced in the sense that i did not manually reboot the laptop, rather the kernel crashes (once rebooted, MacOS gives you a pop up telling you that kernel crashed). let me see if i can prepare a small script to reliably reproduce this at least on my machine. [UPDATE] just got that again - somehow the small examples that i've been using fails to reproduce the issue but
|
It appears that the panic is being caused by
Additionally, it seems likely that the previous panic was caused by
while true; do
npx react-scripts build && npx ts-node app.ts
done and then send a |
hmm yeah, i think you're right that the process that caused the crash was running i'll close this issue - at least if someone else runs into a similar issue when using |
I've encountered something similar, also on MacOS (12.6.8), though the details differ — not using System details: uname -a
Darwin Icarus.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jul 6 22:18:26 PDT 2023;
root:xnu-8020.240.18.702.13~1/RELEASE_X86_64 x86_64
entr
release: 5.5
usage: entr [-acdnprsz] utility [argument [/_] ...] < filenames In my case the offending command is: fd . -e rs -e toml | entr -c cargo test And the system locks up, forcing a manual restart, when I send Ctrl-C to quit entr (after Crash report
|
I don't see how It's also not clear to me weather this is the result of faulty hardware or an instability in MacOS...normally user-space programs cannot crash the OS! |
I love using
entr
for iterating fast and i've recently discovered the option-r
that can be used to autoreload the server.Unfortunately, I've started noticing that my macbook air would start rebooting (the screen goes pink and reboots) almost certainly as a result of running
entr
with-r
(e.g.git ls-files | entr -r -c -s 'make common-build && ./prometheus'
was what I was running). I ran into the same exact behavior when I was running some other server vianpm
.Below snippet shows the version of
entr
where I have this issue as well as the operating system info. Unclear if this is an issue for MacOS orentr
but figured I'd post it here in case someone else is running into the same issue and would love some sort of resolution / explanation.The text was updated successfully, but these errors were encountered: