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

Memory leaks #19

Open
adrien-jeser opened this issue Aug 18, 2018 · 0 comments
Open

Memory leaks #19

adrien-jeser opened this issue Aug 18, 2018 · 0 comments

Comments

@adrien-jeser
Copy link

adrien-jeser commented Aug 18, 2018

After a create logical device, the memory is not free.

Reproduction

  1. Set PRINT to true
  2. cargo run --example hello
Enabling instance extension: 'VK_KHR_device_group_creation' (version: 1)
Enabling instance extension: 'VK_KHR_external_fence_capabilities' (version: 1)
Enabling instance extension: 'VK_KHR_external_memory_capabilities' (version: 1)
Enabling instance extension: 'VK_KHR_external_semaphore_capabilities' (version: 1)
Enabling instance extension: 'VK_KHR_get_physical_device_properties2' (version: 1)
Enabling instance extension: 'VK_KHR_get_surface_capabilities2' (version: 1)
Enabling instance extension: 'VK_KHR_surface' (version: 25)
Enabling instance extension: 'VK_KHR_wayland_surface' (version: 6)
Enabling instance extension: 'VK_KHR_xcb_surface' (version: 6)
Enabling instance extension: 'VK_KHR_xlib_surface' (version: 6)
Enabling instance extension: 'VK_EXT_debug_report' (version: 9)
Enabling instance extension: 'VK_EXT_debug_utils' (version: 1)
DEBUG_REPORT: Debug report printing enabled.
Available device extension: 'VK_KHR_bind_memory2' (version: 0.0.1)
Available device extension: 'VK_KHR_dedicated_allocation' (version: 0.0.1)
Available device extension: 'VK_KHR_descriptor_update_template' (version: 0.0.1)
Available device extension: 'VK_KHR_device_group' (version: 0.0.1)
Available device extension: 'VK_KHR_external_fence' (version: 0.0.1)
Available device extension: 'VK_KHR_external_fence_fd' (version: 0.0.1)
Available device extension: 'VK_KHR_external_memory' (version: 0.0.1)
Available device extension: 'VK_KHR_external_memory_fd' (version: 0.0.1)
Available device extension: 'VK_KHR_external_semaphore' (version: 0.0.1)
Available device extension: 'VK_KHR_external_semaphore_fd' (version: 0.0.1)
Available device extension: 'VK_KHR_get_memory_requirements2' (version: 0.0.1)
Available device extension: 'VK_KHR_image_format_list' (version: 0.0.1)
Available device extension: 'VK_KHR_incremental_present' (version: 0.0.1)
Available device extension: 'VK_KHR_maintenance1' (version: 0.0.1)
Available device extension: 'VK_KHR_maintenance2' (version: 0.0.1)
Available device extension: 'VK_KHR_maintenance3' (version: 0.0.1)
Available device extension: 'VK_KHR_push_descriptor' (version: 0.0.1)
Available device extension: 'VK_KHR_relaxed_block_layout' (version: 0.0.1)
Available device extension: 'VK_KHR_sampler_mirror_clamp_to_edge' (version: 0.0.1)
Available device extension: 'VK_KHR_shader_draw_parameters' (version: 0.0.1)
Available device extension: 'VK_KHR_storage_buffer_storage_class' (version: 0.0.1)
Available device extension: 'VK_KHR_swapchain' (version: 0.0.68)
Available device extension: 'VK_KHR_variable_pointers' (version: 0.0.1)
Available device extension: 'VK_KHR_multiview' (version: 0.0.1)
Available device extension: 'VK_EXT_depth_range_unrestricted' (version: 0.0.1)
Available device extension: 'VK_EXT_descriptor_indexing' (version: 0.0.2)
Available device extension: 'VK_EXT_discard_rectangles' (version: 0.0.1)
Available device extension: 'VK_EXT_external_memory_dma_buf' (version: 0.0.1)
Available device extension: 'VK_EXT_external_memory_host' (version: 0.0.1)
Available device extension: 'VK_EXT_global_priority' (version: 0.0.1)
Available device extension: 'VK_EXT_sampler_filter_minmax' (version: 0.0.1)
Available device extension: 'VK_EXT_shader_viewport_index_layer' (version: 0.0.1)
Available device extension: 'VK_EXT_vertex_attribute_divisor' (version: 0.0.1)
Available device extension: 'VK_AMD_draw_indirect_count' (version: 0.0.1)
Available device extension: 'VK_AMD_gcn_shader' (version: 0.0.1)
Available device extension: 'VK_AMD_shader_core_properties' (version: 0.0.1)
Available device extension: 'VK_AMD_shader_info' (version: 0.0.1)
Available device extension: 'VK_AMD_shader_trinary_minmax' (version: 0.0.1)
Required device extension available: 'VK_KHR_swapchain'
Physical device format count: 2
Physical device present mode count: 3
Physical device queue family count: 2
Physical device queue family count: 2
Physical device queue family count: 2
Physical device format count: 2
Physical device present mode count: 3
Read 1600 bytes from /home/adrien/Devel/voodoo/examples/shaders/vert.spv
Read 1120 bytes from /home/adrien/Devel/voodoo/examples/shaders/frag.spv
Physical device queue family count: 2
Physical device queue family count: 2
Physical device format count: 2
Physical device present mode count: 3
Goodbye.

It never drop the device (device.rs:97). It didn't print "Destroying device..."

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

1 participant