-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
./cabana --panda
and ./cabana --panda-serial <panda-serial>
segfault, Cabana shows panda's serial while also saying "No panda found"
#32479
Comments
./cabana --panda
and ./cabana --panda-serial <panda-serial>
segfault, Cabana shows panda serial and "No panda found"./cabana --panda
and ./cabana --panda-serial <panda-serial>
segfault, Cabana shows panda's serial while also saying "No panda found"
I looked into this more. I think the relevant files (not including headers) are:
In else if (cmd_parser.isSet("panda") || cmd_parser.isSet("panda-serial")) {
PandaStreamConfig config = {};
if (cmd_parser.isSet("panda-serial")) {
config.serial = cmd_parser.value("panda-serial");
}
try {
stream = new PandaStream(&app, config);
} catch (std::exception &e) {
qWarning() << e.what();
return 0;
}
} And later calls
if (!panda->connected()) {
qDebug() << "Connection to panda lost. Attempting reconnect.";
if (!connect()){
QThread::msleep(1000);
continue;
}
}
Am I missing something, is a segfault expected for some reason in this case? |
This segfault only happens via the CLI (not when the UI launches), because:
And I think this all happens before |
I think my underlying issue might be that I'm trying to execute |
Describe the bug
I compiled openpilot on Debian. I'm trying to get Cabana to use my Red Panda.
When I run
./cabana --panda
on my laptop, I get a segfault every time, regardless of whether the panda is connected. GDB shows:I found that the
void PandaStream::streamThread() {...}
method inopenpilot/tools/cabana/streams/pandastream.cc
attempts to call thebool Panda::connected() {...}
method inopenpilot/selfdrive/boardd/panda.cc
, which attempts to referencehandle->connected
whenhandle
is a nullptr../cabana --panda-serial <panda-serial>
segfaults in the same place.This is part of a larger issue where I'm not seeing any CAN messages from the panda (connected to a 2021 Honda Civic Hatchback with the Honda Bosch A wire harness).
I can connect to my panda using the panda python library (https://github.com/commaai/panda) and get the panda's serial number and firmware version, but when I try to log CAN messages (with my car engine running) I never see them.
I can connect to my panda when I start Cabana with
./cabana
(it appears in the dropdown), but Cabana doesn't show any CAN messages (with my car engine running). Weirder still, if I start Cabana and choose my panda at the start screen, then go toFile > Open Stream...
, the dialog that comes up shows my panda's serial number selected and says "No panda found".Here's a screenshot. I redacted my panda's serial number in case it's sensitive info somehow, if you need it to debug just let me know. The firmware version is
DEV-b4442a7c-RELEASE
Thanks for any help!
Provide a route where the issue occurs
N/A
openpilot version
5cfaae7
Additional info
No response
The text was updated successfully, but these errors were encountered: