help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zero_mq stuck while receiving msg


From: Ardid, Salva
Subject: Re: Zero_mq stuck while receiving msg
Date: Thu, 25 Apr 2019 22:24:36 +0000


El dijous, 25 d’abril de 2019, a les 18:12:43 EDT, Salva Ardid va escriure:

  
  El dijous, 25 d’abril de 2019, a les 17:32:59 EDT, Ardid, Salva va escriure:
  
    
    El dijous, 25 d’abril de 2019, a les 17:20:50 EDT, JohnD va escriure:
    
    >  Is it possible that whatever is sending the message is failing or 
considering that a message sent is invalid and not responding back with a reply 
?
    
    
    I guess it's what happens, but the code works in Matlab (with loadlibrary, 
calllib, and so on). Is there any way to make zeromq more verbose? Perhaps that 
could help to understand the issue better...
    
    [ Sorry I realized now that I wrote stacked several times instead of stuck ]
    
    
    
    
    
  I put extra info in matlab and octave:
  
  Matlab:
  
  libzmq loaded
  socket done
  connection done
  receiving msg:
  {"name":"eval","type":"get_global"}
  msg received.
  sending msg:
  {"type":"value","value":["__function__","eval"]}
  msg sent.
  receiving msg:
  {"name":"eval","args":["0;"],"nargout":-1,"type":"call"}
  msg received.
  sending msg:
  {"type":"value","value":0}
  
  Octave:
  
  zeromq loaded
  socket done
  connection done
  receiving msg:
  {"name":"eval","type":"get_global"}
  msg received.
  sending msg:
  {"identifier":"Octave:undefined-function","message":"'idx' undefined near 
line 236 column 
13","stack":[{"file":"\/home\/miniconda\/envs\/cenv1\/lib\/python3.7\/site-packages\/transplant\/parsejson.m","name":"parsejson>false","line":236,"column":11,"scope":null,"context":0},{"file":"\/home\/miniconda\/envs\/cenv1\/lib\/python3.7\/site-packages\/transplant\/parsejson.m","name":"parsejson>object","line":143,"column":9,"scope":null,"context":0},{"file":"\/home\/miniconda\/envs\/cenv1\/lib\/python3.7\/site-packages\/transplant\/parsejson.m","name":"parsejson>value","line":50,"column":20,"scope":null,"context":0},{"file":"\/home\/miniconda\/envs\/cenv1\/lib\/python3.7\/site-packages\/transplant\/parsejson.m","name":"parsejson","line":27,"column":16,"scope":null,"context":0},{"file":"\/home\/miniconda\/envs\/cenv1\/lib\/python3.7\/site-packages\/transplant\/transplant_remote.m","name":"transplant_remote>receive_msg","line":200,"column":21,"scope":null,"context":0},{"file":"\/home\/miniconda\/envs\/cenv1\/lib\/python3.7\/site-packages\/transplant\/transplant_remote.m","name":"transplant_remote","line":71,"column":17,"scope":null,"context":0}],"type":"error"}
  msg sent.
  receiving msg:
  {"name":"what","type":"get_global"}
  msg received.
  sending msg:
  {"type":"value","value":["__function__","what"]}
  msg sent.
  receiving msg:
  {"name":"what","args":["eval"],"nargout":-1,"type":"call"}
  msg received.
  sending msg:
  {"identifier":null,"message":"what: could not find the directory 
eval","stack":[{"file":"\/app\/share\/octave\/5.1.0\/m\/miscellaneous\/what.m","name":"what","line":85,"column":9,"scope":null,"context":0},{"file":"\/home\/miniconda\/envs\/cenv1\/lib\/python3.7\/site-packages\/transplant\/transplant_remote.m","name":"transplant_remote","line":129,"column":38,"scope":null,"context":0}],"type":"error"}
  msg sent.
  receiving msg:
  
  So I think now that the actual problem may start with those weird sent 
messages, which do not occur in Matlab
  

These are errors in transplant_remote.m when calling the "what" and "message" 
functions. The first exists in Octave but there should be some sort of 
compatibility issue, whereas the function message is not yet implemented in 
Octave. At least I know better what's going on. I'll need to go to that file 
and adapt it for Octave...

Thanks

reply via email to

[Prev in Thread] Current Thread [Next in Thread]