GPU Process memory leak when video rendered onto WebGL texture
Reported by
akagise...@gmail.com,
Mar 30 2017
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 Example URL: http://threejs.org/examples/webgl_video_panorama_equirectangular.html Steps to reproduce the problem: https://bugs.chromium.org/p/chromium/issues/detail?id=634012 What is the expected behavior? What went wrong? https://bugs.chromium.org/p/chromium/issues/detail?id=634012 According to this URL,this bug(634012) was fixed. but,still same memory leak occured. please tell me 2points. 1. Does the problem occur your environment? 2. Are there have a plan for fix this bug? Did this work before? N/A Is it a problem with Flash or HTML5? N/A Does this work in other browsers? Yes Chrome version: Chromium 59.0.3055.0 (Developer Build) Channel: n/a OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: none Contents of chrome://gpu: Graphics Feature Status Canvas: Hardware accelerated Flash: Hardware accelerated Flash Stage3D: Hardware accelerated Flash Stage3D Baseline profile: Hardware accelerated Compositing: Hardware accelerated Multiple Raster Threads: Disabled Native GpuMemoryBuffers: Software only. Hardware acceleration disabled Rasterization: Hardware accelerated Video Decode: Hardware accelerated Video Encode: Hardware accelerated VPx Video Decode: Software only, hardware acceleration unavailable WebGL: Hardware accelerated WebGL2: Hardware accelerated Driver Bug Workarounds clear_uniforms_before_first_program_use decode_encode_srgb_for_generatemipmap disable_direct_composition disable_discard_framebuffer disable_dxgi_zero_copy_video disable_framebuffer_cmaa exit_on_context_lost force_cube_complete msaa_is_slow scalarize_vec_and_mat_constructor_args texsubimage_faster_than_teximage Problems Detected VPx decoding isn't supported before Windows 10 anniversary update.: 616318 Disabled Features: accelerated_vpx_decode Accelerated VPx decoding is hanging on some videos.: 654111 Disabled Features: accelerated_vpx_decode Some drivers are unable to reset the D3D device in the GPU process sandbox Applied Workarounds: exit_on_context_lost TexSubImage is faster for full uploads on ANGLE Applied Workarounds: texsubimage_faster_than_teximage Clear uniforms before first program use on all platforms: 124764, 349137 Applied Workarounds: clear_uniforms_before_first_program_use Always rewrite vec/mat constructors to be consistent: 398694 Applied Workarounds: scalarize_vec_and_mat_constructor_args ANGLE crash on glReadPixels from incomplete cube map texture: 518889 Applied Workarounds: force_cube_complete On Intel GPUs MSAA performance is not acceptable for GPU rasterization: 527565 Applied Workarounds: msaa_is_slow Framebuffer discarding can hurt performance on non-tilers: 570897 Applied Workarounds: disable_discard_framebuffer Direct composition flashes black initially on Win <10: 588588 Applied Workarounds: disable_direct_composition Zero copy DXGI video hangs on shutdown on Win < 8.1: 621190 Applied Workarounds: disable_dxgi_zero_copy_video Limited enabling of Chromium GL_INTEL_framebuffer_CMAA: 535198 Applied Workarounds: disable_framebuffer_cmaa Disable KHR_blend_equation_advanced until cc shaders are updated: 661715 Decode and Encode before generateMipmap for srgb format textures on Windows: 634519 Applied Workarounds: decode_encode_srgb_for_generatemipmap Raster is using a single thread. Disabled Features: multiple_raster_threads Native GpuMemoryBuffers have been disabled, either via about:flags or command line. Disabled Features: native_gpu_memory_buffers Version Information Data exported 2017/3/30 19:11:31 Chrome version Chrome/59.0.3055.0 Operating system Windows NT 6.1.7601 SP1 Software rendering list version 12.23 Driver bug list version 9.38 ANGLE commit id 4063e209547e 2D graphics backend Skia/59 6105e4bf2da14d07d4c19576a67e000f51711c9d Command Line Args --flag-switches-begin --flag-switches-end Driver Information Initialization time 153 In-process GPU false Passthrough Command Decoder false Sandboxed false GPU0 VENDOR = 0x8086, DEVICE= 0x0402 Optimus false Optimus false AMD switchable false Desktop compositing none Diagonal Monitor Size of \\.\DISPLAY1 22.9" Driver vendor Intel Corporation Driver version 10.18.10.3412 Driver date 1-28-2014 Pixel shader version 5.0 Vertex shader version 5.0 Max. MSAA samples 8 Machine model name Machine model version GL_VENDOR Google Inc. GL_RENDERER ANGLE (Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0) GL_VERSION OpenGL ES 3.0 (ANGLE 2.1.0.4063e209547e) GL_EXTENSIONS GL_ANGLE_client_arrays GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_pack_reverse_row_order GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_robust_resource_initialization GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc_srgb GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_norm16 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object Disabled Extensions GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent Window system binding vendor Google Inc. (adapter LUID: 0000000000006fd0) Window system binding version 1.4 (ANGLE 2.1.0.4063e209547e) Window system binding extensions EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_EXT_pixel_format_float EGL_ANGLE_display_texture_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_create_context_robust_resource_initialization Direct rendering Yes Reset notification strategy 0x8252 GPU process crash count 0 Compositor Information Tile Update Mode One-copy Partial Raster Enabled GpuMemoryBuffers Status ATC Software only ATCIA Software only DXT1 Software only DXT5 Software only ETC1 Software only R_8 Software only RG_88 Software only BGR_565 Software only RGBA_4444 Software only RGBX_8888 Software only RGBA_8888 Software only BGRX_8888 Software only BGRA_8888 Software only YVU_420 Software only YUV_420_BIPLANAR Software only UYVY_422 Software only Diagnostics 0 b3DAccelerationEnabled true b3DAccelerationExists true bAGPEnabled true bAGPExistenceValid true bAGPExists true bCanRenderWindow true bDDAccelerationEnabled true bDriverBeta false bDriverDebug false bDriverSigned false bDriverSignedValid false bNoHardware false dwBpp 32 dwDDIVersion 11 dwHeight 1080 dwRefreshRate 60 dwWHQLLevel 0 dwWidth 1920 iAdapter 0 lDriverSize 18629632 lMiniVddSize 0 szAGPStatusEnglish Enabled szAGPStatusLocalized 使用可能 szChipType Intel(R) HD Graphics Family szD3DStatusEnglish Enabled szD3DStatusLocalized 使用可能 szDACType Internal szDDIVersionEnglish 11 szDDIVersionLocalized 11 szDDStatusEnglish Enabled szDDStatusLocalized 使用可能 szDXVAHDEnglish Supported szDXVAModes ModeMPEG2_A ModeMPEG2_C ModeWMV9_C ModeVC1_C szDescription Intel(R) HD Graphics szDeviceId 0x0402 szDeviceIdentifier {D7B78E66-4742-11CF-CC7E-1826BBC2C735} szDeviceName \\.\DISPLAY1 szDisplayMemoryEnglish 1560 MB szDisplayMemoryLocalized 1560 MB szDisplayModeEnglish 1920 x 1080 (32 bit) (60Hz) szDisplayModeLocalized 1920 x 1080 (32 bit) (60Hz) szDriverAssemblyVersion 10.18.10.3412 szDriverAttributes Final Retail szDriverDateEnglish 12/31/2014 16:01:36 szDriverDateLocalized 2014/12/31 16:01:36 szDriverLanguageEnglish English szDriverLanguageLocalized 英語 szDriverModelEnglish WDDM 1.1 szDriverModelLocalized WDDM 1.1 szDriverName igdumdim32.dll,igd10iumd32.dll,igd10iumd32.dll szDriverNodeStrongName oem20.inf:IntelGfx.NTx86.6.1:iHSWD_w7:10.18.10.3412:pci\ven_8086&dev_0402&subsys_06121028 szDriverSignDate szDriverVersion 10.18.0010.3412 szKeyDeviceID Enum\PCI\VEN_8086&DEV_0402&SUBSYS_06121028&REV_06 szKeyDeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{82FFB8A9-C151-43C7-9E45-44B49A4E8699}\0000 szManufacturer Intel Corporation szMiniVdd 利用不可 szMiniVddDateEnglish n/a szMiniVddDateLocalized 利用不可 szMonitorMaxRes szMonitorName 汎用 PnP モニター szNotesEnglish No problems found. szNotesLocalized 問題は見つかりませんでした。 szOverlayEnglish Supported szRankOfInstalledDriver 00E60001 szRegHelpText szRevision szRevisionId 0x0006 szSubSysId 0x06121028 szTestResultD3D7English Not run szTestResultD3D7Localized 実行されていません szTestResultD3D8English Not run szTestResultD3D8Localized 実行されていません szTestResultD3D9English Not run szTestResultD3D9Localized 実行されていません szTestResultDDEnglish Not run szTestResultDDLocalized 実行されていません szVdd 利用不可 szVendorId 0x8086 Log Messages GpuProcessHostUIShim: The GPU process exited normally. Everything is okay. I'm sorry for my clumsy English
,
Mar 30 2017
John, could you triage this?
,
Apr 11 2017
Do you have any progress? I am glad if you can reply something.
,
Jun 9 2017
.....
,
Jun 9 2017
John, did you have a chance to look at this?
,
Jun 10 2017
I haven't been able to reproduce a GPU process memory leak on my machine. Renderer process memory may be increasing slightly, but I don't see much interesting in that using UMDH. The most common stack to allocate memory is ntdll!RtlpCallInterceptRoutine+3F ntdll!RtlpAllocateHeapInternal+69F bcryptPrimitives!AesRNGState_select+A0 bcryptPrimitives!GenRandomAes+2D bcryptPrimitives!ProcessPrng+23 CRYPTBASE!SystemFunction036+C chrome_child!base::RandBytes+37 (c:\b\c\b\win64_pgo\src\base\rand_util_win.cc, 38)
,
Jun 12 2017
Hmm, we use that for base::UnguessableTokens among other things I'm sure. Do you have a deeper snapshot of that stack?
,
Jun 12 2017
I see essentially these two stacks: + 2270 ( 23a0 - 130) 1e allocs BackTrace12077E5B + 1d ( 1e - 1) BackTrace12077E5B allocations ntdll!RtlpCallInterceptRoutine+3F ntdll!RtlpAllocateHeapInternal+69F bcryptPrimitives!AesRNGState_select+A0 bcryptPrimitives!GenRandomAes+2D bcryptPrimitives!ProcessPrng+23 CRYPTBASE!SystemFunction036+C chrome_child!base::RandBytes+37 (c:\b\c\b\win64_pgo\src\base\rand_util_win.cc, 38) chrome_child!cc::SharedBitmap::GenerateId+1A (c:\b\c\b\win64_pgo\src\cc\resources\shared_bitmap.cc, 71) chrome_child!gpu::gles2::GLES2Implementation::GenMailboxCHROMIUM+86 (c:\b\c\b\win64_pgo\src\gpu\command_buffer\client\gles2_implementation.cc, 5879) chrome_child!blink::ImageBuffer::CopyToPlatformTexture+12B (c:\b\c\b\win64_pgo\src\third_party\webkit\source\platform\graphics\imagebuffer.cpp, 255) chrome_child!blink::WebGLRenderingContextBase::TexImageHelperHTMLVideoElement+4E7 (c:\b\c\b\win64_pgo\src\third_party\webkit\source\modules\webgl\webglrenderingcontextbase.cpp, 5275) chrome_child!blink::WebGLRenderingContextBase::texImage2D+B0 (c:\b\c\b\win64_pgo\src\third_party\webkit\source\modules\webgl\webglrenderingcontextbase.cpp, 5323) chrome_child!blink::WebGLRenderingContextV8Internal::texImage2D5Method+207 (c:\b\c\b\win64_pgo\src\out\release_x64\gen\blink\bindings\modules\v8\v8webglrenderingcontext.cpp, 2887) chrome_child!blink::WebGLRenderingContextV8Internal::texImage2DMethod+174 (c:\b\c\b\win64_pgo\src\out\release_x64\gen\blink\bindings\modules\v8\v8webglrenderingcontext.cpp, 2951) + 720 ( f70 - 850) d allocs BackTrace11F3871B + 6 ( d - 7) BackTrace11F3871B allocations ntdll!RtlpCallInterceptRoutine+3F ntdll!RtlpAllocateHeapInternal+69F bcryptPrimitives!AesRNGState_select+A0 bcryptPrimitives!GenRandomAes+2D bcryptPrimitives!ProcessPrng+23 CRYPTBASE!SystemFunction036+C chrome_child!base::RandBytes+37 (c:\b\c\b\win64_pgo\src\base\rand_util_win.cc, 38) chrome_child!base::UnguessableToken::Create+1C (c:\b\c\b\win64_pgo\src\base\unguessable_token.cc, 26) chrome_child!mojo::edk::PlatformSharedBuffer::InitFromPlatformHandle+1F (c:\b\c\b\win64_pgo\src\mojo\edk\embedder\platform_shared_buffer.cc, 239) chrome_child!mojo::edk::PlatformSharedBuffer::CreateFromPlatformHandle+59 (c:\b\c\b\win64_pgo\src\mojo\edk\embedder\platform_shared_buffer.cc, 64) chrome_child!mojo::edk::SharedBufferDispatcher::Deserialize+BF (c:\b\c\b\win64_pgo\src\mojo\edk\system\shared_buffer_dispatcher.cc, 149) chrome_child!mojo::edk::Dispatcher::Deserialize+125 (c:\b\c\b\win64_pgo\src\mojo\edk\system\dispatcher.cc, 175)
,
Jun 12 2017
Those seem normal if a bit surprising to be the highest frequency allocation. Maybe a driver bug? The drivers are fairly old: HD Graphics 4200 have a much more recent driver. https://downloadcenter.intel.com/product/81498/Intel-HD-Graphics-4200 akagisefu3@ can you try updating your drivers from that page?
,
Jun 20 2017
,
Aug 10 2017
I can't seem to reproduce the GPU process memory leak at all. Re comment #9 - it's not the highest frequency allocation, it's just that within the timespan I'm measure that allocation is the most common one not to be freed.
,
Aug 13
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 13
WontFix given no reply to c#9. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by dalecur...@chromium.org
, Mar 30 2017Components: Internals>GPU>WebGL