[Solved] Problem with PUN in Unity 5
Options
Hello there!
I'm having some issues with PUN in the Unity 5 beta 9. Everything seems to work in the editor, but as soon as I build the project, the game no longer functions. When it opens, the screen is just white and then it will either max out memory usage like so: or it will crash.
When it crashes, it provides an error log which I'm going to attach.
In the log it says that the resources.assets is corrupted, and to delete it and run the project again. When I do that, the PUN sample scenes will load, but with none of the networking running. Some functionality seems to be missing as well (such as not being able to move the cubes in the DemoSynchronization scene).
Does anyone have any advice on where to go from here?
I'm having some issues with PUN in the Unity 5 beta 9. Everything seems to work in the editor, but as soon as I build the project, the game no longer functions. When it opens, the screen is just white and then it will either max out memory usage like so: or it will crash.
When it crashes, it provides an error log which I'm going to attach.
In the log it says that the resources.assets is corrupted, and to delete it and run the project again. When I do that, the PUN sample scenes will load, but with none of the networking running. Some functionality seems to be missing as well (such as not being able to move the cubes in the DemoSynchronization scene).
Does anyone have any advice on where to go from here?
0
Comments
-
This is the relevant stack trace that leads to the crash.
========== OUTPUTING STACK TRACE ================== 000000013FE62636 (Discord) AnimationCurveTpl<float>::GetTypeString 0000000140918A7B (Discord) TransferBase::SetUserData 00000001402CBDB0 (Discord) RectT<int>::GetBottom 00000001402BDD8F (Discord) RectT<int>::GetBottom 0000000077690C51 (ntdll) RtlRestoreContext 000000013FE6B0CC (Discord) AnimationCurveTpl<float>::GetTypeString 000000013FE762EB (Discord) AnimationCurveTpl<float>::GetTypeString 000000013FE7E66F (Discord) AnimationCurveTpl<float>::GetTypeString 000000013FE81B5D (Discord) AnimationCurveTpl<float>::GetTypeString 000000013FE83BD8 (Discord) AnimationCurveTpl<float>::GetTypeString 000000013FE5DF88 (Discord) AnimationCurveTpl<float>::GetTypeString 000000013FE5EDC6 (Discord) AnimationCurveTpl<float>::GetTypeString 000000013FE871F7 (Discord) AnimationCurveTpl<float>::GetTypeString 000000013FDB7DED (Discord) mono_array_length_safe_wrapper 000000013FEB398C (Discord) RegisterAllowNameConversionInDerivedTypes 000000013FEAC88D (Discord) RegisterAllowNameConversionInDerivedTypes 000000013FEAD862 (Discord) RegisterAllowNameConversionInDerivedTypes 000000013FF4A37E (Discord) TransferBase::GetUserData 0000000003D9EBE2 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Resources:Load (string,System.Type) 0000000003D9E7E0 (Mono JIT Code) PhotonNetwork:.cctor () 0000000003D80553 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr) 000007FEE5383D67 (mono) mono_set_defaults 000007FEE52D82A1 (mono) mono_runtime_invoke 000007FEE52DBBE6 (mono) mono_array_new 000007FEE5366F6E (mono) mono_inst_name 000007FEE5381FF4 (mono) mono_set_defaults 000007FEE53830BF (mono) mono_set_defaults 000007FEE53836DD (mono) mono_set_defaults 000007FEE5383953 (mono) mono_set_defaults 000007FEE52D82A1 (mono) mono_runtime_invoke 000000013FE87DD5 (Discord) ScriptingArguments::AddString 000000013FE87FD1 (Discord) ScriptingArguments::AddString 000000013FDB8225 (Discord) mono_array_length_safe_wrapper 000000013FDBAEE8 (Discord) GetMonoBehaviourInConstructor 000000013FDB88A8 (Discord) mono_array_length_safe_wrapper 000000013FEA4C74 (Discord) RegisterAllowNameConversionInDerivedTypes 000000013FE5A840 (Discord) CallbackArray3<std::basic_string<char,std::char_traits<char>,stl_allocator<char,59,16> > const & __ptr64,AwakeFromLoadQueue & __ptr64,enum LoadLevelOperation::LoadingMode>::Invoke 000000013FE4DBB3 (Discord) Thread::GetPriority 000000013FE4D0E5 (Discord) Thread::GetPriority 000000013FE4D19E (Discord) Thread::GetPriority 000000013FE499FF (Discord) UserList::AddUser 000000013FEFCD72 (Discord) PlayerWinMain 00000001402BC638 (Discord) RectT<int>::GetBottom 00000000775359ED (kernel32) BaseThreadInitThunk 000000007766C541 (ntdll) RtlUserThreadStart ========== END OF STACKTRACE ===========
0 -
Please take the chance and report this crash as bug to Unity. They will want to know and maybe fix it.
I checked the log and don't see anything obvious, so I can't really help. We will look into Unity Beta soon. Maybe b10 already fixes the issues.0 -
Upgrading to beta 12 seems to have fixed the issue, thanks!0
-
I just checked Unity 5b12 and it seems PUN is Unity 5 compatible so far.
The only issue I had was the Pickup Demo's Animations.
The idle animation includes position and rotation curves. They are simply empty and Unity 4 doesn't apply them but Unity 5 will return you to position 0,0,0 when the character stops moving. This can be fixed easily (when you know what to do) by keeping only the scale curve in animation idle.0