Unable to find PhotonSocketPlugin

Unity3d 4.6.2f1
PUN+ 1.50.3
Android 4.4.2 and 4.1.2

"Unable to find PhotonSocketPlugin"

It's a clean project. (DemoBoxes)

Comments

  • Make sure the Assets\Plugins\Android\libPhotonSocketPlugin.so is there. In doubt, re-import. Sometimes this stutters and doesn't work really.

    At the moment, exports from some Unity versions are broken. I tested 4.6.2p1 and could not get a working build out of it.
    I reported this as bug for Mono 2.x (Case 670166) and IL2CPP (Case 670145). Both are being fixed asap.
    In your case, I would revert to a 4.6 version without IL2CPP.
  • I have similar error when trying to export to android

    "Unable to find PhotonSocketPlugin"

    unity 4.6.1f1 (without the IL2CPP)
    PUN+ 1.50.3
    android version 5.0.1
  • -edit-edit-

    I've solved my problem. Turns out it really had nothing to do with android. GameServer IP config needed to be changed from auto.

    -original-

    Hi, I'm facing a similar problem.

    I can build to Android, it appears to connect to Master server but when I try create/join a room, it throws an exception and says "Unable to find PhotonSocketPlugin"
    Works completely fine in editor + standalone, can't test iOS for a few days.

    I've tried these Unity (pro) versions
    4.6.3f1
    4.6.2p2
    4.6.2f1

    Android 5.0.1 (API 21)
    PUN+ 1.50.3

    Downloading 4.6.1p2 atm, I can't use any version of Unity early than this as it has a fix that I require.

    Any advise? I've also deleted/re-imported PUN+.
    Assets\Plugins\Android\libPhotonSocketPlugin.so is definitely there

    -edit-

    This is what appears in the unity Log
    Error: Receieve issue. State: Connected Exception: System.Exception: Native socket has receive error or is disconnected: 5 at ExitGames.Client.Photon.SocketUdpNativeDynamic.ReceiveLoop() [0x00000] in <filename unknown>:0
    

    This is what I get from Logcat
    E/Unity   ( 9116): Unable to find PhotonSocketPlugin
    E/Unity   ( 9116): Receive issue. State: Connected Exception: System.Exception: Native socket has receive error or is disconnected: 5
    E/Unity   ( 9116):   at ExitGames.Client.Photon.SocketUdpNativeDynamic.ReceiveLoop () [0x00000] in <filename unknown>:0 
    E/Unity   ( 9116): 
    E/Unity   ( 9116): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 56)
    E/Unity   ( 9116):
    
  • I am having similar issue on Unity 4.6.4. I have selected best server in PUN Config.
  • zohaibjaved:
    Update to Unity 4.6.5p4 at least. There are several fixes in that version and the patches before which are relevant.
    And please update PUN to v1.55, too.
    If the issues are not solved by that, please explain what's happening in your case exactly.
  • Minimo
    Minimo
    edited August 2017
    Recently I got this same issue from a project that was working fine before with Photon.
    I got this issue on Android build. Tried the editor and standalone and they work fine.
    I tried to do as suggested, update PUN to the latest version, delete and reimporting the package. Then trying to export the assets from a fresh project, changing the region settings. The box demo itself doesn't work.

    It shows this message :
    
    08-19 00:15:46.361 12645-12851/? E/Unity: Connect() to 'ns.exitgames.com' failed: native socket state = 3
    08-19 00:15:46.361 12645-12851/? E/Unity:  
    08-19 00:15:46.361 12645-12851/? E/Unity: (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 56)
    08-19 00:15:47.231 12645-12675/? E/Unity: Cause: ExceptionOnConnect
    08-19 00:15:47.231 12645-12675/? E/Unity:  
    08-19 00:15:47.231 12645-12675/? E/Unity: (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 56)
    08-19 00:15:47.261 12645-12675/? E/Unity: Unable to find PhotonSocketPlugin
    
    *I'm using Unity 4.7.0f1 and the Android target to Jellybean 4.1 & FAT(ARMv7 + x86)

    Any suggestion?
    Thanks
  • Hi,

    We had some network issues:

    could it be related, is it still happening now?

    Bye,

    Jean
  • Hi Jean,

    Thanks for the reply. I have upgraded the project to Unity 4.7.2f1.
    But still, the problem persists.
    In the fresh demo project, there are different error messages. Here are the log :
    
    08-25 18:24:51.811 13009-13049/? I/Unity: (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 56)
    08-25 18:24:51.811 13009-13049/? I/Unity: Using constructor for new PingNativeDynamic()
    08-25 18:24:52.921 13009-13049/? E/Unity: Unable to find __Internal
    08-25 18:24:53.041 13009-13049/? I/Unity: EntryPointNotFoundException: egdisconnect
    08-25 18:24:53.041 13009-13049/? I/Unity:     at (wrapper managed-to-native) ExitGames.Client.Photon.SocketUdpNativeStatic:egdisconnect (intptr)
    08-25 18:24:53.041 13009-13049/? I/Unity:   at ExitGames.Client.Photon.PingNative.Dispose () [0x00000] in :0 
    08-25 18:24:53.041 13009-13049/? I/Unity:   at PhotonPingManager+c__Iterator6.MoveNext () [0x00000] in :0
    
    It's weird since my previous projects are doing fine. Only the recent projects have this error. I tried to use the old AppId from working project, but still no luck.
  • Hi,

    what version of Photon are you using?

    Bye,

    Jean
  • I'm using PUN+ 1.85
    jeanfabre said:

    Hi,

    what version of Photon are you using?

    Bye,

    Jean

  • Hi,

    do you have Unity Android Pro license or are you using pun +?

    Bye,

    Jean
  • Hi Jean,
    Yes, I'm using Unity Android Pro license 4.7.2f1 and PUN+ 1.85