PUN Randomly crashes

Options
Hi all!

Using the last PUN Free version from the Unity Asset Store (1.64.2), my standalone game randomly (some times, but not always) crashes and leaves this in the log file:

photon(19020,0xb140b000) malloc: *** error for object 0x6515a60: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Native stacktrace: 0 libsystem_kernel.dylib 0x9e9ee62a __pthread_kill + 10 1 libsystem_c.dylib 0x995fd8c8 abort + 156 2 libsystem_malloc.dylib 0x940f92a2 free + 433 3 libcrypto.0.9.7.dylib 0x9c7d7b44 CRYPTO_free + 49 4 libcrypto.0.9.7.dylib 0x9c7f87cb ERR_STATE_free + 81 5 libcrypto.0.9.7.dylib 0x9c7f8028 ERR_get_state + 222 6 libcrypto.0.9.7.dylib 0x9c7f8044 ERR_clear_error + 13 7 photon 0x0010883d ossl_connect_common + 141 8 photon 0x00108d7d Curl_ossl_connect + 29 9 photon 0x0011a5e5 Curl_ssl_connect + 53 10 photon 0x000f50ba Curl_http_connect + 90 11 photon 0x000fee8e Curl_protocol_connect + 174 12 photon 0x000ff7a7 setup_conn + 535 13 photon 0x00100010 Curl_async_resolved + 48 14 photon 0x0010e779 Curl_do_perform + 1801 15 photon 0x00837318 _ZN7WWWCurl6GetURLEPKc + 824 16 photon 0x0083746c _ZN7WWWCurl20WWW_ThreadEntryPointEPv + 28 17 photon 0x00a7a051 _ZN6Thread16RunThreadWrapperEPv + 65 18 libsystem_pthread.dylib 0x9ac32794 _pthread_body + 138 19 libsystem_pthread.dylib 0x9ac3270a _pthread_body + 0 20 libsystem_pthread.dylib 0x9ac2ffa6 thread_start + 34 Debug info from gdb: ================================================================= Got a SIGABRT while ex

This seems to be happening on PhotonNetwork.Instantiate call when there's more than 1 player in the room:

PhotonNetwork.Instantiate(PlayerPrefabName, SpawnPositions[0].position, SpawnPositions[0].rotation, 0);

Any ideas on why this could be happening and how to prevent it?

Comments

  • Tobias
    Options
    We don't have any known issues that could cause this, so it's at least new.
    A low level crash like this could be worth reporting as bug to Unity - especially, if it's working on other platforms.

    Did you recently update Unity? Which version do you use?
    How often does it happen? Do you have this issue with our demos as well?