I find the afb-binder on client side ignores subscription randomly, so could you see the code?
I input the error log in afb-proto-ws.c, then found the place of error.
Then, "static struct client_call *client_call_search_locked" function(line 453) fails to find struct client_call in mutex_lock
Note: I would like to get strace log but I couldn't because I couldn't reproduce when I execute with strace( write in service file like below). And I tried execute gdb with afb-daemon but GUI application couldn't find API , so couldn't try to call subscribe.... so sorry , I have only the place of error currently.
When I changed the code of server side from using afb_event_push to using afb_event_broadcast, then success to notify client of events.
|21862,1||afb-evt: Improve compatibility to guppy||master||src/app-framework-binder||Status: MERGED||+2||0|
|21863,1||afb-evt: send events in separate job||master||src/app-framework-binder||Status: MERGED||+2||0|
|21864,1||Revert "afb-stub-ws: Allow unordered process of messages"||master||src/app-framework-binder||Status: MERGED||+2||0|
|21865,2||afb-xreq: Forbids (un)subscribes after reply||master||src/app-framework-binder||Status: MERGED||+2||0|
|21867,1||afb-evt: send events in separate job||guppy||src/app-framework-binder||Status: MERGED||+2||0|
|21868,2||Revert "afb-stub-ws: Allow unordered process of messages"||guppy||src/app-framework-binder||Status: MERGED||+2||0|
|21869,2||afb-xreq: Forbids (un)subscribes after reply||guppy||src/app-framework-binder||Status: MERGED||+2||0|
|21870,2||af-binder: Fix of subscribe issue||master||AGL/meta-agl||Status: MERGED||+2||+1|
|21872,1||af-binder: Fix of subscribe issue||guppy||AGL/meta-agl||Status: MERGED||+2||+1|