problem in running Photon-Android_v3-0-1-1_SDK

Hi,

I have downloaded the Photon-Android_v3-0-1-1_SDK and use the loadbalancing demo to connect the cloud server. However, the demo always crashed in a few seconds after startup. Below is the error log in LogCat:

10-25 18:32:59.815: V/RUN(1027): i=4
10-25 18:32:59.815: V/RUN(1027): loadBalancingPeer
10-25 18:32:59.815: V/AP(1027): onUpdateTraffic Begin
10-25 18:32:59.815: V/APC(1027): ConnectedToMaster
10-25 18:32:59.815: V/AP(1027): getCurrentActivity Begin
10-25 18:32:59.815: V/AP(1027): onUpdateTraffic End
10-25 18:32:59.815: V/MM(1027): updateTrafficStats Begin
10-25 18:32:59.815: V/AP(1027): getClient Begin
10-25 18:32:59.835: V/RUN(1027): i=5
10-25 18:32:59.835: W/dalvikvm(1027): threadid=7: thread exiting with uncaught exception (group=0x4001d800)
10-25 18:32:59.845: E/AndroidRuntime(1027): FATAL EXCEPTION: Thread-8
10-25 18:32:59.845: E/AndroidRuntime(1027): java.lang.ClassCastException: [Ljava.lang.Byte;
10-25 18:32:59.845: E/AndroidRuntime(1027): at de.exitgames.client.photon.PeerBase.deriveSharedKey(PeerBase.java:341)
10-25 18:32:59.845: E/AndroidRuntime(1027): at de.exitgames.client.photon.PeerBase.deserializeMessageAndCallback(PeerBase.java:519)
10-25 18:32:59.845: E/AndroidRuntime(1027): at de.exitgames.client.photon.EnetPeer.dispatchIncomingCommands(EnetPeer.java:899)
10-25 18:32:59.845: E/AndroidRuntime(1027): at de.exitgames.client.photon.PhotonPeer.dispatchIncomingCommands(PhotonPeer.java:816)
10-25 18:32:59.845: E/AndroidRuntime(1027): at de.exitgames.client.photon.PhotonPeer.service(PhotonPeer.java:747)
10-25 18:32:59.845: E/AndroidRuntime(1027): at de.exitgames.demo.loadbalancing.DemoClient.run(DemoClient.java:69)
10-25 18:32:59.845: E/AndroidRuntime(1027): at java.lang.Thread.run(Thread.java:1096)

the demo will crash in 1 second after connected to master server. And I found it crashed at calling the function:
this.loadBalancingPeer.service();

Can anyone help on this??

PS: I have changed the this.appId to my cloud account.

Comments

  • Hi Martin.
    This has been a bug in the Client SDK and has just been fixed in version 3.0.1.2.
    Please update.
  • Hi,

    I have downloaded the new SDK and it works fine!

    Thanks a lot!