videogramme / text20

Automatically exported from code.google.com/p/text20
0 stars 0 forks source link

Spurious "data rate low", even when using the mouse. #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes, even when using the tracking device mouse, the message "data rate 
low" is emitted and the framework stops, without any notice. 

Original issue reported on code.google.com by r.biedert on 14 Oct 2010 at 5:40

GoogleCodeExporter commented 9 years ago
Example log attached. 

Original comment by r.biedert on 15 Oct 2010 at 1:03

Attachments:

GoogleCodeExporter commented 9 years ago
Oh. Check that the function calling back the listeners is actually in try/catch:

                        MouseTrackingDevice.this.listenerLock.lock();
                        // And dispatch it to the listener
                        for (int i = 0; i < MouseTrackingDevice.this.trackingListener.size(); i++) {
                            final EyeTrackingListener l = MouseTrackingDevice.this.trackingListener.get(i);
                            l.newTrackingEvent(event);
                        }
                        MouseTrackingDevice.this.listenerLock.unlock();

Original comment by r.biedert on 15 Oct 2010 at 1:10

GoogleCodeExporter commented 9 years ago
Same applies to tracking server device:

            try {
                // And dispatch it to the listener
                for (int i = 0; i < ServerTrackingDevice.this.trackingListener.size(); i++) {
                    final EyeTrackingListener l = ServerTrackingDevice.this.trackingListener.get(i);
                    l.newTrackingEvent(trackingEvent);
                }
            } finally {
                ServerTrackingDevice.this.listenerLock.unlock();
            }

Original comment by r.biedert on 15 Oct 2010 at 1:11

GoogleCodeExporter commented 9 years ago
Important: LOG if there was an exception thrown in one of the listeners. Code 
is from trackingdevices/eyes/* btw.

Original comment by r.biedert on 15 Oct 2010 at 1:13

GoogleCodeExporter commented 9 years ago
Added handler, should verify results. 

Original comment by r.biedert on 28 Oct 2010 at 11:44

GoogleCodeExporter commented 9 years ago
Seems to work.

Original comment by r.biedert on 28 Oct 2010 at 11:59