wgpu
wgpu copied to clipboard
Issue with egui on Sony Xperia Z3 Compact (D5803) / Android 6.0.1
I ran into an issue trying to create EGL context with egui / eframe. wgpu 0.13.1 is used. The following lines from logcat seem most relevant:
08-26 18:12:11.261 21714 21732 I wgpu_hal::gles::egl: EGL context: +debug KHR
08-26 18:12:11.261 21714 21732 I wgpu_hal::gles::egl: EGL context: +robust access EXT
08-26 18:12:11.261 21714 21732 W Adreno-EGL: <qeglDrvAPI_eglCreateContext:2456>: EGL_BAD_ATTRIBUTE
08-26 18:12:11.261 21714 21732 W wgpu_hal::gles::egl: unable to create GLES 3.x context: BadAttribute
Complete log:
08-26 18:12:11.184 21714 21734 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
08-26 18:12:11.193 21714 21733 I RustStdoutStderr: MainEventInsetsChanged
08-26 18:12:11.193 21714 21732 W winit::platform_impl:..: TODO: handle Android InsetsChanged notification
08-26 18:12:11.194 21714 21733 I RustStdoutStderr: MainEventInsetsChanged
08-26 18:12:11.194 21714 21732 W winit::platform_impl:..: TODO: handle Android InsetsChanged notification
08-26 18:12:11.201 21714 21734 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3_RB1__release_AU (I741a3d36ca)
08-26 18:12:11.201 21714 21734 I Adreno-EGL: OpenGL ES Shader Compiler Version: E031.29.00.00
08-26 18:12:11.201 21714 21734 I Adreno-EGL: Build Date: 04/04/16 Mon
08-26 18:12:11.201 21714 21734 I Adreno-EGL: Local Branch: mybranch19053788
08-26 18:12:11.201 21714 21734 I Adreno-EGL: Remote Branch: quic/LA.BF.1.1.3_rb1.12
08-26 18:12:11.201 21714 21734 I Adreno-EGL: Local Patches: NONE
08-26 18:12:11.201 21714 21734 I Adreno-EGL: Reconstruct Branch: NOTHING
08-26 18:12:11.210 21714 21734 I OpenGLRenderer: Initialized EGL, version 1.4
08-26 18:12:11.252 21714 21714 D GameActivity: onSurfaceRedrawNeeded_native
08-26 18:12:11.253 21714 21732 I wgpu_hal::vulkan::ins..: Missing Vulkan entry points: LibraryLoadFailure(DlOpen { desc: "dlopen failed: library \"libvulkan.so\" not found" })
08-26 18:12:11.257 21714 21714 D GameActivity: onSurfaceRedrawNeeded_native
08-26 18:12:11.257 21714 21732 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
08-26 18:12:11.257 21714 21732 D wgpu_hal::gles::egl: Client extensions: []
08-26 18:12:11.257 21714 21732 I wgpu_hal::gles::egl: EGL_MESA_platform_surfaceless not available. Using default platform
08-26 18:12:11.257 21714 21732 I wgpu_hal::gles::egl: Display vendor "Android", version (1, 4)
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: Display extensions: [
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_get_all_proc_addresses",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_ANDROID_presentation_time",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_swap_buffers_with_damage",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_image",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_image_base",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_lock_surface",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_gl_texture_2D_image",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_gl_texture_3D_image",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_gl_texture_cubemap_image",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_gl_renderbuffer_image",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_fence_sync",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_create_context",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_EXT_create_context_robustness",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_ANDROID_image_native_buffer",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_wait_sync",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_ANDROID_recordable",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: "EGL_KHR_partial_update",
08-26 18:12:11.258 21714 21732 D wgpu_hal::gles::egl: ]
08-26 18:12:11.258 21714 21732 W wgpu_hal::gles::egl: EGL surface: -srgb
08-26 18:12:11.261 21714 21732 I wgpu_hal::gles::egl: Trying presentation
08-26 18:12:11.261 21714 21732 W wgpu_hal::gles::egl: EGL says it can present to the window but not natively
08-26 18:12:11.261 21714 21732 I wgpu_hal::gles::egl: EGL context: +debug KHR
08-26 18:12:11.261 21714 21732 I wgpu_hal::gles::egl: EGL context: +robust access EXT
08-26 18:12:11.261 21714 21732 W Adreno-EGL: <qeglDrvAPI_eglCreateContext:2456>: EGL_BAD_ATTRIBUTE
08-26 18:12:11.261 21714 21732 W wgpu_hal::gles::egl: unable to create GLES 3.x context: BadAttribute
08-26 18:12:11.262 21714 21733 I RustStdoutStderr: thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', C:\Users\John\.cargo\git\checkouts\egui-9a58596941f2023d\1bd048c\crates\egui-wgpu\src\winit.rs:112:14
08-26 18:12:11.263 21714 21733 I RustStdoutStderr: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
08-26 18:12:11.263 21714 21733 I RustStdoutStderr: fatal runtime error: failed to initiate panic, error 9