Menu

#829 event system fails with zmq 4.2.0

closed
nobody
C++ API
5
2017-01-06
2016-11-14
No

Event system seems to not work with zmq 4.2.0 (Debian 9). If you try to subscribe to an attribute ( C++ client) you get an event error with this message: "Received malformed data for event tango"

You can reproduce the bug with the attached code.

The bug was reproduced using a docker container for debian unstable with:
* libtango9 (Version: 9.2.5~rc1+dfsg1-2 )
* libzmq5 (Version: 4.2.0-1 )
* omniORB4 (Version: 4.1.6-2+b1)

/eventclient sys/tg_test/1 short_scalar
I have received an event for attribute tango://ct64debian8.cells.es:10000/sys/tg_test/1/short_scalar
Mon Nov 14 11:34:47 2016 (1479123287,361428 sec) : short_scalar (dim_x = 1, dim_y = 0, w_dim_x = 1, w_dim_y = 0, Data quality factor = VALID, Data format = SCALAR, Data type = DevShort)
Element number [0] = 179
Element number [1] = 0
ev_id1 = 1
The event is an error
Tango error stack
Severity = ERROR 
Error reason = API_WrongEventData
Desc : Received malformed data for event tango://ct64debian8.cells.es:10000/sys/tg_test/1/short_scalar.idl5_change
Origin : ZmqEventConsumer::push_zmq_event()
1 Attachments

Discussion

  • Emmanuel Taurel

    Emmanuel Taurel - 2016-11-14

    Hola Carlos,

    A short question: What about the DS process? Was it also compiled and executed using
    Zmq 4.2.0?

    Cheers

     
  • Zbigniew Reszela

    Hi Manu,

    The DS was the TangoTest from the debian package. So it must be compiled using the same version of the library. It was running on the same host as the client (we have used a docker container to reproduce it). The Tango database was running on a different host (VM in this case) but also using Tango version 9.2.

    Thanks!

     
  • Bourtembourg Reynald

    • Category: Archiving --> C++ API
     
  • Bourtembourg Reynald

    • Status: open --> closed
     

Log in to post a comment.