-
Notifications
You must be signed in to change notification settings - Fork 51
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
databroker-cli PoisonError on CentOS / AutoSD 9 #634
Comments
Running without any feeder for When actual data providers are deployed (carsim, driversim), the error occurs and a full stacktrace can be received when using Note: The corrupted select statement is because I copied from the qemu serial console. The actual statements were of course correct. Output with RUST_BACKTRACE=1:
Output with RUST_BACKTRACE=full: No error occurs
When running a provider for Vehicle.Speed, the following happens:
|
For sake of completeness, not sure if relevant:
|
Regarding the issue. I could reproduce the error with databroker v0.3.0 and databroker-cli 0.4 on RHIVOS.
It seems that the error is only there in databroker-cli and is solved with version greater than 0.4. @argerus @SebastianSchildt how much investigation should we do? Error is only present on RHIVOS on my linux setup it works fine. |
At least the error seems scary enough, that we might want to know what happens. In the cases the error happens, does it also happen when building the binaries (instead of using the dockers), and building in debug mode ( I think just omitting Can you try @lukasmittag , I would hope, doing so would yield a better stacktrace then the one provided by @mikehaller |
Ok so @lukasmittag built a non-stripped databroker-cli binary which produced the following (relevant) part of the backtrace.
This line in the let prefix_lines = self.prompt_prefix_len / self.screen_size.columns; So the root cause seems to be that the the system/terminal emulator is reporting a screen size of 0 columns. This causes a divide by zero in the library ( It is evident that the terminal is behaving erratically when using the QEMU serial console (not just when using databroker-cli) and the panic could not be reproduced when interacting with the QEMU VM using ssh instead. So I guess there are a couple of options to fix this:
|
AS a first/intermediate step, can any of you REPORT those bugs in the upstream projects (I would assume linefeed defintely is a bug, as I would expect for serial/uart terminals you never have get an "official" column size (their is just no interface), unless the client decides "I assume this is a 80 column VT100" |
Ping @argerus Can you try to raise an issue with linefeed upstream? I don't think we can or need to fix it, but whatever they "intent" on such terminals, I guess they would not want to crash @mikehaller As a workaround did you try whether setting some TERM variable before going into shell or using |
We are about to archive this repo soon. If you consider this issue as important please file a new issue at one of the new Kuksa repos at https://github.com/eclipse-kuksa |
When running the Kuksa.VAL Databroker CLI via podman on the Nightly builds of CentOS / AutoSD 9, I get an error when subscribing to vehicle signals:
Environment:
auto-osbuild-qemu-cs9-qa-ostree-x86_64.qcow2
The following error occurs when subscribing to vehicle signals.
Full output:
Output of
podman ps
:The whole setup is described here as a Docker + QEMU setup:
https://github.com/SoftwareDefinedVehicle/leda-distro-fork/tree/rhivos/resources/centos-autosd
The text was updated successfully, but these errors were encountered: