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

Crash приложения на Android после zoom out/zoom in #373

Open
BrainLUX opened this issue Jun 20, 2024 · 2 comments
Open
Labels
native_bug Bug in underlying iOS/Android library

Comments

@BrainLUX
Copy link

Добрый день! Столкнулся с падением приложения с картами после определенных действий на Android.

Версия flutter: 3.22.2
Версия mapkit: 4.1.0

Пред условие: наличие кластера с маркерами (без кластера crash не случается).

  1. Дождаться загрузки карты
  2. Выкл/Вкл устройства (имеется в виду выключение экрана)
  3. Zoom out / Zoom in на карте
  4. Выкл/Вкл устройства
  5. Zoom out

После этого всегда случается crash со следующими логами:

Логи
D/ViewRootImpl@2a43825[MainActivity]( 8282): ViewPostIme pointer 0
W/an.name.stag( 8282): 0xebadde09 skipped times: 0
F/libc    ( 8282): Fatal signal 11 (SIGSEGV), code -6 (SI_TKILL) in tid 8949 (GLThread 20532), pid 8282 (an.name.stage)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/dreamltexx/dreamlte:9/PPR1.180610.011/G950FXXUCDVG4:user/release-keys'
Revision: '10'
ABI: 'arm64'
pid: 8282, tid: 8949, name: GLThread 20532  >>> ru.package.name.stage <<<
signal 11 (SIGSEGV), code -6 (SI_TKILL), fault addr --------
    x0  000000749d89f640  x1  000000746bb146c0  x2  000000745fb0aac0  x3  0000000000000000
    x4  0000000000000000  x5  00000074f6c7fc60  x6  00000074f6c7f9d8  x7  0000000000000000
    x8  41c3780000000000  x9  000000746cf5f3b8  x10 0000000000000000  x11 000000745fb0aac0
    x12 00000074ea05e6d0  x13 8000000000000000  x14 0000000000000006  x15 0000000000000000
    x16 00000074ea0e6890  x17 0000007598a21d30  x18 000000000000000a  x19 0000007473b80ee0
    x20 00000074f6c7fc60  x21 000000745fb0aac0  x22 00000074f6c7fc60  x23 000000746bb146c0
    x24 00000074e2248e80  x25 00000074f6c81588  x26 00000074effca568  x27 0000000000000130
    x28 0000000000000090  x29 00000074f6c7f760
    sp  00000074f6c7f760  lr  00000074e9898e38  pc  00000074e9898e3c
backtrace:
    #00 pc 0000000000b46e3c  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000)
    #01 pc 0000000000b78044  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000)
    #02 pc 0000000000bc37f8  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000)
    #03 pc 0000000000d6af20  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000)
    #04 pc 0000000000d6b024  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000)
    #05 pc 0000000000d6afe8  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000)
    #06 pc 0000000000dfa684  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000)
    #07 pc 0000000000d91f9c  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000)
    #08 pc 0000000000a3dba8  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000)
    #09 pc 0000000000a464ec  /data/app/ru.package.name.stage-iXOJsVAHPixsA-zs_ERflQ==/base.apk (offset 0x11675000) (Java_com_yandex_runtime_view_internal_PlatformGLRenderer_renderImpl+88)
    #10 pc 000000000056b7e0  /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)
    #11 pc 000000000005077c  /dev/ashmem/dalvik-jit-code-cache_8282_8282 (deleted) (com.yandex.runtime.view.internal.PlatformGLRenderer.onDrawFrame+156)
    #12 pc 0000000000045920  /dev/ashmem/dalvik-jit-code-cache_8282_8282 (deleted) (android.opengl.GLSurfaceView$GLThread.guardedRun+2960)
    #13 pc 0000000000562788  /system/lib64/libart.so (art_quick_invoke_stub+584)
    #14 pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
    #15 pc 00000000002865e8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
    #16 pc 00000000002805a4  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
    #17 pc 0000000000532d18  /system/lib64/libart.so (MterpInvokeDirect+296)
    #18 pc 0000000000554e94  /system/lib64/libart.so (ExecuteMterpImpl+14484)
    #19 pc 0000000000c3d04c  /system/framework/boot-framework.vdex (android.opengl.GLSurfaceView$GLThread.run+48)
    #20 pc 000000000025a0a0  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1209744080+496)
    #21 pc 0000000000522118  /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
    #22 pc 000000000056b8fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
    #23 pc 0000000000562788  /system/lib64/libart.so (art_quick_invoke_stub+584)
    #24 pc 00000000000d0140  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
    #25 pc 0000000000468a78  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
    #26 pc 0000000000469b40  /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+424)
    #27 pc 0000000000495438  /system/lib64/libart.so (art::Thread::CreateCallback(void*)+1120)
    #28 pc 0000000000084df0  /system/lib64/libc.so (__pthread_start(void*)+208)
    #29 pc 0000000000023a8c  /system/lib64/libc.so (__start_thread+68)
Lost connection to device.
the Dart compiler exited unexpectedly.

Flutter doctor, на всякий случай:

[!] Flutter (Channel stable, 3.22.1, on macOS 14.0 23A344 darwin-arm64, locale ru-RU)
    • Flutter version 3.22.1 on channel stable at /Users/aleksandr/fvm/versions/3.22.1
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.1.2/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/aleksandr/fvm/versions/3.22.1. Consider adding /Users/aleksandr/fvm/versions/3.22.1/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a14f74ff3a (4 недели назад), 2024-05-22 11:08:21 -0500
    • Engine revision 55eae6864b
    • Dart version 3.4.1
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/aleksandr/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/aleksandr/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.15.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] Network resources
    • All expected network resources are available.


@khamidov11
Copy link

The same error happened to me, but not with these actions. I did a hot restart two or three times, and then this crash occurred (not always, but it happened several times).
My device is samsung S22 running Android 14.
Flutter version: 3.22.2
MapKit version: 4.1.0

@DCrow
Copy link
Collaborator

DCrow commented Jul 18, 2024

Добрый день!

@BrainLUX Похоже это такая же проблема, что и в yandex/mapkit-android-demo#327 yandex/mapkit-android-demo#370
Придется ждать новую версию от разработчиков Яндекс.

@aha-program Your problem seems to be related to flutter/flutter#151032 Which should be fixed in the current flutter master.

@DCrow DCrow added the native_bug Bug in underlying iOS/Android library label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
native_bug Bug in underlying iOS/Android library
Projects
None yet
Development

No branches or pull requests

3 participants