Closed learnonroad closed 1 year ago
Thanks for reporting. I don't see anything in the changelog either, but I will try to reproduce.
I can reproduce on master, ~~however the diff between 5.11.4 and 5.11.5 is not extremely large. You are positive that it used to work on 5.11.4?~~
not clearing the receive buffer (for performance reasons) - was the culprit. https://github.com/eclipse-ecal/ecal/compare/v5.11.4...v5.11.5#diff-617c203026e9b95cd2fb17a2877488753f831d1d4e2a0b0be12e4cd0324903c4
At least we now have a testcase to repoduce, but we need to take a further look at how to optimize without re-introducing the bug.
We have fixed this issue and it will be released with an upcoming 5.11.6 within a week or so (depending on what other changes we need to put into 5.11.6). Btw. the timestamps will also have been incorrect with 5.11.4, when sending 0 length payloads (e.g. empty protobu message).
Problem Description
I encountered problems when using proto to publish and subscribe. The problem occurred when I updated eCAL from 5.11.4 to 5.11.5. I use protobuf to post the data. When my protobuf msg publishes normal data, it works normally, but when I set all msg to 0, the subscription callback can respond normally, but the data is still the previous data. I checked the changelog and didn't find the problem. Is it because after 5.11.5, if the data is 0, the data will not be updated?How to fix it?
How to reproduce
Here is the simplye source code:
The output may be as follows:
How did you get eCAL?
Ubuntu PPA (apt-get)
Environment
eCAL: 5.11.5 OS: ubuntu20.04.1
eCAL System Information