chfi / gfaestus

GFA visualizer, GPU-accelerated using Vulkan
MIT License
68 stars 5 forks source link

Weired display on M1 Mac #14

Open baozg opened 2 years ago

baozg commented 2 years ago

Hi,

I installed MoltenVK and Vulkan on M1 Mac and gfaestus cargo building seems very smooth. But when I run the gfaestus with my graph, it display was all black and some weired thing displayed in the screen. I can choose the button.

./gfaestus-release chr1.fasta.gz.0eed25d.c2fac19.5c75112.smooth.final.gfa 
chr1.fasta.gz.0eed25d.c2fac19.5c75112.smooth.final.og.lay.tsv
DEBUG [gfaestus] Logger initalized
DEBUG [gfaestus] using /Users/zbao/software/gfaestus/chr1.fasta.gz.0eed25d.c2fac19.5c75112.smooth.final.gfa and /Users/zbao/software/gfaestus/chr1.fasta.gz.0eed25d.c2fac19.5c75112.smooth.final.og.lay.tsv
DEBUG [gfaestus::vulkan] Initializing GfaestusVk context
DEBUG [gfaestus::vulkan] Using default event loop
DEBUG [gfaestus::vulkan] Creating window
DEBUG [gfaestus::vulkan] Created Vulkan entry
DEBUG [gfaestus::vulkan::init] Creating instance
DEBUG [gfaestus::vulkan::init] Enumerated required instance extensions
DEBUG [gfaestus::vulkan::init] getting layer names and pointers
DEBUG [gfaestus::vulkan::init] Loading instance extension "VK_KHR_surface"
DEBUG [gfaestus::vulkan::init] Loading instance extension "VK_EXT_metal_surface"
DEBUG [gfaestus::vulkan::init] Loading instance extension "VK_KHR_get_physical_device_properties2"
DEBUG [gfaestus::vulkan] Created Vulkan instance
DEBUG [gfaestus::vulkan] Created window surface
DEBUG [gfaestus::vulkan::init] Enumerating physical devices
DEBUG [gfaestus::vulkan::init] Device 0 - "Apple M1 Pro"
INFO [gfaestus::vulkan::init] Selected physical device: "Apple M1 Pro"
DEBUG [gfaestus::vulkan::init] Found queue families; graphics: Some(0), present: Some(0), compute: Some(0)
WARN [gfaestus::vulkan::context] Device is missing the optional feature: wide_lines
DEBUG [gfaestus::vulkan::render_pass] Chose node ID image format: R32_UINT
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: B8G8R8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_4, tiling: OPTIMAL, usage: COLOR_ATTACHMENT | TRANSIENT_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x135645a90
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: B8G8R8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x136804080
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R32_UINT, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_4, tiling: OPTIMAL, usage: COLOR_ATTACHMENT | TRANSIENT_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x135647100
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R32_UINT, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: TRANSFER_SRC | COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x1356460b0
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_4, tiling: OPTIMAL, usage: COLOR_ATTACHMENT | TRANSIENT_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x136811600
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: SAMPLED | COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x136b0c280
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: SAMPLED | COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x13680a530
DEBUG [gfaestus] futures thread pool: 3
DEBUG [gfaestus] rayon   thread pool: 4
INFO [gfaestus] Loading GFA
INFO [gfaestus::gfa::load] loading GFA with 4289958 nodes, 5937559 edges
INFO [gfaestus::gfa::load] adding nodes
INFO [gfaestus::gfa::load] adding edges
INFO [gfaestus::gfa::load] adding paths
INFO [gfaestus::gfa::load] created path handles
INFO [gfaestus::universe] loading layout
INFO [gfaestus] layout bounding box (1000.00, 1000.00)  (29598796.00, 516053.66)
INFO [gfaestus] layout width: 29597796.00   height: 515053.66
INFO [gfaestus] GFA loaded in 24.537 sec
INFO [gfaestus] Loaded 4289958 nodes    8579916 points
WARN [gfaestus::vulkan::draw_system::nodes] node_renderer_type: TessellationQuads
DEBUG [gfaestus::vulkan::texture] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 2048, height: 64, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: TRANSFER_SRC | TRANSFER_DST | SAMPLED | STORAGE, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan::texture] Allocating 524288 bytes of memory for image
DEBUG [gfaestus::vulkan::texture] Transitioning image to SHADER_READ_ONLY_OPTIMAL
DEBUG [gfaestus::vulkan::texture] Created image view
DEBUG [gfaestus::vulkan::texture] Image created: 0x2d6b47a70
DEBUG [gfaestus::reactor] spawning reactor task
DEBUG [gfaestus::reactor] spawning reactor task
DEBUG [gfaestus::reactor] spawning reactor task
DEBUG [gfaestus::reactor] spawning reactor task
DEBUG [gfaestus::reactor] spawning reactor task
DEBUG [gfaestus::script] Overlay values, min: 1, max: 4016
[src/main.rs:380]
DEBUG [gfaestus::vulkan::texture] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 1024, height: 64, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: TRANSFER_SRC | TRANSFER_DST | SAMPLED | STORAGE, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan::texture] Allocating 262144 bytes of memory for image
DEBUG [gfaestus::vulkan::texture] Transitioning image to SHADER_READ_ONLY_OPTIMAL
DEBUG [gfaestus::vulkan::texture] Created image view
DEBUG [gfaestus::vulkan::texture] Image created: 0x2c1ff8a20
DEBUG [gfaestus::vulkan::texture] Copying buffer into texture
[src/main.rs:388]
[src/main.rs:391]
WARN [gfaestus::gui::console] initializing app_module
WARN [gfaestus::gui::console] initializing msg_module
WARN [gfaestus::gui::console] initializing db_module
WARN [gfaestus::gui::console] initializing geo_module
WARN [gfaestus::gui::console] initializing modal_module
DEBUG [gfaestus::vulkan::texture] Creating 2048x64 R8_UNORM texture from pixel slice
DEBUG [gfaestus::vulkan::texture] Created staging buffer
DEBUG [gfaestus::vulkan::texture] Copied pixels into staging buffer
DEBUG [gfaestus::vulkan::texture] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8_UNORM, extent: Extent3D { width: 2048, height: 64, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: TRANSFER_SRC | TRANSFER_DST | SAMPLED, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan::texture] Filled image from staging buffer
WARN [gfaestus] uploaded path view texture: User(1)
DEBUG [gfaestus::vulkan::render_pass] Chose node ID image format: R32_UINT
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: B8G8R8A8_UNORM, extent: Extent3D { width: 3024, height: 1890, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_4, tiling: OPTIMAL, usage: COLOR_ATTACHMENT | TRANSIENT_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 22861440 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x135646740
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: B8G8R8A8_UNORM, extent: Extent3D { width: 3024, height: 1890, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 22861440 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x2d8e70950
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R32_UINT, extent: Extent3D { width: 3024, height: 1890, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_4, tiling: OPTIMAL, usage: COLOR_ATTACHMENT | TRANSIENT_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 22861440 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x136b0c280
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R32_UINT, extent: Extent3D { width: 3024, height: 1890, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: TRANSFER_SRC | COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 22861440 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x1252537c0
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 3024, height: 1890, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_4, tiling: OPTIMAL, usage: COLOR_ATTACHMENT | TRANSIENT_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 22861440 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x154754a20
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 3024, height: 1890, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: SAMPLED | COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 22861440 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x2d6b5ba90
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 3024, height: 1890, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: SAMPLED | COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 22861440 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x1252566c0
DEBUG [gfaestus::vulkan::render_pass] Chose node ID image format: R32_UINT
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: B8G8R8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_4, tiling: OPTIMAL, usage: COLOR_ATTACHMENT | TRANSIENT_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x2d6b5a720
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: B8G8R8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x1547367c0
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R32_UINT, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_4, tiling: OPTIMAL, usage: COLOR_ATTACHMENT | TRANSIENT_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x2d6b5c870
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R32_UINT, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: TRANSFER_SRC | COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x1369c6fa0
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_4, tiling: OPTIMAL, usage: COLOR_ATTACHMENT | TRANSIENT_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x154754a20
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: SAMPLED | COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x2d6b5bd80
DEBUG [gfaestus::vulkan] Creating image ImageCreateInfo { s_type: IMAGE_CREATE_INFO, p_next: 0x0, flags: , image_type: TYPE_2D, format: R8G8B8A8_UNORM, extent: Extent3D { width: 800, height: 600, depth: 1 }, mip_levels: 1, array_layers: 1, samples: TYPE_1, tiling: OPTIMAL, usage: SAMPLED | COLOR_ATTACHMENT, sharing_mode: EXCLUSIVE, queue_family_index_count: 0, p_queue_family_indices: 0x0, initial_layout: UNDEFINED }
DEBUG [gfaestus::vulkan] Allocating 1920000 bytes of memory for image
DEBUG [gfaestus::vulkan] Image created: 0x135646740
image