openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

UI doesn't show camera feed for CTF replay route

Open Quantizr opened this issue 1 year ago • 9 comments

Describe the bug

For the route in CTF:

# start the route reply
cd tools/replay
./replay '0c7f0c7f0c7f0c7f|2021-10-13--13-00-00' --dcam --ecam

# start the UI in another terminal
selfdrive/ui/ui

The UI does not switch to the onroad display. The UI is receiving data as the camera feed can be viewed in Settings -> Device -> Driver Camera, the issue is probably with the format of the CTF route itself.

Starting the demo replay (/replay --demo --dcam --ecam), stopping the demo, then starting the CTF replay allows the CTF replay to work.

OS Version

Ubuntu 20.04

openpilot version or commit

No response

Additional info

No response

Quantizr avatar Jun 18 '24 02:06 Quantizr

This is an old route that uses the deprecated pandaState service for ignition, @adeebshihadeh should we deprecate the CTF or support the old service in UI?

sshane avatar Jun 19 '24 21:06 sshane

I'd prefer regenerating the route. I think it should be easy: xx/projects/ctf.

adeebshihadeh avatar Jun 19 '24 21:06 adeebshihadeh

I am running into this issue as well. I can also verify that the driver camera preview will work, but my UI does not switch to the onroad display, even after pausing/resuming the replay or even quitting and reloading the replay.

bravochar avatar Jul 12 '24 14:07 bravochar

yo @adeebshihadeh wanna pair on this? 😄

MikeBusuttil avatar Dec 11 '24 05:12 MikeBusuttil

same here, demo route works fine though

royjr avatar Dec 11 '24 16:12 royjr

For benefit of others looking at this issue, Shane and Adeeb already triaged it above, and they're going to fix it by regenerating the CTF route itself. The old CTF route has the ignition-on state in a place we no longer look for it.

jyoung8607 avatar Dec 11 '24 21:12 jyoung8607

Any luck with this @maxime-desroches 🙏

MikeBusuttil avatar Dec 19 '24 20:12 MikeBusuttil

Same issue with MacOS 15.3.1, Any update?

robbiewu008 avatar Mar 07 '25 02:03 robbiewu008

Having same problem! Would be great if you have any update. Thanks

Sanaznor71 avatar May 01 '25 16:05 Sanaznor71

I assume we can checkout to 3 years ago. https://github.com/commaai/openpilot/commit/9f06d6efd869840863e89939bdc8e36816cb2b08

PrabodhGyawali avatar May 23 '25 16:05 PrabodhGyawali

Nah its not the code, its the route that's stored on comma's server. Nag @sshane or @adeebshihadeh and they'll be able to regenerate that route and fix it. I hope they do

MikeBusuttil avatar May 24 '25 01:05 MikeBusuttil

Ran into this today. In the meantime, you can instead run selfdrive/debug/uiview.py as a workaround.

ealderman-25 avatar Jun 20 '25 20:06 ealderman-25

Right now does this block CTF participation? I am just getting started learning openpilot and this blog post recommends starting with the CTF that is having issues.

HeathNaylor avatar Aug 29 '25 19:08 HeathNaylor

nah you can still do the CTF it just makes it a little trickier to get started

MikeBusuttil avatar Aug 29 '25 23:08 MikeBusuttil

would love to see this updated, since it is in this state for over a year.

speedyconzales avatar Nov 08 '25 10:11 speedyconzales