You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing condition to call client callback with context:
@norro. It looks like that the implementation of the client callback with context is not properly called: In case the client would have a context (which is not possible now), it will call the normal callback function and not the callback function with context:
I think there is a subtle bug in the conditions to execute the callback (WITH_CONTEXT should throw an error instead of executing the callback), but not one that could cause a crash, and I can't see a way of even running that execution pathway.
This will disappear after #116
Maybe mark it as a feature request?
JanStaschulat
changed the title
Bug: client does not support callback with context
Improvement: implementation of "client with context" is not correct
Jul 16, 2021
Agreed, the WITH_CONTEXT callback shouldn't be silently handled without context. Since I don't know any use case for a client with context, I suggest aborting with a warning/error, if a client callback is called WITH_CONTEXT.
JanStaschulat
changed the title
Improvement: implementation of "client with context" is not correct
[rclc] Implementation of "client with context" should be improved
Jul 28, 2021
Missing condition to call client callback with context:
@norro. It looks like that the implementation of the client callback with context is not properly called: In case the client would have a context (which is not possible now), it will call the normal callback function and not the callback function with context:
rclc/rclc/src/rclc/executor.c
Line 976 in 0263722
You never use a client callback with context?
The text was updated successfully, but these errors were encountered: