igl icon indicating copy to clipboard operation
igl copied to clipboard

Unable to run sample applications

Open bkeys opened this issue 2 years ago • 5 comments

I try to run them and I get the following errors:

[bkeys@desktop desktop]$ ./Tiny
[IGL] Error in (void igl::vulkan::VulkanContext::createInstance(const size_t, const char **)).
Vulkan API call failed: /home/bkeys/Devel/igl/src/igl/vulkan/VulkanContext.cpp:303
  ivkCreateInstance(VK_API_VERSION_1_1, config_.enableValidation, config_.enableGPUAssistedValidation, config_.enableSynchronizationValidation, instanceExtensions.size(), instanceExtensions.data(), &vkInstance_)
  VK_ERROR_LAYER_NOT_PRESENT
Tiny: /home/bkeys/Devel/igl/src/igl/vulkan/VulkanContext.cpp:303: void igl::vulkan::VulkanContext::createInstance(const size_t, const char **): Assertion `false' failed.
Aborted (core dumped)

OpenGL based applications do not work either:

[IGL] Error in (void (anonymous namespace)::glfwErrorHandler(int, const char *)).
GLFW Error: GLX: Failed to create context: GLXBadFBConfig

I am running Fedora Workstation 38, on KDE Wayland session.

bkeys avatar Jul 08 '23 02:07 bkeys

Thanks for the report, we'll take a look!

rudybear avatar Jul 09 '23 05:07 rudybear

@bkeys you should install vulkan validation layer! also how you switch ./Tiny sample to run in OpenGL mode? have to recompile or some launch argument? thanks..

oscarbg avatar Jul 10 '23 07:07 oscarbg

I installed the validation layers, now when I run a vulkan example I get the following:

Vulkan instance extensions:
  VK_KHR_device_group_creation
  VK_KHR_external_fence_capabilities
  VK_KHR_external_memory_capabilities
  VK_KHR_external_semaphore_capabilities
  VK_KHR_get_physical_device_properties2
  VK_KHR_get_surface_capabilities2
  VK_KHR_surface
  VK_KHR_surface_protected_capabilities
  VK_KHR_wayland_surface
  VK_KHR_xcb_surface
  VK_KHR_xlib_surface
  VK_EXT_debug_report
  VK_EXT_debug_utils
  VK_KHR_display
  VK_KHR_get_display_properties2
  VK_EXT_acquire_drm_display
  VK_EXT_acquire_xlib_display
  VK_EXT_direct_mode_display
  VK_EXT_display_surface_counter
  VK_EXT_surface_maintenance1
  VK_EXT_swapchain_colorspace
  VK_KHR_portability_enumeration
  VK_LUNARG_direct_driver_loading
Segmentation fault (core dumped)

bkeys avatar Jul 10 '23 15:07 bkeys

@bkeys Wayland support is not implemented (yet).

corporateshark avatar Jul 10 '23 18:07 corporateshark

@bkeys you should install vulkan validation layer! also how you switch ./Tiny sample to run in OpenGL mode? have to recompile or some launch argument? thanks..

@oscarbg, set USE_OPENGL_BACKEND to 1 in samples/desktop/Tiny/Tiny.cpp and rerun make.

KaivalyaD avatar Jul 14 '23 10:07 KaivalyaD