- Home /
game crashing/force closing HELP???
Hello all,
I have a simple mobile grid game for which I added google play games services for leaderboards access. I can properly authenticate the game whenever I hit the sign in button, but my issue is that as soon as the user gets successfully signed in the game crashes and force closes on android. The code seems to be fine and I am ensuring that I call :
void Awake () {
// recommended for debugging:
PlayGamesPlatform.DebugLogEnabled = true;
// Activate the Google Play Games platform
PlayGamesPlatform.Activate();
}
before i try to authenticate the local user. I have no idea what is happening. Can anyone help me pleeeeaaassseeee????? i'm desperate here. This is my logcat if it would be of any help :
I/ActivityManager( 3039): Process com.Kadi.Flip (pid 20200) (adj 0) has died.
I/WindowState( 3039): WIN DEATH: Window{45c808c0 u0 com.Kadi.Flip/com.unity3d.pl
ayer.UnityPlayerNativeActivity}
W/WindowManager( 3039): Force-removing child win Window{45c877d0 u0 SurfaceView}
from container Window{45c808c0 u0 com.Kadi.Flip/com.unity3d.player.UnityPlayerN
ativeActivity}
I/SurfaceFlinger( 2552): id=1866 Removed TurfaceView (6/10)
I/SurfaceFlinger( 2552): id=1866 Removed TurfaceView (-2/10)
I/Sensors ( 3039): Acc old sensor_state 1, new sensor_state : 0 en : 0
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
I/SurfaceFlinger( 2552): id=1865 Removed VnityPlayer (6/9)
I/SurfaceFlinger( 2552): id=1865 Removed VnityPlayer (-2/9)
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
W/ContextImpl( 3039): Calling a method in the system process without a qualified
user: android.app.ContextImpl.sendBroadcast:1482 com.android.server.am.Activity
Stack.removeHistoryRecordsForAppLocked:3704 com.android.server.am.ActivityStack.
handleAppDiedLocked:4468 com.android.server.am.ActivityStackSupervisor.handleApp
DiedLocked:3004 com.android.server.am.ActivityManagerService.handleAppDiedLocked
:4556
W/ContextImpl( 3039): Calling a method in the system process without a qualified
user: android.app.ContextImpl.sendBroadcast:1468 com.android.internal.policy.im
pl.PhoneWindowManager.notifyToSSRM:5455 com.android.internal.policy.impl.PhoneWi
ndowManager.access$200:168 com.android.internal.policy.impl.PhoneWindowManager$P
olicyHandler.handleMessage:696 android.os.Handler.dispatchMessage:102
W/ActivityManager( 3039): Force removing ActivityRecord{44c35e58 u0 com.Kadi.Fli
p/com.unity3d.player.UnityPlayerNativeActivity t102}: app died, no saved state
V/AudioFlinger( 2555): presentationComplete() mPresentationCompleteFrames 0 fram
esWritten 37440
V/AudioFlinger( 2555): presentationComplete() reset: mPresentationCompleteFrames
41280 audioHalFrames 3840
D/dalvikvm(11487): GC_FOR_ALLOC freed 1281K, 20% free 20934K/25940K, paused 39ms
, total 40ms
V/AudioFlinger( 2555): presentationComplete() mPresentationCompleteFrames 41280
framesWritten 37440
V/AudioFlinger( 2555): presentationComplete() mPresentationCompleteFrames 41280
framesWritten 38400
V/AudioFlinger( 2555): presentationComplete() mPresentationCompleteFrames 41280
framesWritten 38400
V/AudioFlinger( 2555): presentationComplete() mPresentationCompleteFrames 41280
framesWritten 39360
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
V/AudioFlinger( 2555): presentationComplete() mPresentationCompleteFrames 41280
framesWritten 39360
V/AudioFlinger( 2555): presentationComplete() mPresentationCompleteFrames 41280
framesWritten 40320
V/AudioFlinger( 2555): presentationComplete() mPresentationCompleteFrames 41280
framesWritten 40320
W/WindowManager( 3039): Failed looking up window
W/WindowManager( 3039): java.lang.IllegalArgumentException: Requested window and
roid.os.BinderProxy@4380656 does not exist
W/WindowManager( 3039): at com.android.server.wm.WindowManagerService.wi
ndowForClientLocked(WindowManagerService.java:9706)
W/WindowManager( 3039): at com.android.server.wm.WindowManagerService.wi
ndowForClientLocked(WindowManagerService.java:9697)
W/WindowManager( 3039): at com.android.server.wm.WindowState$DeathRecipi
ent.binderDied(WindowState.java:1323)
W/WindowManager( 3039): at android.os.BinderProxy.sendDeathNotice(Binder
.java:493)
W/WindowManager( 3039): at dalvik.system.NativeStart.run(Native Method)
D/PointerIcon( 3039): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
D/PointerIcon( 3039): setMouseCustomIcon IconType is same.101
D/PointerIcon( 3039): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 fla
g:0
D/PointerIcon( 3039): setHoveringSpenCustomIcon IconType is same.1
V/AudioFlinger( 2555): presentationComplete() mPresentationCompleteFrames 41280
framesWritten 41280
V/AudioFlinger( 2555): presentationComplete() session 511 complete: framesWritte
n 41280
I/WindowState( 3039): WIN DEATH: null
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
I/SurfaceFlinger( 2552): id=1863 Removed EimLayer (3/8)
I/SurfaceFlinger( 2552): id=1862 Removed EimLayer (6/7)
I/SurfaceFlinger( 2552): id=1863 Removed EimLayer (-2/7)
I/SurfaceFlinger( 2552): id=1862 Removed EimLayer (-2/7)
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/Zygote ( 2553): Process 20200 terminated by signal (11)
V/LvOutput( 2555): initCheck: 0
V/LvOutput( 2555): detachEffects: detach processing for output 2, stream 3, sess
ion 511
V/LvOutput( 2555): detachEffects: no output processing was attached to this stre
am
V/AudioFlinger( 2555): PlaybackThread::Track destructor
V/AudioPolicyManagerBase( 2555): stopOutput() output 2, stream 3, session 511
V/AudioPolicyManagerBase( 2555): changeRefCount() stream 3, count 0
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
W/ContextImpl( 3039): Calling a method in the system process without a qualified
user: android.app.ContextImpl.sendBroadcast:1482 com.android.server.am.Activity
Stack.resumeTopActivityLocked:2183 com.android.server.am.ActivityStackSupervisor
.resumeTopActivitiesLocked:3110 com.android.server.am.ActivityStackSupervisor.re
sumeTopActivitiesLocked:3082 com.android.server.am.ActivityManagerService.handle
AppDiedLocked:4569
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
V/AudioPolicyManagerBase( 2555): getNewDevice() selected device 0
V/AudioPolicyManagerBase( 2555): setOutputDevice() output 2 device 0000 force 0
delayMs 160
V/AudioPolicyManagerBase( 2555): setOutputDevice() prevDevice (0002)
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
W/AudioPolicyManagerBase( 2555): stream type [13], return media strategy
V/AudioPolicyManagerBase( 2555): setOutputDevice() setting same device 0000 or n
ull device for output 2
V/AudioPolicyManagerBase( 2555): getOutputsForDevice device 0002 -> 0002
V/AudioPolicyManagerBase( 2555): getOutputsForDevice device 0002 -> 0002
V/AudioPolicyManagerBase( 2555): releaseOutput() 2
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
V/SmartFaceService - 3rd party pause( 3039): onReceive [android.intent.action.AC
TIVITY_STATE/com.Kadi.Flip/pause]
V/SmartFaceService - 3rd party pause( 3039): onReceive [android.intent.action.AC
TIVITY_STATE/com.sec.android.app.launcher/resume]
D/SurfaceWidgetView( 3616): destroyHardwareResources():1130484136
D/SurfaceWidgetView( 3616): destroyHardwareResources():1130441488
D/SurfaceWidgetView( 3616): destroyHardwareResources():1137777120
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/Launcher( 3616): onRestart, Launcher: 1128446000
D/Launcher( 3616): onStart, Launcher: 1128446000
D/Launcher.HomeView( 3616): onStart
D/Launcher( 3616): onResume, Launcher: 1128446000
D/Launcher.HomeView( 3616): onResume
D/SSRMv2:AirViewOnOff( 3039): DeviceInfo:: 00000000000
D/SSRMv2:AirViewOnOff( 3039): SettingsAirViewInfo:: 000100000
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/AbsListView( 3616): onVisibilityChanged() is called, visibility : 0
D/AbsListView( 3616): unregisterIRListener() is called
D/AbsListView( 3616): onVisibilityChanged() is called, visibility : 0
D/AbsListView( 3616): unregisterIRListener() is called
D/SurfaceWidgetClient$ISurfaceWidgetStub( 4207): [123491/1] Surface widget visib
ility changed visibility = true on instance = 1
D/AbsListView( 3616): onVisibilityChanged() is called, visibility : 0
D/AbsListView( 3616): unregisterIRListener() is called
D/AbsListView( 3616): onVisibilityChanged() is called, visibility : 0
D/AbsListView( 3616): unregisterIRListener() is called
D/SurfaceWidget.Renderer( 4207): [123491/1] SurfaceWidgetRenderer waiting done:
1 (Thread[Thread-147,5,main])
D/SurfaceWidgetClient$ISurfaceWidgetStub( 4182): [123491/1] Surface widget visib
ility changed visibility = true on instance = 1
D/SurfaceWidget.Renderer( 4207): [123491/1] SurfaceWidget drawing first frame
D/SurfaceWidget.Renderer( 4182): [123491/1] SurfaceWidgetRenderer waiting done:
1 (Thread[Thread-146,5,main])
D/SurfaceWidget.Renderer( 4182): [123491/1] SurfaceWidget drawing first frame
D/SurfaceWidgetClient$ISurfaceWidgetStub( 4194): [123491/1] Surface widget visib
ility changed visibility = true on instance = 1
D/SurfaceWidget.Renderer( 4182): [123491/1] SurfaceWidgetRenderer waiting: 1 (Th
read[Thread-146,5,main])
D/SurfaceWidget.Renderer( 4194): [123491/1] SurfaceWidgetRenderer waiting done:
1 (Thread[Thread-145,5,main])
D/SurfaceWidget.Renderer( 4194): [123491/1] SurfaceWidget drawing first frame
D/SurfaceWidget.Renderer( 4194): [123491/1] SurfaceWidgetRenderer waiting: 1 (Th
read[Thread-145,5,main])
D/SurfaceWidget.Renderer( 4207): [123491/1] SurfaceWidgetRenderer waiting: 1 (Th
read[Thread-147,5,main])
D/FavoriteProvider(16128): onReceive(), com.sec.android.intent.action.HOME_RESUM
E
I/SurfaceFlinger( 2552): id=1870 createSurf (1080x1920),1 flag=4, Mauncher
I/SpenGestureManager( 3039): setFocusWindow21010
W/WindowManager( 3039): Failed looking up window
W/WindowManager( 3039): java.lang.IllegalArgumentException: Requested window and
roid.os.BinderProxy@4383e8d does not exist
W/WindowManager( 3039): at com.android.server.wm.WindowManagerService.wi
ndowForClientLocked(WindowManagerService.java:9706)
W/WindowManager( 3039): at com.android.server.wm.WindowManagerService.ad
dWindow(WindowManagerService.java:2728)
W/WindowManager( 3039): at com.android.server.wm.Session.addToDisplay(Se
ssion.java:167)
W/WindowManager( 3039): at android.view.IWindowSession$Stub.onTransact(I
WindowSession.java:111)
W/WindowManager( 3039): at com.android.server.wm.Session.onTransact(Sess
ion.java:130)
W/WindowManager( 3039): at android.os.Binder.execTransact(Binder.java:40
4)
W/WindowManager( 3039): at dalvik.system.NativeStart.run(Native Method)
W/WindowManager( 3039): Attempted to add window with token that is not a window:
android.os.BinderProxy@4383e8d0. Aborting.
D/STATUSBAR-StatusBarManagerService( 3039): manageDisableList what=0x0 pkg=Windo
wManager.LayoutParams
D/EnterpriseDeviceManager( 3039): ContainerId: 0
E/BasePopup(11487): Cannot show the popup as the given window token is not valid
. Either the given view is not attached to a window or you tried to connect the
GoogleApiClient in the same lifecycle step as the creation of the GoogleApiClien
t. See GoogleApiClient.Builder.create() and GoogleApiClient.connect() for more
information.
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/PointerIcon( 3039): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
D/PointerIcon( 3039): setMouseCustomIcon IconType is same.101
D/PointerIcon( 3039): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 fla
g:0
D/PointerIcon( 3039): setHoveringSpenCustomIcon IconType is same.1
D/Mms/UIEventReceiver(15257): ui event
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
V/TaskCloserActivity( 9517): TaskCloserActivity onReceive() - com.sec.android.in
tent.action.HOME_RESUME
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/AbsListView( 3616): unregisterIRListener() is called
D/AbsListView( 3616): unregisterIRListener() is called
D/AbsListView( 3616): unregisterIRListener() is called
E/EnterpriseContainerManager( 3039): ContainerPolicy Service is not yet ready!!!
D/EnterpriseDeviceManager( 3039): ContainerId: 0
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
W/LicenseLogService( 3039): log() is called by non admin
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/EnterpriseDeviceManager( 3039): ContainerId: 0
W/ContextImpl( 3039): Calling a method in the system process without a qualified
user: android.app.ContextImpl.sendBroadcast:1468 com.android.server.InputMethod
ManagerService$4.run:2759 java.lang.Thread.run:841 m of call stack>
D/STATUSBAR-StatusBarManagerService( 3039): manageDisableList what=0x0 pkg=Windo
wManager.LayoutParams
W/InputMethodManagerService( 3039): Got RemoteException sending setActive(false)
notification to pid 20200 uid 10261
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
W/Binder ( 7763): Caught a RuntimeException from the binder stub implementation
.
W/Binder ( 7763): java.lang.NullPointerException
W/Binder ( 7763): at android.inputmethodservice.IInputMethodWrapper.setSes
sionEnabled(IInputMethodWrapper.java:311)
W/Binder ( 7763): at com.android.internal.view.IInputMethod$Stub.onTransac
t(IInputMethod.java:129)
W/Binder ( 7763): at android.os.Binder.execTransact(Binder.java:404)
W/Binder ( 7763): at dalvik.system.NativeStart.run(Native Method)
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/PhoneStatusBar( 3330): Status bar WINDOW_STATE_SHOWING
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/SSRMv2:CustomFrequencyManagerService( 3039): releaseDVFSLockLocked : Getting L
ock type frm List : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 3039
tag : ACTIVITY_RESUME_BOOSTER@4
W/ActivityManager( 3039): mDVFSHelper.release()
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/SSRMv2:CustomFrequencyManagerService( 3039): acquireDVFSLockLocked : type : DV
FS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 3039 pkgName : ACTIVITY_RE
SUME_BOOSTER@7
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
D/KeyguardViewMediator( 3330): setHidden false
D/KeyguardUpdateMonitor( 3330): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 3330): handleKeyguardVisibilityChanged(1)
V/AlarmManager( 3039): [TM] NetInterval=340000
D/SSRMv2:CustomFrequencyManagerService( 3039): releaseDVFSLockLocked : Getting L
ock type frm List : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 3039
tag : ACTIVITY_RESUME_BOOSTER@7
D/knox ( 3601): doInBackground
D/knox ( 3601): resetNestedValue()
D/STATUSBAR-NetworkController( 3330): refreshSignalCluster: data=0 bt=false
D/STATUSBAR-IconMerger( 3330): checkOverflow(504), More:false, Req:false Child:2
W/EDMNativeHelper( 2545): EDMNativeHelperService is published
D/AudioHardwareTinyALSA( 2555): standby waiting for out autolock
D/AudioHardwareTinyALSA( 2555): Entering AudioStreamOutALSA standby mode nStream
OutputType:0
I/AudioHardwareTinyALSA( 2555): Close mHandle:b82ef1b8
D/STATUSBAR-NetworkController( 3330): refreshSignalCluster: data=0 bt=false
D/STATUSBAR-IconMerger( 3330): checkOverflow(504), More:false, Req:false Child:2
What do you mean? It's a 2d game... Not sure if that's what you're asking.
Do you export your project and build it externally to incorporate the Play API?
Yes, I exported the project to the phone and then logged in to google, but it always crashes as soon as the user logs in. I really am stumped here...
Answer by mealone · Jul 10, 2015 at 03:30 AM
fixed. was calling cloud save in the initialization, and I did not have that set up.
Your answer
Follow this Question
Related Questions
[Crash] Google Play Games Signin Crash (Device Specific) 0 Answers
Google play services not working in my scripts? 0 Answers
Signing into Google Play Game Services Crashes App 0 Answers
Google Play Games - game crashes after closing leaderboard 0 Answers
Play Game Services not working with a published game 0 Answers