problem using PUN+ v1.51 on Android

Options
Hello guys,

Long time no see :). I just submitted my game Natural Born Soldier Monday to Apple for review, finger crossed :) lol, and now working on Android.

It's my first time playing around with Android/Unity, so might be newbies question, hopefully ;). Basically, when I deploy my game on Android all is going well until I hit the multiplayer button :), and it thrown my game in an unrecoverable state, here is the exception I'm having from logcat:

10-14 22:01:25.679: D/Unity(18535): Unable to load library '/data/app/com.timistudios.nbs-1/lib/arm/libPhotonSocketPlugin.so', native render plugin support disabled: java.lang.UnsatisfiedLinkError: Shared library "/data/app/com.timistudios.nbs-1/lib/arm/libPhotonSocketPlugin.so" already opened by ClassLoader 0x0; can't open in ClassLoader 0x12c8a040
10-14 22:01:25.679: E/Unity(18535): Unable to find PhotonSocketPlugin
10-14 22:01:27.046: D/Unity(18535): Unable to load library '/data/app/com.timistudios.nbs-1/lib/arm/libPhotonSocketPlugin.so', native render plugin support disabled: java.lang.UnsatisfiedLinkError: Shared library "/data/app/com.timistudios.nbs-1/lib/arm/libPhotonSocketPlugin.so" already opened by ClassLoader 0x0; can't open in ClassLoader 0x12c8a040
10-14 22:01:27.046: E/Unity(18535): Unable to find PhotonSocketPlugin
10-14 22:01:30.833: D/Unity(18535): UUID: 358239053113850 => ffe4708b17d465dc8d16ecd28f09ebfc
10-14 22:01:32.395: I/Unity(18535): DirectoryNotFoundException: Could not find a part of the path "/jar:file:/data/app/com.timistudios.nbs-1/base.apk!/assets/troop_complete_01.png".
10-14 22:01:32.395: I/Unity(18535):   at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x001be] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/FileStream.cs:292 
10-14 22:01:32.395: I/Unity(18535):   at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
10-14 22:01:32.395: I/Unity(18535):   at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
10-14 22:01:32.395: I/Unity(18535):   at System.IO.File.OpenRead (System.String path) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:363 
10-14 22:01:32.395: I/Unity(18535):   at System.IO.File.ReadAllBytes (System.String path) [0x00000] in <filename unknown>:0 
10-14 22:01:32.395: I/Unity(18535):   at MyConfig.loadStreamAsset (System.String aAssetFilename, Int3

It looks like there is more than one issue here, but the first one and the one I'm looking for is the libPhotonSocketPlugin.so problem. Any clue why it cannot load the library? If I check into the internal data of the app on the device, the library is there.
shell@hammerhead:/data/app/com.timistudios.nbs-1/lib/arm # ls -l
-rwxr-xr-x system   system     393604 1979-12-31 03:16 gdbserver
-rwxr-xr-x system   system     445872 1979-12-31 17:53 libPhotonSocketPlugin.so
-rwxr-xr-x system   system     309068 1979-12-31 17:53 libeveryplay.so
-rwxr-xr-x system   system      36318 1979-12-31 00:43 libmain.so
-rwxr-xr-x system   system    4517203 1979-12-31 00:49 libmono.so
-rwxr-xr-x system   system   16436353 1979-12-31 00:50 libunity.so
I'm concern why does it say "native render plugin support disabled", is there something I need to turn on?


Some info about my environment:
Unity Free 4.6.8p3
PUN+ v1.51
Android device: Nexus 5 - v5.1.1

I will try to Google a bit and investigate this further, but any help would be appreciated. My next step could be to upgrade to latest PUN+ (v1.62 ?), but I don't feel this is the problem, and would prefer to not do so as the version I have is working perfectly for me on iOS and I been testing it a lot in the context of my game, on top of that I have some code changes and if I upgrade I will need to deal with merging, and maybe change some APIs etc.


Cheers,
Don T.

Comments

  • dontonka
    Options
    FALSE ALARM!!

    At the end the messages printed out for Photon are harmless, the library got loaded and work :). The problem is the 2nd issue in the traces (DirectoryNotFoundException), and this is not Photon related, so I'll figure it out.

    Sorry for the confusion.

    Cheers,
    Don T.
  • Tobias
    Options
    Thanks for the heads up. Saves some headaches :)
    Good luck with the bug hunt!