Skip to content

vulkan_inference_gui sample crashing / failing to build #2456

Closed

Description

@ScottTodd

This sample isn't continuously tested, so it tends to break occasionally. Seeing a few (probably unrelated) issues.

Windows Bazel fails to build on my machine:

bazel version 2.1.0

bazel run iree/samples/vulkan:vulkan_inference_gui
...
ERROR: D:/dev/cache/iree_bazeluserroot/3mtfpusj/external/sdl2/BUILD.bazel:157:1: C++ compilation of rule '@sdl2//:SDL2' failed (Exit 2)
external/sdl2/src/sensor/SDL_sensor.c(45): error C2059: syntax error: '}'
external/sdl2/src/sensor/SDL_sensor.c(85): warning C4034: sizeof returns 0
external/sdl2/src/sensor/SDL_sensor.c(101): warning C4034: sizeof returns 0
external/sdl2/src/sensor/SDL_sensor.c(127): warning C4034: sizeof returns 0
external/sdl2/src/sensor/SDL_sensor.c(456): warning C4034: sizeof returns 0
external/sdl2/src/sensor/SDL_sensor.c(544): warning C4034: sizeof returns 0

Possibly related to compiler flag changes. Could try tweaking flags and/or updating the sdl2 submodule.


Windows CMake builds but crashes:

I D:\dev\projects\iree\iree\samples\vulkan\vulkan_inference_gui.cc:557] Creating Vulkan driver/device
I D:\dev\projects\iree\iree\hal\vulkan\api.cc:306] Creating VulkanDevice...
[vk_mem_alloc.h : 15777] RAW: vmaCreateAllocator
I D:\dev\projects\iree\iree\hal\vulkan\api.cc:316] Successfully created device 'GeForce RTX 2080 Ti'
I D:\dev\projects\iree\iree\samples\vulkan\vulkan_inference_gui.cc:589] Loading simple_mul.mlir...
I D:\dev\projects\iree\iree\samples\vulkan\vulkan_inference_gui.cc:605] Module loaded and context is ready for use
I D:\dev\projects\iree\iree\samples\vulkan\vulkan_inference_gui.cc:689] Creating I/O buffers...
[vk_mem_alloc.h : 16824] RAW: vmaCreateBuffer
[vk_mem_alloc.h : 14433] RAW:   AllocateMemory: MemoryTypeIndex=3, AllocationCount=1, Size=256
[vk_mem_alloc.h : 11744] RAW:     Created new block Size=8388608
[vk_mem_alloc.h : 16824] RAW: vmaCreateBuffer
[vk_mem_alloc.h : 14433] RAW:   AllocateMemory: MemoryTypeIndex=3, AllocationCount=1, Size=256
[vk_mem_alloc.h : 11648] RAW:     Returned from existing block #0
[vk_mem_alloc.h : 16824] RAW: vmaCreateBuffer
[vk_mem_alloc.h : 14433] RAW:   AllocateMemory: MemoryTypeIndex=4, AllocationCount=1, Size=256
[vk_mem_alloc.h : 11744] RAW:     Created new block Size=4030464
Assertion failed!

Program: ...build\iree\samples\vulkan\vulkan_inference_gui.exe
File: D:\dev\projects\iree\iree\vm\stack.c
Line: 502

Expression: src_reg_list->size == dst_reg_list->size

Maybe C API usage needs updating?

Activity

  1. added
    bug 🐞
    platform/windows 🚪
    on Jul 9, 2020
  2. self-assigned this
    on Jul 9, 2020
  3. added
    hal/vulkan
    on Jul 20, 2020
  4. ScottTodd commented on Jul 24, 2020

    @ScottTodd
    MemberAuthor

    Windows CMake runs correctly now, possibly thanks to #2558. Bazel build still fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug 🐞hal/vulkanplatform/windows 🚪

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions