commaai / openpilot

openpilot is an operating system for robotics. Currently, it upgrades the driver assistance system on 275+ supported cars.
https://comma.ai/openpilot
MIT License
49.85k stars 9.09k forks source link

waiting for controls to start after update to 0.9.7 #32762

Open jyoung8607 opened 4 months ago

jyoung8607 commented 4 months ago

Describe the bug

After this user received an automatic upgrade from 0.9.6-release to 0.9.7-release, they experienced "Waiting for controls to start" each time they tried to drive.

Tracebacks in the logs show core affinity couldn't be set for some critical processes, which implies one or more of the 845 performance cores might not have come online when transitioning offroad->onroad.

Ignition/onroad cycles did not clear the problem, but a power cycle did clear the problem.

Provide a route where the issue occurs

b08418a961021457/00000001--8dec252c1f

openpilot version

0.9.7

Additional info

[0.005306] system/loggerd/loggerd.cc:218 - loggerd_thread: logging accelerometer
[0.006482] process.py:291 - : starting python selfdrive.monitoring.dmonitoringd
[0.006877] process.py:46 - : crash
Traceback (most recent call last):
  File "/data/openpilot/openpilot/system/manager/process.py", line 40, in launcher
    mod.main()
  File "/data/openpilot/selfdrive/controls/controlsd.py", line 844, in main
    config_realtime_process(4, Priority.CTRL_HIGH)
  File "/data/openpilot/openpilot/common/realtime.py", line 44, in config_realtime_process
    set_core_affinity(c)
  File "/data/openpilot/openpilot/common/realtime.py", line 37, in set_core_affinity
    os.sched_setaffinity(0, cores)
OSError: [Errno 22] Invalid argument
[0.006926] process.py:46 - : crash
Traceback (most recent call last):
  File "/data/openpilot/openpilot/system/manager/process.py", line 40, in launcher
    mod.main()
  File "/data/openpilot/selfdrive/controls/controlsd.py", line 844, in main
    config_realtime_process(4, Priority.CTRL_HIGH)
  File "/data/openpilot/openpilot/common/realtime.py", line 44, in config_realtime_process
    set_core_affinity(c)
  File "/data/openpilot/openpilot/common/realtime.py", line 37, in set_core_affinity
    os.sched_setaffinity(0, cores)
OSError: [Errno 22] Invalid argument
[0.006993] system/loggerd/loggerd.cc:218 - loggerd_thread: logging accelerometer2
[0.007046] system/loggerd/loggerd.cc:218 - loggerd_thread: logging androidLog
[0.007093] system/loggerd/loggerd.cc:218 - loggerd_thread: logging cameraOdometry
jackking444 commented 2 months ago

I get the same issue Traceback (most recent call last): File "/data/openpilot/selfdrive/modeld/modeld.py", line 419, in main(demo=args.demo) File "/data/openpilot/selfdrive/modeld/modeld.py", line 174, in main config_realtime_process(7, 54) File "/data/openpilot/openpilot/common/realtime.py", line 46, in config_realtime_process set_core_affinity(c) File "/data/openpilot/openpilot/common/realtime.py", line 39, in set_core_affinity os.sched_setaffinity(0, cores) OSError: [Errno 22] Invalid argument