-
-
Notifications
You must be signed in to change notification settings - Fork 338
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 on rotating with Android Emulator #2371
Comments
I am able to reproduce this, but since the crash happens in OpenGL code, this should be reported upstream. Feel free to re-open if this also shows up on real devices. |
Fair enough, though note that I do not have the necessary insights to be able to create a bug report upstream. They will want to know which OpenGL function exactly, given which parameters, causes a crash. Pointing to that authors of some library are sure(?) that it is a problem in the emulator rather than in their own code won't do the trick, even the most well-meaning and committed maintainers would not accept a bug report like that. |
@westnordost Maybe a stack trace is enough for them, it's worth a shot. But I think Google is well aware of these problems with graphics emulation. I think it will get better over time, but we cannot limit ourselves to what the emulator currently supports well of course. |
This is not reproducible with |
I can reproduce this with:Pixel 6 Android API 29 emulator x86-64 on Windows 10 with maplibre 11.6.1 Log2024-12-06 22:09:52.643 4195-4260 libc de.westnordost.streetcomplete.debug A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 in tid 4260 (RenderThread 24), pid 4195 (tcomplete.debug) 2024-12-06 22:09:52.676 4291-4291 DEBUG pid-4291 A pid: 4195, tid: 4260, name: RenderThread 24 >>> de.westnordost.streetcomplete.debug <<< 2024-12-06 22:09:52.723 4291-4291 DEBUG pid-4291 A #01 pc 00000000008e2c2e /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:09:52.723 4291-4291 DEBUG pid-4291 A #02 pc 000000000090383b /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:09:52.723 4291-4291 DEBUG pid-4291 A #03 pc 0000000000905383 /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:09:52.723 4291-4291 DEBUG pid-4291 A #04 pc 00000000006ec04c /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:09:52.723 4291-4291 DEBUG pid-4291 A #05 pc 00000000006ea35e /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:09:52.723 4291-4291 DEBUG pid-4291 A #06 pc 00000000004d6da5 /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/lib/x86_64/libmaplibre.so (mbgl::android::MapRenderer::render(_JNIEnv&)+229) (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:09:52.723 4291-4291 DEBUG pid-4291 A #07 pc 00000000004d9e20 /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/lib/x86_64/libmaplibre.so (_ZZN3jni16MakeNativeMethodIZNS_17NativeMethodMakerIMZNS_30NativePeerMemberFunctionMethodIMN4mbgl7android11MapRendererEFvR7_JNIEnvEXadL_ZNS5_6renderES7_EEEclIS5_S5_vEEDaRKNS_5FieldIT0_lEEEUlS7_RNS_6ObjectIS5_EEE_KFvS7_SJ_EJEEclISK_EEDaPKcRKT_EUlPS6_PNS_7jobjectEE_EEDaSQ_SQ_ST_PNSt6__ndk19enable_ifIXsr3std8is_classISR_EE5valueEvE4typeEENUlSU_DpT_E_8__invokeIJSW_EEEDaSU_S14_+32) (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:09:52.723 4291-4291 DEBUG pid-4291 A #15 pc 0000000002744a80 /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/oat/x86_64/base.vdex (org.maplibre.android.maps.renderer.MapRenderer.onDrawFrame+12) 2024-12-06 22:09:52.723 4291-4291 DEBUG pid-4291 A #18 pc 0000000002747dc0 /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/oat/x86_64/base.vdex (org.maplibre.android.maps.renderer.surfaceview.SurfaceViewMapRenderer.onDrawFrame) 2024-12-06 22:09:52.724 4291-4291 DEBUG pid-4291 A #21 pc 0000000002746e92 /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/oat/x86_64/base.vdex (org.maplibre.android.maps.renderer.surfaceview.MapLibreGLSurfaceView$GLThread.guardedRun+950) 2024-12-06 22:09:52.724 4291-4291 DEBUG pid-4291 A #24 pc 00000000027477b4 /data/app/de.westnordost.streetcomplete.debug-xz4fjeqxjVGq6uIo_Xsc0g==/oat/x86_64/base.vdex (org.maplibre.android.maps.renderer.surfaceview.MapLibreSurfaceView$RenderThread.run+52) 2024-12-06 22:09:52.996 1985-2091 InputDispatcher system_process E channel 'd899c65 de.westnordost.streetcomplete.debug/de.westnordost.streetcomplete.screens.main.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2024-12-06 22:09:54.894 1985-2368 InputDispatcher system_process E Window handle Window{e89f5b5 u0 Application Error: de.westnordost.streetcomplete.debug} has no registered input channel Generic Phone Android API 34 emulator x86-64 on Windows 10 with maplibre 11.6.1. Log2024-12-06 22:12:27.754 3506-4166 libc de.westnordost.streetcomplete.debug A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 in tid 4166 (RenderThread 73), pid 3506 (tcomplete.debug) 2024-12-06 22:12:28.464 4227-4227 DEBUG crash_dump64 A Cmdline: de.westnordost.streetcomplete.debug 2024-12-06 22:12:28.464 4227-4227 DEBUG crash_dump64 A pid: 3506, tid: 4166, name: RenderThread 73 >>> de.westnordost.streetcomplete.debug <<< 2024-12-06 22:12:28.465 4227-4227 DEBUG crash_dump64 A #01 pc 00000000008e2c2e /data/app/~~dRFqIGHTd87li7Xgz3jJXw==/de.westnordost.streetcomplete.debug-O6bimIj8ZTAioSUr0th9Uw==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:12:28.465 4227-4227 DEBUG crash_dump64 A #02 pc 000000000090383b /data/app/~~dRFqIGHTd87li7Xgz3jJXw==/de.westnordost.streetcomplete.debug-O6bimIj8ZTAioSUr0th9Uw==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:12:28.465 4227-4227 DEBUG crash_dump64 A #03 pc 0000000000905383 /data/app/~~dRFqIGHTd87li7Xgz3jJXw==/de.westnordost.streetcomplete.debug-O6bimIj8ZTAioSUr0th9Uw==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:12:28.465 4227-4227 DEBUG crash_dump64 A #04 pc 00000000006ec04c /data/app/~~dRFqIGHTd87li7Xgz3jJXw==/de.westnordost.streetcomplete.debug-O6bimIj8ZTAioSUr0th9Uw==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:12:28.465 4227-4227 DEBUG crash_dump64 A #05 pc 00000000006ea35e /data/app/~~dRFqIGHTd87li7Xgz3jJXw==/de.westnordost.streetcomplete.debug-O6bimIj8ZTAioSUr0th9Uw==/lib/x86_64/libmaplibre.so (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:12:28.465 4227-4227 DEBUG crash_dump64 A #06 pc 00000000004d6da5 /data/app/~~dRFqIGHTd87li7Xgz3jJXw==/de.westnordost.streetcomplete.debug-O6bimIj8ZTAioSUr0th9Uw==/lib/x86_64/libmaplibre.so (mbgl::android::MapRenderer::render(_JNIEnv&)+229) (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) 2024-12-06 22:12:28.465 4227-4227 DEBUG crash_dump64 A #07 pc 00000000004d9e20 /data/app/~~dRFqIGHTd87li7Xgz3jJXw==/de.westnordost.streetcomplete.debug-O6bimIj8ZTAioSUr0th9Uw==/lib/x86_64/libmaplibre.so (auto auto jni::MakeNativeMethod::operator()(jni::Field const&)::'lambda'(_JNIEnv&, jni::Object&)::*)(_JNIEnv&, jni::Object&) const>::operator()::operator()(jni::Field const&)::'lambda'(_JNIEnv&, jni::Object&)>(char const*, auto jni::NativePeerMemberFunctionMethod::operator()(jni::Field const&)::'lambda'(_JNIEnv&, jni::Object&) const&)::'lambda'(_JNIEnv*, jni::jobject*)>(char const*, char const*, auto jni::NativePeerMemberFunctionMethod::operator()(jni::Field const&)::'lambda'(_JNIEnv&, jni::Object&) const&, std::__ndk1::enable_if::operator()(jni::Field const&)::'lambda'(_JNIEnv&, jni::Object&)>::value, void>::type*)::'lambda'(_JNIEnv*, auto...)::__invoke(_JNIEnv*, auto...)+32) (BuildId: 4cbdbe8444325102f6e9c11c9c0759c9925422db) The issue is not reproducible on 11.6.1-vulkan-pre1. |
(At least) on my Android emulator API 34 (x86_64, no google play services), the app crashes under very specific circumstances.
It does not occur for my phone. That doesn't necessarily mean that it is an emulator-only issue, though.
I removed more and more of the application specific code to reach a minimum example under which the crash is reproducible. The stack trace for the crash is
To Reproduce
Minimum code used to add such an icon for reproducing the crash. It doesn't matter which icon one uses for that.
Video
crash.mp4
Platform information
The text was updated successfully, but these errors were encountered: