Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

GPGS plugin errors & crashes
Started by mateusz8 Jun 02 2018 02:15 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mateusz8

[GLOBAL: userInfoPane.html]
mateusz8
  • Enthusiast

  • 31 posts
  • Corona SDK

Hello,

 

Since implementing the new Google Play Games plugin I've started getting multiple crash and error reports.

 

Here are the crashes from play developer console (app build compiled with 2018.3308):

java.lang.NullPointerException: 
  at com.ansca.corona.CoronaActivity.getOverlayView (CoronaActivity.java:971)
  at plugin.gpgs.Connector$1.run (Connector.java:61)
  at android.os.Handler.handleCallback (Handler.java:733)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:146)
  at android.app.ActivityThread.main (ActivityThread.java:5598)
  at java.lang.reflect.Method.invokeNative (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1283)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1099)
  at dalvik.system.NativeStart.main (Native Method)

I get literally hundreds of these errors.

 

There are also problems with the ViewTreeObserver class after calling the login function.

Here's the traceback from the gameanalytics:

1.0.6c | scenes.main | overlays.messagebox | 
	\Clicker\gameServices\GPGS.lua:47: java.lang.IllegalStateException: This ViewTreeObserver is not alive, call getViewTreeObserver() again
	[C]: ?
	[C]: in function 'login'
	/Clicker\gameServices\GPGS.lua:47: in function 'login'
	/Clicker\gameServices\GameServices.lua:81: in function 'login'
	/Clicker\gameServices\GameServices.lua:102: in function 'listener'
	/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/timer/timer.lua:210: in function 'method'
	/Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function </Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:190>

GPGS.lua file:

https://pastebin.com/fnb29w72

 

Does anyone have any ideas how to fix these errors?



[TOPIC: post.html]
#2

mateusz8

[GLOBAL: userInfoPane.html]
mateusz8
  • Enthusiast

  • 31 posts
  • Corona SDK

Any updates on this? The ViewTreeObserver error din't happen in the previous version of the plugin.



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,865 posts
  • Corona Staff

I'm really confused by this. You talk about a new GPGS plugin and a previous version of the plugin. The GPGS plugin has not been updated since March of 2018.

 

Can you clarify?

 

When did these problems start?

Are the specific to a version of Android?

 

Rob



[TOPIC: post.html]
#4

mateusz8

[GLOBAL: userInfoPane.html]
mateusz8
  • Enthusiast

  • 31 posts
  • Corona SDK

I'm really confused by this. You talk about a new GPGS plugin and a previous version of the plugin. The GPGS plugin has not been updated since March of 2018.

 

Can you clarify?

 

When did these problems start?

Are the specific to a version of Android?

 

Rob

 

By the previous version, I mean the legacy gameNetwork-google plugin. The problems started appearing after updating it to this version.

 

I have managed to get the more detailed error report:

https://pastebin.com/GKP3zt9b




[topic_controls]
[/topic_controls]