'vkQueueSubmit causing segfault

In the last couple of days I have started creating a game engine in vulkan but when calling vkQueueSubmit, the program just gives me a Segmentation Fault. i have looked through the code multiple times and I can't find the reason why the segfault occures.

I would be very glad if someone can help me out. The code where vkQueueSubmit is called is here: Window.cpp

Edit: the printed info is:

available extensions:
    VK_KHR_device_group_creation
    VK_KHR_display
    VK_KHR_external_fence_capabilities
    VK_KHR_external_memory_capabilities
    VK_KHR_external_semaphore_capabilities
    VK_KHR_get_display_properties2
    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_acquire_xlib_display
    VK_EXT_debug_report
    VK_EXT_direct_mode_display
    VK_EXT_display_surface_counter
    VK_EXT_debug_utils
validation layers enabled!
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
Segmentation fault (core dumped)

and the return code is 0

The call stack when the exception is this:

libvulkan_lvp.so![Unknown/Just-In-Time compiled code] (Unknown Source:0)
libpthread.so.0!start_thread(void * arg) (/build/glibc-sMfBJT/glibc-2.31/nptl/pthread_create.c:477)
libc.so.6!clone() (/build/glibc-sMfBJT/glibc-2.31/sysdeps/unix/sysv/linux/x86_64/clone.S:95)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source