Comments (3)
Can you provide more details about the crashes? What gets printed to the logs when the crashes happen?
from play-games-plugin-for-unity.
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.
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)
- Unity splash Auto Login
- [Bug] Non-secure network connections error
- How would this plugin behave when granular permissions of Google OAuth is enabled? HOT 6
- Can someone share sample for google play login? HOT 2
- Authentication failed. Prompt shows 400 Bad Request
- Sign in doesn't work. Returning an error code. HOT 11
- Only One Player data Saved
- Automated testing isn't possible with auto sign in as it hangs on the create profile screen
- Cloud saves sometimes deleted?
- `SavedGameMetadata` is closed after `CommitUpdate` HOT 1
- Is it possible to do a silent login with play games platform? HOT 1
- Errors on install from Package Manager (missing .meta files) HOT 4
- Cannot create a new save data file with OpenWithAutomaticConflictResolution HOT 1
- Issue getting Saved Games to work on device HOT 3
- Exception java.lang.NullPointerException: null reference at com.google.android.gms.games.ui.signinflow.SignInChimeraActivity.F HOT 15
- How to validate an auth token in my custom backend? HOT 1
- When uploading to google play get message (Update your Play Core Maven dependency to an Android 14 compatible version! ) HOT 5
- How to map Google Services Leaderboard user id to current user?
- Google play serices doesn't call authentificate function HOT 1
- Not up to date for google requirements HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-games-plugin-for-unity.