ubisoft / mixer

Add-on for real-time collaboration in Blender.
https://ubisoft-mixer.readthedocs.io/
GNU General Public License v3.0
1.32k stars 77 forks source link

Unable to create server on Windows 7 #3

Closed samvila closed 3 years ago

samvila commented 3 years ago

When using the Blender addon version 0.14.0 on Windows 7 and by having the configuration set as localhost and the default port 12800, after clicking on the 'connect' button Blender freezes for a few seconds and then outputs this error:

Connecting to "localhost:12800" ... unknown error

Blender version 2.83 official

feeefeee commented 3 years ago

Thank you for trying Mixer. Our development is focused on Windows 10 and we cannot investigate and solve this problem without your help.

There could be a platform dependant problem while launching the server process or while the server accesses the network resources. Here a few independant things you can try to investigate the problem:

samvila commented 3 years ago

Hi,

Thanks for the suggestions, this is what I tried:

All this said, I tried your addon and it looks amazing! I think you will keep improving it in certain areas that are missing, for example I cannot see the modifier applied from one user to another.

Thank you very much for sharing this with the Blender community!,

Sam

Celeborn2BeAlive commented 3 years ago

Starting the server from the command line TOTALLY worked! after typing that command I was finally able to use the connect button on the interface. I think this is a very obscure solution for a user, it would be great it the addon could do this for the user automatically. I wouldn't be able to figure out the problem if it wasn't for your help. Hope you could improve this, also it would be highly beneficial if the log would provide more information rather than 'unknown error'.

Well the fact is, this is what the addon is trying to do under the hood when you click "connect" without having a server already launched. No clue why it does not work on Windows 7, we never had any problem with that on Windows 10 :/

As @feeefeee said we focus on Win10 only right now. If we find time for it we may try to debug this on a virtual machine running Win7.

feeefeee commented 3 years ago

Nice to read that you could start it, although it is clearly only a workaround.

If you are willing to make a bit of debugging, you can try to figure out if Mixer actually starts a python.exe process for the server, then have a look into mixer/connection.py :

samvila commented 3 years ago

Nice to read that you could start it, although it is clearly only a workaround.

If you are willing to make a bit of debugging, you can try to figure out if Mixer actually starts a python.exe process for the server, then have a look into mixer/connection.py :

  • if the process was started, maybe the hardcoded connection timeout in wait_for_server() if not enough for your case and you can increase the number of attempts
  • if the process was not started, there may be in start_local_server() an issue related to subprocess.Popen() but I would expect Popen to raise in that case

Hi,

I will spend sometime trying to figure out the problem and I will share my progress with you as I progress along. I can keep doing tests for you if you want.

At the moment I'm having a little bit of problem to follow up your instructions. When you say about 'python.exe' process, do you mean open up the Windows Task Manager and check if 'python.exe' is being executed once I press the connect button on the addon? If that's the case it doesn't seem that it's launching 'python.exe'.

With the latest update now I get a little bit more information in the console:

2020-08-07 02:43:39,153 E mixer.connection - Unable to start local server [.\mixer\connection.py:133]

feeefeee commented 3 years ago

When you say about 'python.exe' process, do you mean open up the Windows Task Manager and check if 'python.exe' is being executed once I press the connect button on the addon?

This is exactly what I meant.

If that's the case it doesn't seem that it's launching 'python.exe'.

There is problably an issue around here which I cannot debug without a Windows 7 at hand. This part of the code needs more error checking.

Celeborn2BeAlive commented 3 years ago

Closing this issue because we are moving discussions to https://gitlab.com/ubisoft-animation-studio/mixer.

@samvila If you want want to continue this discussion, please open a new issue on Gitlab, thanks !