real-time-3d-pose-estimation-with-Unity3D icon indicating copy to clipboard operation
real-time-3d-pose-estimation-with-Unity3D copied to clipboard

Unable to run code

Open gpavanb1 opened this issue 4 years ago • 5 comments

I'm using MacOS and Unity to run this repository. The Python part is easy to set up and run, however, on pressing Play in Unity, I am getting the following errors

SocketException: The requested address is not valid in this context System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) Pos_txt_Reader1.Start () (at Assets/Pos_txt_Reader1.cs:191)

SocketException: Invalid arguments System.Net.Sockets.Socket.Listen (Int32 backlog) Pos_txt_Reader1.Update () (at Assets/Pos_txt_Reader1.cs:229)

gpavanb1 avatar Mar 12 '20 18:03 gpavanb1

我正在使用MacOS和Unity运行此存储库。Python部分易于设置和运行,但是在Unity中按Play时,出现以下错误

SocketException:在此上下文中请求的地址无效 System.Net.Sockets.Socket.Bind(System.Net.EndPoint local_end) Pos_txt_Reader1.Start()(在Assets / Pos_txt_Reader1.cs:191处)

SocketException:无效的参数 System.Net.Sockets.Socket.Listen(Int32待办事项) Pos_txt_Reader1.Update()(位于Assets / Pos_txt_Reader1.cs:229)

I have the same problem. Have you solved it?

296022884 avatar Jul 21 '20 09:07 296022884

it's probably because you didn't turn off all firewall and defense of you computer. Please try.

Jacob12138xieyuan avatar Jul 24 '20 08:07 Jacob12138xieyuan

er. Please try.

您好,请问这个问题您解决了吗

leiqing110 avatar Jun 26 '22 08:06 leiqing110

解决了,谢谢您!

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月26日(星期天) 下午4:16 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Jacob12138xieyuan/real-time-3d-pose-estimation-with-Unity3D] Unable to run code (#2)

er. Please try.

您好,请问这个问题您解决了吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

296022884 avatar Aug 07 '22 01:08 296022884

Hello, thank you for sharing. I have encountered some problems and would like to ask you for advice.

When I run the Unity part and change the IP address to my local IP address, the entire project will crash due to socket communication, and there will be no response. According to the test, the problem is tcpserver. Accept() in Update, or the main thread is blocked here;

When I later try to use the Socket asynchronous long connection to create a thread to receive data from the client, it can run normally.

Is it feasible for you to repeatedly connect clients and receive data in Update?Look forward to your reply, thank you!

Ancolie18 avatar Oct 17 '22 07:10 Ancolie18