aseba-community / aseba

Aseba is a set of tools which allow beginners to program robots easily and efficiently. To contact us, please open an issue.
http://aseba.wikidot.com
GNU Lesser General Public License v3.0
49 stars 61 forks source link

Aseba Studio looses connection with Aseba Playground on Mac #799

Open ypiguet-epfl opened 6 years ago

ypiguet-epfl commented 6 years ago

Aseba Studio quickly looses the connection with Aseba Playground with Thymio.playground. This is observed on macOS 10.12 with 1.6, but maybe it's a more general problem. It happens after a short while, typically 10-60 seconds, 100% of the time. After the first disconnection, Aseba Studio automatically reconnects successfully and immediately disconnects in an infinite loop. The visible consequence is that the VPL window, if open, closes upon disconnection and reopens upon reconnection, and the list of variables etc. on the left of the main Studio window disappears and reappears.

stephanemagnenat commented 6 years ago

We observed that problem in the past as macOS is putting to sleep the background processes. We solved it in the release package by adding a flag to the Info.plist

Did you observe this problem with the released packages or your own compilation?

ypiguet-epfl commented 6 years ago

With the released 1.6, without anything nonstandard (in Aseba Studio, About Aseba Studio, Libraries: Aseba version 1.6.0, build version git-c56c7b8d).

stephanemagnenat commented 6 years ago

Interesting, maybe there is a bug in the packaging. Did the problem happen with the latest 1.5.x release ? @mbonani @cor3ntin was there any change in the packaging script that could have affected that?

ypiguet-epfl commented 6 years ago

I've just tried with 1.5.5 and unifr.playground (thymio.playground is new in 1.6, I think). Same issue with the first simulated e-puck (without VPL obviously).

stephanemagnenat commented 6 years ago

Ok, then we have to investigate, I put it in 1.6.1. Thank you for reporting and for the tests!

mbonani commented 6 years ago

Normally not, I see this behavior only when you minimize playground window. Perhaps we should not allow to minimze the windows.

ypiguet-epfl commented 6 years ago

I haven't minimized the Playground window.

ypiguet-epfl commented 6 years ago

Poking Playground by clicking anywhere in its window will prevent disconnections for a short while. So it must be related to Playground having a snooze and Studio having a too short timeout. One of them should be changed; preferably Studio to avoid the same issue with other clients and because disconnections have really nasty consequences for the user.

mbonani commented 6 years ago

this could be probably solved with new .plist move to new CI

zachllee commented 6 years ago

Just started trying to use Studio and am having this problem. I have Aseba studio V 1.6.0 and OSX 10.13.3.