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
Hello,
I am facing the same issue for commonapi-dbus-runtime . Below are the details.
Commonapi version:- 3.2.0
dbus:- 1.10.20
Issue:
Step 1: We have define enums as follows in the fidl file (types.fidl)
*/
enumeration ReturnValue_enum {
NOK = -1
OK = 0
INVALID = 260
}
Step2: We faced the compilation error as overflow because the default backingtype for enum in 3.2.0 is uint8_t.
Step 3: Used deployment.fdepl to resolve the compilation issue (set default backend type to int32_t). The deployment.fdepl content is as below.
Step 4: For the specific enum where the backend type is int16_t we see the signature i still as "y"(byte) where as the payload is 2 byte.This results in the disconnection of dbus with error as corrupted message. Below are the contents for the error.
Hello,
I am facing the same issue for commonapi-dbus-runtime . Below are the details.
Commonapi version:- 3.2.0
dbus:- 1.10.20
Issue:
Step 1: We have define enums as follows in the fidl file (types.fidl)
*/
enumeration ReturnValue_enum {
NOK = -1
OK = 0
INVALID = 260
}
Step2: We faced the compilation error as overflow because the default backingtype for enum in 3.2.0 is uint8_t.
Step 3: Used deployment.fdepl to resolve the compilation issue (set default backend type to int32_t). The deployment.fdepl content is as below.
**import "CommonAPI-4_deployment_spec.fdepl"
import "types.fidl"
define org.genivi.commonapi.core.deployment for typeCollection example.abcd.Types {
enumeration ReturnValue_enum {
EnumBackingType = Int16
}
}**
Step 4: For the specific enum where the backend type is int16_t we see the signature i still as "y"(byte) where as the payload is 2 byte.This results in the disconnection of dbus with error as corrupted message. Below are the contents for the error.
Corrupted message stream, disconnecting
Disconnect transport.
Step 5 : Generate:
execute_process(COMMAND ..../commonapi-generator/commonapi-core-generator-linux-x86_64 -sk -d ${DEST_PATH}${fidl_name} ${FIDL_DIR}/${FIDL_PATH} ${FIDL_DIR}/deployment.fdepl RESULT_VARIABLE res)
execute_process(COMMAND ...../commonapi_dbus_generator/commonapi-dbus-generator-linux-x86_64 -dest ${DEST_PATH}${fidl_name} ${FIDL_DIR}/${FDEPL_PATH} RESULT_VARIABLE res)
Please suggest if something has been missed in the deployment.fdepl.
The text was updated successfully, but these errors were encountered: