owillo / little-fluffy-location-library

Automatically exported from code.google.com/p/little-fluffy-location-library
0 stars 0 forks source link

Find Crash in app due to LocationBroadcast service disconnected #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Don't known reason for crash step 

But in My Samsung galaxy s 4 location service it disable when this crash happen 

What is the expected output? What do you see instead?

Below is my crash 
:
09-26 15:00:21.656: E/AndroidRuntime(15726): FATAL EXCEPTION: main
09-26 15:00:21.656: E/AndroidRuntime(15726): Process: com.xxxxx.xxxxxxx, PID: 
15726
09-26 15:00:21.656: E/AndroidRuntime(15726): java.lang.IllegalStateException: 
Not connected. Call connect() and wait for onConnected() to be called.
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.google.android.gms.internal.hb.cn(Unknown Source)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.google.android.gms.internal.jg.b(Unknown Source)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.google.android.gms.internal.jg$c.cn(Unknown Source)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.google.android.gms.internal.jf.removeLocationUpdates(Unknown Source)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.google.android.gms.internal.jg.removeLocationUpdates(Unknown Source)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.google.android.gms.location.LocationClient.removeLocationUpdates(Unknown 
Source)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.littlefluffytoys.littlefluffylocationlibrary.LocationBroadcastService.onDisc
onnected(LocationBroadcastService.java:286)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.google.android.gms.internal.hb$c.onConnectionSuspended(Unknown Source)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.google.android.gms.internal.hc.ao(Unknown Source)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.google.android.gms.internal.hb$a.handleMessage(Unknown Source)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
android.os.Handler.dispatchMessage(Handler.java:102)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
android.os.Looper.loop(Looper.java:157)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
android.app.ActivityThread.main(ActivityThread.java:5356)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
java.lang.reflect.Method.invokeNative(Native Method)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
java.lang.reflect.Method.invoke(Method.java:515)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
09-26 15:00:21.656: E/AndroidRuntime(15726):    at 
dalvik.system.NativeStart.main(Native Method)

What version of the product are you using? On what operating system?

Phone Name : Samsung Galaxy S 4

OS: Kitkat 4.4.2

Library version that i am using v17 of little-fluffy-location

Let me known if you require more detail for identify issue root cause. 

Original issue reported on code.google.com by himanshu...@brainvire.com on 26 Sep 2014 at 9:40

GoogleCodeExporter commented 9 years ago
One more thing in LogCat i am getting below logs as well.

09-26 15:17:46.596: E/GmsClient(16296): Calling connect() while still 
connected, missing disconnect().

Do this will create any problem.

Original comment by himanshu...@brainvire.com on 26 Sep 2014 at 9:49

GoogleCodeExporter commented 9 years ago
Have you resolved the issue? I am facing the same problem

Original comment by umes...@mobinett.com on 8 Dec 2014 at 12:52

GoogleCodeExporter commented 9 years ago
No yet i have not find any solution as it happen very rare and step for produce 
this crash are also not fix .

Original comment by himanshu...@brainvire.com on 8 Dec 2014 at 1:02

GoogleCodeExporter commented 9 years ago
I ended up using v15 instead.

Original comment by QiaoLian...@gmail.com on 8 Dec 2014 at 1:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This line has caused my app to crash on my Android Samsung Nexus 4 to crash, 
when I closed the settings app on my device.
I recommend removing this line from the library, as it obviously should not be 
called once the locationclient has disconnected, as shown in the exception 
crash message.
Checking in the GooglePlayServicesClient.ConnectionCallbacks.onDisconnect 
documentation it states "When called, all requests have been canceled and no 
outstanding listeners will be executed.".
This means the location listener will not be called any further, therefore will 
not be needed to be removed.

Original comment by pelle...@gmail.com on 18 Feb 2015 at 6:15