raisimTech / raisimLib

Visit www.raisim.com
http://www.raisim.com
Other
338 stars 91 forks source link

RaisimUnity crashing on m1 #506

Open reeceomahoney opened 1 year ago

reeceomahoney commented 1 year ago

I've been using RaisimUnity on my m1 and am having frequent issues with the client crashing. This happens everytime an episode finishes visualising and training resumes. The client will become unresponsive and gives the spinning pinwheel when moused over. If I want to visualise something again the client has to be killed and relaunched. Is this a problem that's been encountered before?

jhwangbo commented 1 year ago

I haven't succeeded in running RL on m1 so I cannot tell. Some users said that Mac version works on m1. Can you try the Mac version of Raisim Unity?

reeceomahoney commented 1 year ago

No luck, running the Mac version just produced no visualisation at all. For context, I’m running my scripts on a remote Ubuntu server and port forwarding to the raisim client running on my machine. Could this be an issue?

On 27 Aug 2023, at 12:50, Jemin Hwangbo @.***> wrote:

I haven't succeeded in running RL on m1 so I cannot tell. Some users said that Mac version works on m1. Can you try the Mac version of Raisim Unity?

— Reply to this email directly, view it on GitHub https://github.com/raisimTech/raisimLib/issues/506#issuecomment-1694647165, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZPBAQ3T7S7RGIJBJ2HM6DXXMYBZANCNFSM6AAAAAA4AHQUJ4. You are receiving this because you authored the thread.

reeceomahoney commented 1 year ago

As an update to the above, I've tried this same setup of portforwarding from a server but instead ran the client on a local linux machine and it works fine, so it seems the client is the issue.

basitimran37 commented 3 months ago

Did you try in on a local linux client inside a linux VM on mac m1? I am having the same issues.

@jhwangbo looks like that if we minimize the m1 client it cannot be brought back into focus. Infinite spinning wheel and crash if I minimize and try to bring it back into the focus.

reeceomahoney commented 3 months ago

I haven't tried hosting it in a linux VM recently, please let me know if this works for you. My current guess as to why this happens is something to do with the server not being closed properly on termination for the mac version. I'm getting around this by either catching keyboard interrupts and calling kill_server, which works but unreliably, or just clicking the connect button in the client before I terminate, which causes it to try find the server again and closes the current connection. @jhwangbo it would be greater if you knew a better way of doing this.

jhwangbo commented 3 months ago

I just updated raisimUnity. Let me know if it helps. I recommend using tester.py to record video afterwards. Sometimes raisimUnity slows down the training maybe due to communication issues. As far as I know, RaisimUnity works relaible with pure simulation examples in M1.