Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I go raise Exception("Connection protocol error; got reply but no-one asked for it: %s" % js) errors if I run same "peyetribe.py" file. if rerun the code, some times it works fine and if reruns again it gives me error. #4

Open
Hrushi-E opened this issue Aug 28, 2023 · 0 comments

Comments

@Hrushi-E
Copy link

I don't understand. Why re running the same code gives errors some times and works fine some times. I tried checking many times

  1. I checked my eye tracker
  2. I also checked my eyes are well detected by tracker

I am really exhausted and spend lot of time. It would be really helpful if you help me out. Why is it happening? How to tackle this?How to make sure it won't happen again?

Thanks a lot

Here are the errors
Error 1: _listener starting
_hbeater starting
Exception in thread Thread-1 (_listener_thread):
Traceback (most recent call last):
Traceback (most recent call last):
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
File "C:\Users\peyetribe\peyetribe.py", line 651, in
n = tracker.next()
File "C:\Userpeyetribe\peyetribe.py", line 570, in next
p = self._tell_tracker(EyeTribe.etm_get_frame)
File "C:\Userseyetribe\peyetribe.py", line 366, in _tell_tracker
raise Exception("Tracker protocol error; we have a queue reply before asking for something: %s" % (self._replyq.get()))
Exception: Tracker protocol error; we have a queue reply before asking for something: {'category': 'tracker', 'request': 'get', 'statuscode': 200, 'values': {'frame': {'avg': {'x': 291.2671, 'y': -227.1511}, 'fix': False, 'lefteye': {'avg': {'x': 0.0, 'y': 0.0}, 'pcenter': {'x': 0.0, 'y': 0.0}, 'psize': 0.0, 'raw': {'x': 0.0, 'y': 0.0}}, 'raw': {'x': 260.6705, 'y': -229.909}, 'righteye': {'avg': {'x': 284.9654, 'y': -226.3895}, 'pcenter': {'x': 0.4818, 'y': 0.4207}, 'psize': 32.6503, 'raw': {'x': 260.6705, 'y': -229.909}}, 'state': 7, 'time': 1046814316, 'timestamp': '2023-08-29 04:35:28.940'}}}

self.run()
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\peyetribe\peyetribe.py", line 442, in _listener_thread
raise Exception("Connection protocol error; got reply but no-one asked for it: %s" % js)
Exception: Connection protocol error; got reply but no-one asked for it: {"category":"tracker","request":"get","statuscode":200,"values":{"frame":{"avg":{"x":289.8436,"y":-227.5419},"fix":false,"lefteye":{"avg":{"x":0.0,"y":0.0},"pcenter":{"x":0.0,"y":0.0},"psize":0.0,"raw":{"x":0.0,"y":0.0}},"raw":{"x":281.0032,"y":-247.2112},"righteye":{"avg":{"x":284.3514,"y":-229.1036},"pcenter":{"x":0.4816,"y":0.4206},"psize":32.5417,"raw":{"x":281.0032,"y":-247.2112}},"state":7,"time":1046814350,"timestamp":"2023-08-29 04:35:28.974"}}}

Error 2:
_listener starting
_hbeater starting
Exception in thread Thread-1 (_listener_thread):
Traceback (most recent call last):
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
eT;dT;aT;Fix;State;Rwx;Rwy;Avx;Avy;LRwx;LRwy;LAvx;LAvy;LPSz;LCx;LCy;RRwx;RRwy;RAvx;RAvy;RPSz;RCx;RCy
self.run()
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\peyetribe\peyetribe.py", line 442, in _listener_thread
raise Exception("Connection protocol error; got reply but no-one asked for it: %s" % js)
Exception: Connection protocol error; got reply but no-one asked for it: {"category":"tracker","request":"get","statuscode":200,"values":{"frame":{"avg":{"x":0.0,"y":0.0},"fix":false,"lefteye":{"avg":{"x":0.0,"y":0.0},"pcenter":{"x":0.0,"y":0.0},"psize":0.0,"raw":{"x":0.0,"y":0.0}},"raw":{"x":0.0,"y":0.0},"righteye":{"avg":{"x":0.0,"y":0.0},"pcenter":{"x":0.0,"y":0.0},"psize":0.0,"raw":{"x":0.0,"y":0.0}},"state":8,"time":1047349261,"timestamp":"2023-08-29 04:44:23.885"}}}

some times i get correct answer
_listener starting
_hbeater starting
eT;dT;aT;Fix;State;Rwx;Rwy;Avx;Avy;LRwx;LRwy;LAvx;LAvy;LPSz;LCx;LCy;RRwx;RRwy;RAvx;RAvy;RPSz;RCx;RCy
1693264562.320;1047447.683;1693264562.307;N;..PEG;195;70;195;70;0;0;0;0;26.1;0.237;0.476;195;70;195;70;30.4;0.448;0.469
1693264562.353;1047447.716;1693264562.340;N;..PEG;198;86;196;74;0;0;0;0;25.6;0.237;0.475;198;86;197;78;30.3;0.448;0.469
1693264562.383;1047447.749;1693264562.373;N;..PEG;192;65;196;74;0;0;0;0;33.3;0.238;0.472;192;65;195;74;30.6;0.448;0.469
1693264562.415;1047447.783;1693264562.407;N;..PEG;192;79;195;74;0;0;0;0;26.9;0.238;0.476;192;79;194;75;30.3;0.448;0.469
1693264562.445;1047447.816;1693264562.440;N;..PEG;208;64;196;74;0;0;0;0;36.5;0.238;0.471;208;64;197;73;31.3;0.448;0.468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant