Last active
May 30, 2024 16:17
-
-
Save rsepassi/953899b1ac481fba94fe8d6838220e95 to your computer and use it in GitHub Desktop.
wgpu android error log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
05-30 09:14:16.841 6290 6315 I NativeActivity: [wgpu trace]: Instance::new: backend Vulkan not requested | |
05-30 09:14:16.841 6290 6315 I NativeActivity: [wgpu debug]: Client extensions: [ | |
05-30 09:14:16.841 6290 6315 I NativeActivity: "EGL_EXT_client_extensions", | |
05-30 09:14:16.841 6290 6315 I NativeActivity: "EGL_KHR_platform_android", | |
05-30 09:14:16.841 6290 6315 I NativeActivity: "EGL_ANGLE_platform_angle", | |
05-30 09:14:16.841 6290 6315 I NativeActivity: "EGL_ANDROID_GLES_layers", | |
05-30 09:14:16.841 6290 6315 I NativeActivity: ] | |
05-30 09:14:16.841 6290 6315 I NativeActivity: [wgpu debug]: Loading X11 library to get the current display | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu warn]: EGL_MESA_platform_surfaceless not available. Using default platform | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu debug]: Display vendor "Android", version (1, 4) | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu debug]: Display extensions: [ | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_KHR_get_all_proc_addresses", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_ANDROID_presentation_time", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_KHR_swap_buffers_with_damage", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_ANDROID_get_native_client_buffer", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_ANDROID_front_buffer_auto_refresh", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_ANDROID_get_frame_timestamps", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_EXT_surface_SMPTE2086_metadata", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_EXT_surface_CTA861_3_metadata", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_KHR_image", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_KHR_image_base", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_KHR_gl_texture_2D_image", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_KHR_fence_sync", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_KHR_create_context", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_ANDROID_image_native_buffer", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: "EGL_ANDROID_recordable", | |
05-30 09:14:16.843 6290 6315 I NativeActivity: ] | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu warn]: EGL surface: -srgb | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu trace]: Configurations: | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu trace]: CONFORMANT=0x45, RENDERABLE=0x45, NATIVE_RENDERABLE=0x0, SURFACE_TYPE=0x5, ALPHA_SIZE=0 | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu trace]: CONFORMANT=0x45, RENDERABLE=0x45, NATIVE_RENDERABLE=0x0, SURFACE_TYPE=0x5, ALPHA_SIZE=8 | |
05-30 09:14:16.843 6290 6315 I chatty : uid=10154(com.xos.hello) identical 1 line | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu trace]: CONFORMANT=0x45, RENDERABLE=0x45, NATIVE_RENDERABLE=0x0, SURFACE_TYPE=0x5, ALPHA_SIZE=8 | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu debug]: Trying presentation | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu warn]: EGL says it can present to the window but not natively | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu debug]: EGL context: +debug KHR | |
05-30 09:14:16.843 6290 6315 I NativeActivity: [wgpu warn]: EGL context: -robust access | |
05-30 09:14:16.843 6290 6315 D EGL_emulation: eglCreateContext: 0x72cd4c03a0: maj 3 min 0 rcv 3 | |
05-30 09:14:16.844 6290 6315 I NativeActivity: [wgpu debug]: Instance::new: created Gl backend | |
05-30 09:14:16.844 6290 6315 I NativeActivity: wgpu created | |
05-30 09:14:16.844 6290 6315 I NativeActivity: [wgpu trace]: User is inserting SurfaceId(0,1,_) | |
05-30 09:14:16.844 6290 6315 I NativeActivity: surface created | |
05-30 09:14:16.844 6290 6315 I NativeActivity: [wgpu trace]: Instance::request_adapter | |
05-30 09:14:16.844 6290 6315 D EGL_emulation: eglMakeCurrent: 0x72cd4c03a0: ver 3 0 (tinfo 0x7362da7b40) | |
05-30 09:14:16.857 6290 6315 D EGL_emulation: eglMakeCurrent: 0x72cd4c03a0: ver 3 0 (tinfo 0x7362da7b40) | |
05-30 09:14:16.858 6290 6315 I NativeActivity: [wgpu debug]: Vendor: Google (Apple) | |
05-30 09:14:16.858 6290 6315 I NativeActivity: [wgpu debug]: Renderer: Android Emulator OpenGL ES Translator (Apple M1) | |
05-30 09:14:16.858 6290 6315 I NativeActivity: [wgpu debug]: Version: OpenGL ES 3.0 (4.1 Metal - 83.1) | |
05-30 09:14:16.858 6290 6315 I NativeActivity: [wgpu debug]: SL version: OpenGL ES GLSL ES 3.00 | |
05-30 09:14:16.858 6290 6315 I NativeActivity: [wgpu debug]: Supported GL Extensions: { | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_element_index_uint", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_EXT_color_buffer_half_float", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_depth24", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_rgb8_rgba8", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_native_sync_v4", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_dma_v1", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_vertex_array_object", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_EXT_texture_format_BGRA8888", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_direct_mem", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_native_sync_v3", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_EXT_robustness", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_vulkan_free_memory_sync", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_texture_npot", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_vulkan_async_qsri", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_gles_max_version_3_0", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_host_side_tracing", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_deferred_vulkan_commands", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_YUV_Cache", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_compressed_ETC1_RGB8_texture", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_EGL_sync", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_EGL_image_external", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_texture_float_linear", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_compressed_paletted_texture", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_vulkan_ignored_handles", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "GL_OES_texture_float", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_vulkan", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_CHECKSUM_HELPER_v1", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_vulkan_null_optional_strings", | |
05-30 09:14:16.858 6290 6315 I NativeActivity: "ANDROID_EMU_vulkan_shad | |
05-30 09:14:16.858 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008d6b | |
05-30 09:14:16.858 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008d6b | |
05-30 09:14:16.860 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008a2b | |
05-30 09:14:16.860 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008a2b | |
05-30 09:14:16.860 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008a2d | |
05-30 09:14:16.860 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008a2d | |
05-30 09:14:16.861 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008a30 | |
05-30 09:14:16.862 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008a30 | |
05-30 09:14:16.863 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008b4b | |
05-30 09:14:16.863 6290 6315 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008b4b | |
05-30 09:14:16.863 6290 6315 I NativeActivity: [wgpu info]: Adapter Gl AdapterInfo { name: "Android Emulator OpenGL ES Translator (Apple M1)", vendor: 4203, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Gl } | |
05-30 09:14:16.863 6290 6315 I NativeActivity: [wgpu trace]: User is inserting AdapterId(0,1,gl) | |
05-30 09:14:16.863 6290 6315 I NativeActivity: [wgpu trace]: Adapter::request_device | |
05-30 09:14:16.863 6290 6315 I NativeActivity: [wgpu trace]: User is insering as error DeviceId(0,1,gl) | |
05-30 09:14:16.863 6290 6315 I NativeActivity: [wgpu trace]: User is insering as error QueueId(0,1,gl) | |
05-30 09:14:16.863 6290 6315 I NativeActivity: wgpu request device error: [1] Validation Error | |
05-30 09:14:16.863 6290 6315 I NativeActivity: | |
05-30 09:14:16.863 6290 6315 I NativeActivity: Caused by: | |
05-30 09:14:16.863 6290 6315 I NativeActivity: Limit 'max_inter_stage_shader_components' value 31 is better than allowed 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var instance_desc = wgpu.c.WGPUInstanceExtras{ | |
.chain = .{ | |
.sType = wgpu.c.WGPUSType_InstanceExtras, | |
}, | |
.backends = wgpu.c.WGPUInstanceBackend_GL, | |
.flags = wgpu.c.WGPUInstanceFlag_Debug | wgpu.c.WGPUInstanceFlag_Validation, | |
}; | |
ctx.gpu = wgpu.c.wgpuCreateInstance(&.{ | |
.nextInChain = @ptrCast(&instance_desc), | |
}) orelse return error.WgpuInit; | |
log.debug("wgpu created", .{}); | |
var surface_desc = wgpu.c.WGPUSurfaceDescriptorFromAndroidNativeWindow{ | |
.chain = .{ | |
.sType = wgpu.c.WGPUSType_SurfaceDescriptorFromAndroidNativeWindow, | |
}, | |
.window = window, | |
}; | |
ctx.surface = wgpu.c.wgpuInstanceCreateSurface(ctx.gpu, &.{ | |
.nextInChain = @ptrCast(&surface_desc), | |
}) orelse return error.WgpuSurface; | |
log.debug("surface created", .{}); | |
const adapter_options = wgpu.c.WGPURequestAdapterOptions{ | |
.backendType = wgpu.c.WGPUBackendType_OpenGL, | |
}; | |
wgpu.c.wgpuInstanceRequestAdapter(ctx.gpu, &adapter_options, handleRequestAdapter, ctx); | |
if (ctx.adapter == null) return error.WgpuAdapter; | |
wgpu.c.wgpuAdapterRequestDevice(ctx.adapter, &.{}, handleRequestDevice, ctx); | |
if (ctx.device == null) return error.WgpuDevice; | |
ctx.queue = wgpu.c.wgpuDeviceGetQueue(ctx.device) orelse return error.WgpuQueue; | |
const wgsl = @embedFile("demo.wgsl"); | |
ctx.shader = try loadShader(ctx.device, "demo", wgsl); | |
ctx.pipeline_layout = wgpu.c.wgpuDeviceCreatePipelineLayout( | |
ctx.device, | |
&.{ .label = "pipeline_layout" }, | |
) orelse return error.WgpuPipelineLayout; | |
wgpu.c.wgpuSurfaceGetCapabilities(ctx.surface, ctx.adapter, &ctx.surface_capabilities); | |
ctx.render_pipeline = wgpu.c.wgpuDeviceCreateRenderPipeline(ctx.device, &.{ | |
.label = "render_pipeline", | |
.layout = ctx.pipeline_layout, | |
.vertex = .{ | |
.module = ctx.shader, | |
.entryPoint = "vs_main", | |
}, | |
.fragment = &.{ | |
.module = ctx.shader, | |
.entryPoint = "fs_main", | |
.targetCount = 1, | |
.targets = &.{ | |
.format = ctx.surface_capabilities.formats[0], | |
.writeMask = wgpu.c.WGPUColorWriteMask_All, | |
}, | |
}, | |
.primitive = .{ | |
.topology = wgpu.c.WGPUPrimitiveTopology_TriangleList, | |
}, | |
.multisample = .{ | |
.count = 1, | |
.mask = 0xFFFFFFFF, | |
}, | |
}) orelse return error.WgpuRenderPipeline; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment