-
Notifications
You must be signed in to change notification settings - Fork 127
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
Colcon build fails with UnicodeDecodeError for WstringArrays in Foxy, but successful in dashing #610
Comments
I'm able to reproduce this using the most recent Foxy rosidl packages installed
Build succeeds
Fails to build with
|
I'm also able to reproduce on |
Looks like an encoding issue in the generated idl file, the problem is probably somewhere in // generated from rosidl_adapter/resource/msg.idl.em
// with input from wstr_msg/msg/WstrTest.msg
// generated code does not contain a copyright notice
module wstr_msg {
module msg {
struct WstrTest {
@default (value="('�',)")
sequence<string> test_default;
};
};
}; |
Probably, the issue is coming due to latin-1 encoding which is merged as part of this commit:aae1e9a This is not merged in dashing and also the build succeeds there. |
I'm not sure about that. It seems to be the right encoding to output to: https://www.omg.org/spec/IDL/4.2/PDF Section 7.2
|
Is there any fix/workaround available for this issue? |
Regression test for ros2/rosidl#610 Signed-off-by: Jacob Perron <[email protected]>
Fixes #610 Signed-off-by: Jacob Perron <[email protected]>
Fixes #610 Signed-off-by: Jacob Perron <[email protected]>
Regression test for ros2/rosidl#610 Signed-off-by: Jacob Perron <[email protected]>
See #620 for a fix. |
Fix #610 Apply the same encode/decode pattern and escaping as for other default values. Signed-off-by: Jacob Perron <[email protected]>
Bug report
Required Info:
Steps to reproduce issue
In Foxy, do colcon build for ros2 custom message with Wstrings.msg as shown below:
Wstrings.msg
Build fails with the following error:
Expected behavior
Build should be successful
Actual behavior
Build failed
Additional information
Build is successful in ros2 dashing but broken in foxy.
In the Wstrings.msg file, these are the fields which are actually causing the failure in foxy.
stdout_stderr.log
Also, looking at the ros2 foxy codebase, I see that tests are missing for WstringArrays but present for StringArrays:
The text was updated successfully, but these errors were encountered: