Bug on MyLocationView.eventOnCurrentLocationIcon()

10 posts / 0 new
Last post
Josselin
Bug on MyLocationView.eventOnCurrentLocationIcon()

Hi,

Here a bug which occurs quite often.

STACK_TRACE=java.lang.NullPointerException: Attempt to read from field 'float android.graphics.PointF.x' on a null object reference
at com.mapbox.mapboxsdk.maps.widgets.MyLocationView.eventOnCurrentLocationIcon(MyLocationView.java:824)
at com.mapbox.mapboxsdk.maps.widgets.MyLocationView.onTouchEvent(MyLocationView.java:832)
at android.view.View.dispatchTouchEvent(View.java:9348)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2569)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2213)
at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2403)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1737)
at android.app.Activity.dispatchTouchEvent(Activity.java:2812)
at lf.dispatchTouchEvent(WindowCallbackWrapper.java:71)
at lf.dispatchTouchEvent(WindowCallbackWrapper.java:71)
at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2364)
at android.view.View.dispatchPointerEvent(View.java:9652)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4284)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4111)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3657)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3710)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3676)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3802)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3684)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3859)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3657)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3710)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3676)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3684)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3657)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6013)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5987)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5948)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6116)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5480)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

 

 

Regards.


MQBrianCoakley
Does the error affect the
Does the error affect the functionality of the sdk or your application? If so, what are the steps to reproduce the error?

Josselin
The whole app crask, it

The whole app crask, it happend when the gps signal he lost (I think) the gps marker goes very far away and the app crash
 


MQBrianCoakley
What version of the map sdk
What version of the map sdk are you using?

Josselin
1.3.2

1.3.2


MQBrianCoakley
Thanks for the information.
Thanks for the information. This has been sent on to the development team to address.

infosync
Hi! I'm having the same issue

Hi! I'm having the same issue. Any news about it?


MQBrianCoakley
I believe last year's crash
I believe last year's crash was addressed. What version are you seeing the crash? Are the steps to reproduce the crash the same? If not, what is happening before the crash happens?

infosync
I'm using the same version: 1

I'm using the same version: 1.3.2. I can't reproduce this issue, but crashlytics from firebase, reported me this issue in the last update from my app. I'll share my console log with you.

I think is the same problem as Josselin reported. The last crash was in March 27, 2018, 3:15:00 PM. I hope you can help me to fix it.

Fatal Exception: java.lang.NullPointerException

Attempt to read from field 'float android.graphics.PointF.x' on a null object reference

com.mapbox.mapboxsdk.maps.widgets.MyLocationView.eventOnCurrentLocationIcon (MyLocationView.java:824)

(MyLocationView.java:832)

android.view.View.dispatchTouchEvent (View.java:9506)

android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2666)

android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)

android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2666)

android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)

android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2666)

android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)

android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2666)

android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)

android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2666)

android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)

android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2666)

android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)

android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2666)

android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)

com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent (PhoneWindow.java:2491)

com.android.internal.policy.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1810)

android.app.Activity.dispatchTouchEvent (Activity.java:2818)

android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent (WindowCallbackWrapper.java:68)

com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent (PhoneWindow.java:2452)

android.view.View.dispatchPointerEvent (View.java:9737)

android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent (ViewRootImpl.java:4789)

android.view.ViewRootImpl$ViewPostImeInputStage.onProcess (ViewRootImpl.java:4647)

android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4147)

android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4200)

android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4166)

android.view.ViewRootImpl$AsyncInputStage.forward (ViewRootImpl.java:4312)

android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4174)

android.view.ViewRootImpl$AsyncInputStage.apply (ViewRootImpl.java:4369)

android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4147)

android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4200)

android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4166)

android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4174)

android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4147)

android.view.ViewRootImpl.deliverInputEvent (ViewRootImpl.java:6606)

android.view.ViewRootImpl.doProcessInputEvents (ViewRootImpl.java:6580)

android.view.ViewRootImpl.enqueueInputEvent (ViewRootImpl.java:6523)

android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent (ViewRootImpl.java:6778)

android.view.InputEventReceiver.dispatchInputEvent (InputEventReceiver.java:185)

android.os.MessageQueue.nativePollOnce (MessageQueue.java)

android.os.MessageQueue.next (MessageQueue.java:328)

android.os.Looper.loop (Looper.java:164)

android.app.ActivityThread.main (ActivityThread.java:5811)

java.lang.reflect.Method.invoke (Method.java)

com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:802)

com.android.internal.os.ZygoteInit.main (ZygoteInit.java:692)


MQBrianCoakley
Thanks for the information. I
Thanks for the information. I'm passing this on to the develpment team to assess.