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

Exmaple app crash Android emulator #4

Closed
whollacsek opened this issue Oct 1, 2021 · 8 comments
Closed

Exmaple app crash Android emulator #4

whollacsek opened this issue Oct 1, 2021 · 8 comments

Comments

@whollacsek
Copy link

whollacsek commented Oct 1, 2021

How to make it work on the emulator? The emulator process closes when the example app is launched

@wasabia
Copy link
Owner

wasabia commented Oct 4, 2021

Hi @whollacsek
do you got any error log?

@whollacsek
Copy link
Author

As far as I remember the emulator just closes itself

@wasabia
Copy link
Owner

wasabia commented Oct 5, 2021

Example project work on my android device.
I don't have Android emulator on my PC
I need the error log

@whollacsek
Copy link
Author

The only log I have is this:

Launching lib\main.dart on sdk gphone x86 in debug mode...
Running Gradle task 'assembleDebug'...
√  Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Debug service listening on ws://127.0.0.1:57077/-M9z9nQWKSk=/ws
Syncing files to device sdk gphone x86...
I/flutter (23356):  screenSize: Size(392.7, 781.1) dpr: 2.75 
D/HostConnection(23356): HostConnection::get() New Host Connection established 0xf5413170, tid 23407
D/HostConnection(23356): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 
D/EGL_emulation(23356): eglCreateContext: 0xf541d2e0: maj 2 min 0 rcv 2
D/EGL_emulation(23356): eglCreateContext: 0xf541e000: maj 2 min 0 rcv 2
D/EGL_emulation(23356): eglCreateContext: 0xf541e930: maj 2 min 0 rcv 2
W/Gralloc4(23356): allocator 3.x is not supported
D/com.futouapp.flutter_gl.flutter_gl.EglEnv(23356):  egl make current 
D/EGL_emulation(23356): eglMakeCurrent: 0xf541e000: ver 2 0 (tinfo 0xc31ce270) (first time)
D/com.futouapp.flutter_gl.flutter_gl.EglEnv(23356):  egl make current 
D/HostConnection(23356): HostConnection::get() New Host Connection established 0xf541f880, tid 23392
D/HostConnection(23356): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 
D/EGL_emulation(23356): eglMakeCurrent: 0xf541e930: ver 2 0 (tinfo 0xc31d1070) (first time)
I/flutter (23356):  OpenGLContextES 
I/flutter (23356): {gl: Instance of 'LibOpenGLES'}
I/flutter (23356): makeShader getShaderParameter: 1
I/flutter (23356): makeShader getShaderParameter: 1
I/flutter (23356): getProgramParameter: 1  
Lost connection to device.

@wasabia
Copy link
Owner

wasabia commented Oct 5, 2021

Maybe this project only run on real device...

@whollacsek
Copy link
Author

whollacsek commented Oct 5, 2021 via email

@wasabia
Copy link
Owner

wasabia commented Oct 6, 2021

Sorry for that.
Maybe Android emulator only support OpenGL ES 2.0 and This project use OpenGL ES 3.0.

@whollacsek
Copy link
Author

whollacsek commented Oct 6, 2021 via email

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