You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running CBAE on Android \ Termux results in an infinite loop after showing number of tracks to encode
after some debugging I found out this happens because
encoding task running with 0 number of threads defined by DEF_THREADS.
os.cpus() function not working properly on Android.
more details here : nodejs/node#19022
it can be fixed by changing cbae.js line 40 to
const DEF_THREADS = (Math.ceil(cpus().length * 0.75)) || 1;
alternative workaround is running cbae with -p option, but it's not very obvious and i only found it after debugging.
caused by number of encoding threads DEF_THREADS=0
because node.js os.cpus().length not returning number
of cpu cores on Android / Termux
Issue john32b#4
running CBAE on Android \ Termux results in an infinite loop after showing number of tracks to encode
after some debugging I found out this happens because
encoding task running with 0 number of threads defined by DEF_THREADS.
os.cpus() function not working properly on Android.
more details here : nodejs/node#19022
it can be fixed by changing cbae.js line 40 to
const DEF_THREADS = (Math.ceil(cpus().length * 0.75)) || 1;
alternative workaround is running cbae with -p option, but it's not very obvious and i only found it after debugging.
created pull request (merged #5)
anyway, it's a great tool , thanks to the author.
my system
Samsung Galaxy Tab S9
Android 14 / Termux 0.118.1
node.js v23.5.0
The text was updated successfully, but these errors were encountered: