mobox icon indicating copy to clipboard operation
mobox copied to clipboard

taskset: failed to set pid 11011's affinity: Invalid argument

Open kolobok5447 opened this issue 1 year ago • 7 comments

Hello everyone! When I click “Start Wine” in the Mobox Emulator menu, a download occurs where it says that it cannot be configured and that I need to look at the log file. I looked at the log where it was written - "taskset: failed to set pid 11011's affinity: Invalid argument". My phone: OS: Android 11 Device: WP18 (WP18_EEA)
ROM: OUKITEL_WP18_EEA_V16_20230317 Baseband: unknown Kernel: aarch64 Linux 4.19.127-00014-g2d8fe55-dirt Uptime: CPU: MT6761V/WBB GPU: MT6761V/WBB RAM: 2277MiB / 3830MiB Help please!

kolobok5447 avatar Feb 15 '24 08:02 kolobok5447

I'm having this same issue. Ofc its a different PID. I'm going to try using box64 instead of WoW64

VenomousSteam81 avatar Feb 16 '24 00:02 VenomousSteam81

Same exact issue. This is weird

VenomousSteam81 avatar Feb 16 '24 00:02 VenomousSteam81

im using a Lenovo 300e Second Gen MTK with:

  • a MediaTek mt8173 (4 threads at 1.70GHz)
  • 4GB ram

i believe latest version of ChromeOS (shouldnt matter) Android 11 Subsystem PowerVR Rogue GX6250 (according to AIDA64)

VenomousSteam81 avatar Feb 16 '24 00:02 VenomousSteam81

As I understand it, this problem is related to the processor cores. Here is a quote from ChatGPT:

"1. Process PID does not exist: Check if a process with the specified PID 1417 exists at the time of attempting to install CPU affinity. This process may have already completed or the PID was incorrectly specified.

  1. Invalid parameters: Verify that the parameters used with the taskset command are correct. For example, the CPU number must be within range for your system.

  2. Unavailable processor cores: If the processor cores you specified are not available (for example, reserved for other tasks), this can also cause an "Invalid argument" error.

To try to fix this error, here are a few steps you can take:

  1. Check for process existence: Make sure that the process with PID 1417 exists when you try to install CPU affinity.

  2. Review the taskset command parameters: Review the taskset command to ensure that all parameters are correct.

  3. Select other processor cores: Try to specify other available processor cores to install CPU affinity."

kolobok5447 avatar Feb 16 '24 05:02 kolobok5447

As I understand it, this problem is related to the processor cores. Here is a quote from ChatGPT:

"1. Process PID does not exist: Check if a process with the specified PID 1417 exists at the time of attempting to install CPU affinity. This process may have already completed or the PID was incorrectly specified.

  1. Invalid parameters: Verify that the parameters used with the taskset command are correct. For example, the CPU number must be within range for your system.
  2. Unavailable processor cores: If the processor cores you specified are not available (for example, reserved for other tasks), this can also cause an "Invalid argument" error.

To try to fix this error, here are a few steps you can take:

  1. Check for process existence: Make sure that the process with PID 1417 exists when you try to install CPU affinity.
  2. Review the taskset command parameters: Review the taskset command to ensure that all parameters are correct.
  3. Select other processor cores: Try to specify other available processor cores to install CPU affinity."

you are a fucking idiot. no sane individual would consult an AI LLM for troubleshooting. that said, i'm having a similar issue.

cowboy-bebo avatar Mar 30 '24 05:03 cowboy-bebo

It seems mobox assume every device have 8 cores. On my OnePlus 3t, it uses 4-7 as primary cores default, and will choose 6-7 if I manully set 2 cores as primary; but in fact my device have 4 cores totally, the primary cores should be 2-3. That makes the initial taskset failed, since my device not even have those cores. The current solution seems edit usr/glibc/opt/conf/cores.conf manually. In future, I suggest detect total cores at runtime; or if not possible, at least let user choose it.

palxex avatar Mar 30 '24 15:03 palxex