Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException при изменении размера компонента с картой. #240

Closed
neyron91 opened this issue Dec 12, 2016 · 7 comments

Comments

@neyron91
Copy link

Здравствуйте. Проблема актуальна только при использовании тега "static". Также проблема проявляется только на определенных версиях adnroid, например на 4.4.x и 5.1.0. На 6.0.0 и 4.1.1 работает корректно.
Стектрейс:

java.lang.ArrayIndexOutOfBoundsException: length=4; index=4
                                                                  at ru.yandex.yandexmapkit.map.TiledSurface.d(Unknown Source)
                                                                  at ru.yandex.yandexmapkit.map.TiledSurface.a(Unknown Source)
                                                                  at ru.yandex.yandexmapkit.MapController.sizeChanged(Unknown Source)
                                                                  at ru.yandex.yandexmapkit.MapStaticView.onSizeChanged(Unknown Source)
                                                                  at android.view.View.sizeChange(View.java:14932)
                                                                  at android.view.View.setFrame(View.java:14905)
                                                                  at android.view.View.layout(View.java:14813)
                                                                  at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1695)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                                                                  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
                                                                  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
                                                                  at android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                                                                  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
                                                                  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
                                                                  at android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                                                                  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
                                                                  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
                                                                  at android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                                                                  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                                                                  at android.view.View.layout(View.java:14817)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                  at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1983)
                                                                  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1740)
                                                                  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
                                                                  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
                                                                  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
                                                                  at android.view.Choreographer.doCallbacks(Choreographer.java:574)
                                                                  at android.view.Choreographer.doFrame(Choreographer.java:544)
                                                                  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
                                                                  at android.os.Handler.handleCallback(Handler.java:733)
                                                                  at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                  at android.os.Looper.loop(Looper.java:136)
                                                                  at android.app.ActivityThread.main(ActivityThread.java:5001)
                                                                  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:785)
                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
                                                                  at dalvik.system.NativeStart.main(Native Method)

Как проявляется: Есть две "панели", сверху карта, снизу в контейнере содержится EditText. При нажатии на EditText появляется клавиатура, тем самым сдвигается нижний контейнер выше, тем самым уменьшая в размерах карту. Если нижний контейнер полностью вытесняет карту, то вылетает ArrayIndexOutOfBoundsException (при то что значения length все время разное).

@saint13
Copy link

saint13 commented Dec 12, 2016 via email

@saint13
Copy link

saint13 commented Dec 26, 2016

Проверяйте

@saint13 saint13 closed this as completed Dec 26, 2016
@neyron91
Copy link
Author

Ошибка повторяется на 5.0.0, 5.1.0, 4.4.4, 4.3.
java.lang.ArrayIndexOutOfBoundsException: length=67081; index=67081 at ru.yandex.yandexmapkit.map.TiledSurface.d(Unknown Source) at ru.yandex.yandexmapkit.map.TiledSurface.a(Unknown Source) at ru.yandex.yandexmapkit.MapController.sizeChanged(Unknown Source) at ru.yandex.yandexmapkit.MapStaticView.onSizeChanged(Unknown Source) at android.view.View.sizeChange(View.java:15786)

На 4.2.2, 4.1.1, 6.0.0 все ок

@neyron91
Copy link
Author

neyron91 commented Jan 9, 2017

Результаты проверки: ошибка все равно повторяется, см. предыдущий комментарий.

@saint13
Copy link

saint13 commented Jan 9, 2017

Спасибо будем смотреть.

@saint13 saint13 reopened this Jan 9, 2017
@saint13
Copy link

saint13 commented Jan 9, 2017

Если Вам вышлю тестовую версию с логами, сможете прислать логи?

@neyron91
Copy link
Author

neyron91 commented Jan 9, 2017

Да, смогу, высылайте.

@saint13 saint13 closed this as completed Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants