Giter Club home page Giter Club logo

Comments (3)

btco avatar btco commented on August 23, 2024

Can you provide more details about the crashes? What gets printed to the logs when the crashes happen?

from play-games-plugin-for-unity.

atelierxiris avatar atelierxiris commented on August 23, 2024
I/ActivityManager(  592): START u0 {act=com.google.android.gms.games.VIEW_LEADERBOARDS dat=version:4242000 flg=0x4000000 pkg=com.google.android.gms cmp=com.google.android.gms/.games.ui.client.leaderboards.ClientLeaderboardListActivity (has extras)} from pid 17919
W/ActivityManager(  592): Activity pause timeout for ActivityRecord{41ef4c50 u0 com.hidden.for.safety/com.facebook.unity.FBUnityPlayerActivity t61}
W/PopupManager(16564): You have not specified a View to use as content view for popups. Falling back to the Activity content view which may not work properly in future versions of the API. Use setViewForPopups() to set your content view.
D/dalvikvm( 1043): GC_CONCURRENT freed 1102K, 9% free 12831K/14088K, paused 1ms+14ms, total 53ms
I/ActivityManager(  592): Displayed com.google.android.gms/.games.ui.client.leaderboards.ClientLeaderboardListActivity: +202ms
W/GLSUser (  947): GoogleAccountDataService.getToken()
D/dalvikvm(16564): GC_CONCURRENT freed 160K, 15% free 11121K/13024K, paused 2ms+2ms, total 16ms
I/Unity   (17919): onPause
D/Unity   (17919): Sensor :        Accelerometer ( 1) ; 0.001190 / 0.00s ; LGE Accelerometer Sensor / InvenSense
I/Unity   (17919): windowFocusChanged: false
I/Choreographer(17919): Skipped 62 frames!  The application may be doing too much work on its main thread.

Upon clicking the ShowLeaderboardsUI() button.

I/qtaguid ( 1043): Failed write_ctrl(u 72) res=-1 errno=22
I/qtaguid ( 1043): Untagging socket 72 failed errno=-22
W/NetworkManagementSocketTagger( 1043): untagSocket(72) failed with errno -22
D/AndroidRuntime(17919): Shutting down VM
W/dalvikvm(17919): threadid=1: thread exiting with uncaught exception (group=0x41618ba8)
E/AndroidRuntime(17592): FATAL EXCEPTION: main
E/AndroidRuntime(17592): Process: com.hidden.for.safety, PID: XXXX
E/AndroidRuntime(17592): java.lang.Error: FATAL EXCEPTION [main]
E/AndroidRuntime(17592): Unity version     : 4.3.3f1
E/AndroidRuntime(17592): Device model      : LGE Nexus 4
E/AndroidRuntime(17592): Device fingerprint: google/occam/mako:4.4.2/KOT49H/937116:user/release-keys
E/AndroidRuntime(17592):
E/AndroidRuntime(17592): Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=9999, result=0, data=null} to activity {com.hidden.for.safety}.unity.FBUnityPlayerActivity}: java.lang.NullPointerException
E/AndroidRuntime(17592):        at android.app.ActivityThread.deliverResults(ActivityThread.java:3365)
E/AndroidRuntime(17592):        at android.app.ActivityThread.handleSendResult(ActivityThread.java:3408)
E/AndroidRuntime(17592):        at android.app.ActivityThread.access$1300(ActivityThread.java:135)
E/AndroidRuntime(17592):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
E/AndroidRuntime(17592):        at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(17592):        at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(17592):        at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime(17592):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(17592):        at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(17592):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime(17592):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime(17592):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(17592): Caused by: java.lang.NullPointerException
E/AndroidRuntime(17592):        at com.facebook.unity.FBUnityPlayerActivity.onActivityResult(FBUnityPlayerActivity.java:15)
E/AndroidRuntime(17592):        at android.app.Activity.dispatchActivityResult(Activity.java:5423)
E/AndroidRuntime(17592):        at android.app.ActivityThread.deliverResults(ActivityThread.java:3361)

Crash after.

Thing is, if I try to login on facebook even just once on the application, the crash stops happening. There's something between trying to login on facebook and trying to show leaderboards or achievements. I hope this is just something I missed on my end, but I've spent two days on this trying everything, and it still won't work.

Thanks for the response.

from play-games-plugin-for-unity.

atelierxiris avatar atelierxiris commented on August 23, 2024

Okay I found out what I was doing wrong.

The problem lay entirely on FB side. PlayGames plugin breaks when used with FB 4.3.6 for some reason. Updated to 5.0.3 and retested with different parameters and it now works nicely.

Thanks for your time.

from play-games-plugin-for-unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.