Closed odiukov closed 4 years ago
Do you have any logs?
Refreshing native plugins compatible for Editor in 0.50 ms, found 1 plugins. Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle.dylib Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle.so Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle.dylib Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle.so Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle.dylib Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle.so Fallback handler could not load library /Applications/Unity/2019.1.0f2/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle Receiving unhandled NULL exception Obtained 5 stack frames.
Launching bug reporter
I get it even after select macOS at Platform settings in enet and libnet dlls
I'll talk to the author of that lib tomorrow
@AlexanderDykov
According to logs, it seems that the address or its internal data was freed before it passed the function for obtaining an IP address.
@nxrighthere Hi, thank you. I made a typo, I was using Unity 2019.1.0f2 (also trying with Unity 2019.1.14f and 2019.2.14) and got the same crash with all these versions, I will try to update ENet today
@nxrighthere same crash with latest version of ENet
Can you give logs for a crash with latest ENet?
@RomanZhu Frameworks/Mono/lib/libAssets/Plugins/ENet/enet.bundle Receiving unhandled NULL exception Obtained 40 stack frames.
Launching bug reporter
@AlexanderDykov Can you try to run this test for Unity with just ENet? Copy-paste the code into Test.cs
file, attach it to an empty gameobject in a scene, hit play, and then look at the console.
@nxrighthere Same error here with Test-script
Receiving unhandled NULL exception Obtained 17 stack frames.
Launching bug reporter
It crashes on this line: address.GetHost()
if I comment this Debug.Log("[Server] Host: " + address.GetHost());, then everything works fine and I'am getting: [Server] Test successfuly completed...
That's interesting, thanks. I think I need to find a machine with macOS to resolve this...
@AlexanderDykov Try to replace ENet.cs
with this one [Link removed]
@nxrighthere yes, it works fine right now
Going to update ENet then. Thanks for the info.
Nice, will update the repo with the new version, once it's out
Hi, I've tried to run SampleScene from this repo without any changes on macOS, it starts the scene, but when I click Setup Server and then Start - it throws me out from Unity (same with the client)
Unity 2017.1.0f2, I've tried using mono, Net Standard, Net 4.X and IL2CPP.