COVESA / capicxx-someip-tools

Common API C++ SOMEIP tooling
Mozilla Public License 2.0
76 stars 55 forks source link

stubeventhelper (someip): serialization failed #35

Closed tanjingyuan closed 7 months ago

tanjingyuan commented 1 year ago

I specified the array as a fixed-length array in fdepl, and the LengthWidth is 0, but it will cause the following error when executing: [CAPI][ERROR] StubEventHelper (someip): serialization failed!

tanjingyuan commented 1 year ago

The complete log is as follows: [CAPI][INFO] Loading configuration file '/etc/commonapi.ini' [CAPI][INFO] Using default binding 'dbus' [CAPI][INFO] Using default shared library folder '/usr/local/lib/commonapi' [CAPI][INFO] Registering function for creating "commonapi.HelloWorld:v1_0" stub adapter. [CAPI][INFO] Registering stub for "local:commonapi.HelloWorld:v1_0:test" 2000-00-02 05:01:04.172877 [info] Parsed vsomeip configuration in 1ms 2000-00-02 05:01:04.174233 [info] Using configuration file: "/userdata/tjy/vsomeip-udp-service.json". 2000-00-02 05:01:04.174767 [info] Configuration module loaded. 2000-00-02 05:01:04.175102 [info] Initializing vsomeip application "service-sample". 2000-00-02 05:01:04.176197 [info] Instantiating routing manager [Host]. 2000-00-02 05:01:04.177281 [info] create_local_server Routing endpoint at /tmp/vsomeip-0 2000-00-02 05:01:04.178618 [info] Service Discovery enabled. Trying to load module. 2000-00-02 05:01:04.187422 [info] Service Discovery module loaded. 2000-00-02 05:01:04.188582 [info] Application(service-sample, 1277) is initialized (11, 100). 2000-00-02 05:01:04.191741 [info] REGISTER EVENT(1277): [61b8.0001.8022:is_provider=true] 2000-00-02 05:01:04.191332 [info] Starting vsomeip application "service-sample" (1277) using 2 threads I/O nice 255 2000-00-02 05:01:04.193416 [info] OFFER(1277): [61b8.0001:1.0] (true) 2000-00-02 05:01:04.194387 [info] shutdown thread id from application: 1277 (service-sample) is: ffffb2c731c0 TID: 8543 2000-00-02 05:01:04.194074 [info] main dispatch thread id from application: 1277 (service-sample) is: ffffb34741c0 TID: 8542 2000-00-02 05:01:04.196077 [info] Listening at /tmp/vsomeip-1277 Successfully Registered Service! 2000-00-02 05:01:04.198474 [info] Watchdog is disabled! 2000-00-02 05:01:04.200408 [info] io thread id from application: 1277 (service-sample) is: ffffb3c751c0 TID: 8541 2000-00-02 05:01:04.200558 [info] io thread id from application: 1277 (service-sample) is: ffffb1c711c0 TID: 8545 [CAPI][ERROR] StubEventHelper (someip): serialization failed! [25016.1.32802 Waiting for calls... (Abort with CTRL+C) 2000-00-02 05:01:04.207491 [info] vSomeIP 3.1.20.3 | (default) 2000-00-02 05:01:04.209684 [info] Network interface "eth0" state changed: up 2000-00-02 05:01:04.212039 [info] Route "239.192.255.123/32 if: eth0 gw: n/a" state changed: up 2000-00-02 05:01:04.213371 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992 2000-00-02 05:01:04.214097 [debug] Joining to multicast group 239.192.255.123 from 192.168.1.11 2000-00-02 05:01:04.214803 [info] udp_server_endpoint_impl: SO_RCVBUF (Multicast) is: 212992 2000-00-02 05:01:04.216532 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992 2000-00-02 05:01:04.217094 [info] SOME/IP routing ready. ^C2000-00-02 05:01:11.006044 [info] Stopping vsomeip application "service-sample" (1277). 2000-00-02 05:01:11.013070 [info] Exiting vsomeip application...

tanjingyuan commented 1 year ago

Who has encountered this situation, please help me to answer, thank you

dibpinto commented 8 months ago

@tanjingyuan I was not able to reproduce the error. Please try the new release version and if you still have the same issue provide the .fidl and .fdepl files that are being used.

@goncaloalmeida @Gustavo1515