kobakei / unity-gcm

Unity plugin for Google Cloud Messaging (GCM)
59 stars 34 forks source link

crash when no internet (and not yet registered?) #20

Open PetrBodnar opened 9 years ago

PetrBodnar commented 9 years ago

We got crash in our app. Crash occurs after we install app , trying to run it, and wi-fi is off. If we turn wi-fi on, then there is on crash. And after that, if we turn wi-fi off and launches our app, there is no crash. So we think it can be related to Register

06-18 10:32:26.555: W/SocketClient(1691): write error (Broken pipe) 06-18 10:32:27.486: V/WindowOrientationListener(2052): nearestRotation : 0 Angle: 358 tilt: 59 06-18 10:32:27.636: V/GCMBroadcastReceiver(15883): onReceive: com.google.android.gcm.intent.RETRY 06-18 10:32:27.636: V/UnityGCMBroadcastReceiver(15883): getGCMIntentServcieClassName 06-18 10:32:27.636: V/GCMBroadcastReceiver(15883): GCM IntentService class: com.kskkbys.unitygcmplugin.UnityGCMIntentService 06-18 10:32:27.636: V/GCMBaseIntentService(15883): Acquiring wakelock 06-18 10:32:27.636: V/AlarmManager(2052): waitForAlarm result :8 06-18 10:32:27.666: V/GCMBaseIntentService(15883): Intent service name: GCMIntentService-DynamicSenderIds-2 06-18 10:32:27.666: V/GCMBaseIntentService(15883): Releasing wakelock 06-18 10:32:27.666: W/dalvikvm(15883): threadid=25: thread exiting with uncaught exception (group=0x40d552a0) 06-18 10:32:27.666: E/AndroidRuntime(15883): FATAL EXCEPTION: IntentService[GCMIntentService-DynamicSenderIds-2] 06-18 10:32:27.666: E/AndroidRuntime(15883): java.lang.Error: FATAL EXCEPTION [IntentService[GCMIntentService-DynamicSenderIds-2]] 06-18 10:32:27.666: E/AndroidRuntime(15883): Unity version : 4.6.5p4 06-18 10:32:27.666: E/AndroidRuntime(15883): Device model : samsung GT-I8190 06-18 10:32:27.666: E/AndroidRuntime(15883): Device fingerprint: samsung/goldenxx/golden:4.1.2/JZO54K/I8190XXAMG1:user/release-keys 06-18 10:32:27.666: E/AndroidRuntime(15883): Caused by: java.lang.IllegalStateException: sender id not set on constructor 06-18 10:32:27.666: E/AndroidRuntime(15883): at com.google.android.gcm.GCMBaseIntentService.getSenderIds(GCMBaseIntentService.java:125) 06-18 10:32:27.666: E/AndroidRuntime(15883): at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:237) 06-18 10:32:27.666: E/AndroidRuntime(15883): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) 06-18 10:32:27.666: E/AndroidRuntime(15883): at android.os.Handler.dispatchMessage(Handler.java:99) 06-18 10:32:27.666: E/AndroidRuntime(15883): at android.os.Looper.loop(Looper.java:137) 06-18 10:32:27.666: E/AndroidRuntime(15883): at android.os.HandlerThread.run(HandlerThread.java:60) 06-18 10:32:27.716: E/android.os.Debug(2052): !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error 06-18 10:32:27.736: I/dumpstate(15987): begin 06-18 10:32:31.039: D/BatteryService(2052): update start 06-18 10:32:31.049: D/BatteryService(2052): level:98 scale:100 status:2 health:2 present:true voltage: 4301 temperature: 345 technology: Li-ion AC powered:false USB powered:true icon:17303270 invalid charger:0 online:4 charge type:0 current avg:62 06-18 10:32:31.710: W/Unity(15883): Timeout while trying to pause the Unity Engine.