Author Topic: PS4 game crashes at GetAllNetworkInterfaces() function  (Read 5039 times)

ibaanb

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 17
    • View Profile
PS4 game crashes at GetAllNetworkInterfaces() function
« on: February 18, 2015, 07:54:03 AM »
Hi,

I'm currently making a multi-player game for PS4 that supports 2-8 players via LAN and WAN. However, when joining a host that does not support UPnP the game would crash and exit game. I discovered that it crashed at GetAllNetworkInterfaces() function in TNTools.cs. I cannot see any debug information, so I'm not sure what the error is caused from. This error specifically occurs when the client(PS4 Devkit) is using a different ISP to join a game, but the Host is using an ISP that does not support UPnP.

Thanks,

Pathompong Nakpathom

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: PS4 game crashes at GetAllNetworkInterfaces() function
« Reply #1 on: February 18, 2015, 04:39:50 PM »
Have you tried simply creating a completely empty project with a MonoBehaviour that just does NetworkInterface.GetAllNetworkInterfaces() inside to see what's returned?

ibaanb

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: PS4 game crashes at GetAllNetworkInterfaces() function
« Reply #2 on: February 19, 2015, 12:24:15 AM »
I tried to create empty unity project and put the plugin .Net socket that I got from Unity. The error is same when I call GetAllNetworkInterfaces function. I tried to test the other function like GetIsNetworkAvailable function and it is fine.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: PS4 game crashes at GetAllNetworkInterfaces() function
« Reply #3 on: February 19, 2015, 05:26:58 PM »
I suggest you use that empty project and submit a bug to Unity so they fix it.