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

fatal error: all goroutines are asleep - deadlock! #12

Open
rchikhi opened this issue Mar 31, 2024 · 1 comment
Open

fatal error: all goroutines are asleep - deadlock! #12

rchikhi opened this issue Mar 31, 2024 · 1 comment

Comments

@rchikhi
Copy link

rchikhi commented Mar 31, 2024

I've had gotranseq randomly crash with this error. Used current master branch and parameters --frame 6 and -n 1, if that matters. Crash does not appear to be deterministic: re-ran the tool on the same file and it went fine. Could be related with -n 1 not being enforced sometimes, as CPU usage can be >100%.

@feliixx
Copy link
Owner

feliixx commented Apr 3, 2024

Hi @rchikhi, interresting thanks for reporting this.

Could be related with -n 1 not being enforced sometimes, as CPU usage can be >100%.

The -n/-numcpu flag is confusing, as under the hood it doesn't garantee that only one CPU will be used. In reality it means that n workers (= goroutine in go) will be launched to translate the file in parralel, and the amount of proccessing power used by each worker depends on the go runtime.

I'll try to fuzz the tool with -n 1 to see if I can reproduce the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants