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

terminate called after throwing an instance of 'std::runtime_error' #50

Open
wo315 opened this issue Apr 6, 2022 · 21 comments
Open

terminate called after throwing an instance of 'std::runtime_error' #50

wo315 opened this issue Apr 6, 2022 · 21 comments
Labels
bug Something isn't working platform: linux linux platform

Comments

@wo315
Copy link

wo315 commented Apr 6, 2022

bin git:(main) ✗ ./PilotEditor
terminate called after throwing an instance of 'std::runtime_error'
what(): enumerate physical devices
[1] 268905 abort (core dumped) ./PilotEditor

OS: Ubuntu 20.04.4 LTS x86_64
Host: Super Server 0123456789
Kernel: 5.13.0-39-generic
Uptime: 5 days, 9 hours, 47 mins
Packages: 2784 (dpkg)
Shell: zsh 5.8
Resolution: 3840x2160, 3840x2160
DE: Plasma
WM: KWin
WM Theme: Breeze
Theme: Breeze [Plasma], Breeze [GTK2/3]
Icons: breeze [Plasma], breeze [GTK2/3]
Terminal: konsole
Terminal Font: DejaVu Sans Mono 24
CPU: AMD EPYC 7543 (32) @ 2.800GHz
GPU: NVIDIA Quadro P620
Memory: 11218MiB / 128711MiB

Total Dedicated Memory: 1997MB
Used Dedicated Memory: 1674MB

I think it's about the Memory of my graphic card.

Thank you very much!

@BoomingTech-YuqiaoZhang
Copy link
Contributor

BoomingTech-YuqiaoZhang commented Apr 7, 2022

Hi. Perhaps you haven't installed the driver. Could you provide the output of the "vulkaninfo"?

@wo315
Copy link
Author

wo315 commented Apr 7, 2022

我现在安装了所有依赖,但是终端上我不能输入vulkaninfo,您的意思是还要安装其他的?

https://vulkan.lunarg.com/sdk/home

这里面的sdk?那告诉我安装哪一个版本呢?

@BoomingTech-YuqiaoZhang
Copy link
Contributor

apt install vulkan-utils

@BoomingTech-YuqiaoZhang
Copy link
Contributor

Have you installed the NVIDIA Driver which is stated by README.md?

@wo315
Copy link
Author

wo315 commented Apr 7, 2022

==========
VULKANINFO

Vulkan Instance Version: 1.2.198

Instance Extensions: count = 19

VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6

Layers: count = 9

VK_LAYER_KHRONOS_synchronization2 (Khronos Synchronization2 layer) Vulkan version 1.2.198, layer version 1:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (llvmpipe (LLVM 12.0.0, 256 bits))
Layer-Device Extensions: count = 1
VK_KHR_synchronization2 : extension revision 1

VK_LAYER_KHRONOS_validation (Khronos Validation Layer) Vulkan version 1.2.198, layer version 1:
Layer Extensions: count = 3
VK_EXT_debug_report : extension revision 9
VK_EXT_debug_utils : extension revision 1
VK_EXT_validation_features : extension revision 2
Devices: count = 1
GPU id = 0 (llvmpipe (LLVM 12.0.0, 256 bits))
Layer-Device Extensions: count = 3
VK_EXT_debug_marker : extension revision 4
VK_EXT_tooling_info : extension revision 1
VK_EXT_validation_cache : extension revision 1

VK_LAYER_LUNARG_api_dump (LunarG API dump layer) Vulkan version 1.2.198, layer version 2:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (llvmpipe (LLVM 12.0.0, 256 bits))
Layer-Device Extensions: count = 1
VK_EXT_tooling_info : extension revision 1

VK_LAYER_LUNARG_device_simulation (LunarG device simulation layer) Vulkan version 1.2.198, layer version 1:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (llvmpipe (LLVM 12.0.0, 256 bits))
Layer-Device Extensions: count = 1
VK_EXT_tooling_info : extension revision 1

VK_LAYER_LUNARG_gfxreconstruct (GFXReconstruct Capture Layer Version 0.9.10) Vulkan version 1.2.198, layer version 36874:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (llvmpipe (LLVM 12.0.0, 256 bits))
Layer-Device Extensions: count = 1
VK_EXT_tooling_info : extension revision 1

VK_LAYER_LUNARG_monitor (Execution Monitoring Layer) Vulkan version 1.2.198, layer version 1:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (llvmpipe (LLVM 12.0.0, 256 bits))
Layer-Device Extensions: count = 1
VK_EXT_tooling_info : extension revision 1

VK_LAYER_LUNARG_screenshot (LunarG image capture layer) Vulkan version 1.2.198, layer version 1:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (llvmpipe (LLVM 12.0.0, 256 bits))
Layer-Device Extensions: count = 1
VK_EXT_tooling_info : extension revision 1

VK_LAYER_MESA_device_select (Linux device selection layer) Vulkan version 1.2.73, layer version 1:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (llvmpipe (LLVM 12.0.0, 256 bits))
Layer-Device Extensions: count = 0

VK_LAYER_MESA_overlay (Mesa Overlay layer) Vulkan version 1.1.73, layer version 1:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (llvmpipe (LLVM 12.0.0, 256 bits))
Layer-Device Extensions: count = 0

Presentable Surfaces:

GPU id : 0 (llvmpipe (LLVM 12.0.0, 256 bits)):
Surface types: count = 2
VK_KHR_xcb_surface
VK_KHR_xlib_surface
Formats: count = 2
SurfaceFormat[0]:
format = FORMAT_B8G8R8A8_SRGB
colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
SurfaceFormat[1]:
format = FORMAT_B8G8R8A8_UNORM
colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
Present Modes: count = 4
PRESENT_MODE_IMMEDIATE_KHR
PRESENT_MODE_MAILBOX_KHR
PRESENT_MODE_FIFO_KHR
PRESENT_MODE_FIFO_RELAXED_KHR
VkSurfaceCapabilitiesKHR:
-------------------------
minImageCount = 3
maxImageCount = 0
currentExtent:
width = 256
height = 256
minImageExtent:
width = 256
height = 256
maxImageExtent:
width = 256
height = 256
maxImageArrayLayers = 1
supportedTransforms: count = 1
SURFACE_TRANSFORM_IDENTITY_BIT_KHR
currentTransform = SURFACE_TRANSFORM_IDENTITY_BIT_KHR
supportedCompositeAlpha: count = 2
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_INHERIT_BIT_KHR
supportedUsageFlags: count = 5
IMAGE_USAGE_TRANSFER_SRC_BIT
IMAGE_USAGE_TRANSFER_DST_BIT
IMAGE_USAGE_SAMPLED_BIT
IMAGE_USAGE_STORAGE_BIT
IMAGE_USAGE_COLOR_ATTACHMENT_BIT
VkSurfaceCapabilities2EXT:
--------------------------
supportedSurfaceCounters:
None
VkSurfaceProtectedCapabilitiesKHR:
----------------------------------
supportsProtected = false

Device Groups:

Group 0:
Properties:
physicalDevices: count = 1
llvmpipe (LLVM 12.0.0, 256 bits) (ID: 0)
subsetAllocation = 0

Present Capabilities:
	llvmpipe (LLVM 12.0.0, 256 bits) (ID: 0):
		Can present images from the following devices: count = 1
			llvmpipe (LLVM 12.0.0, 256 bits) (ID: 0)
	Present modes: count = 1
		DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR

Device Properties and Extensions:

GPU0:
VkPhysicalDeviceProperties:

apiVersion        = 4198582 (1.1.182)
driverVersion     = 1 (0x0001)
vendorID          = 0x10005
deviceID          = 0x0000
deviceType        = PHYSICAL_DEVICE_TYPE_CPU
deviceName        = llvmpipe (LLVM 12.0.0, 256 bits)
pipelineCacheUUID = 76616c2d-696d-6500-0000-000000000000

VkPhysicalDeviceLimits:

maxImageDimension1D                             = 16384
maxImageDimension2D                             = 16384
maxImageDimension3D                             = 4096
maxImageDimensionCube                           = 32768
maxImageArrayLayers                             = 2048
maxTexelBufferElements                          = 134217728
maxUniformBufferRange                           = 65536
maxStorageBufferRange                           = 134217728
maxPushConstantsSize                            = 128
maxMemoryAllocationCount                        = 4294967295
maxSamplerAllocationCount                       = 32768
bufferImageGranularity                          = 0x00000040
sparseAddressSpaceSize                          = 0x00000000
maxBoundDescriptorSets                          = 8
maxPerStageDescriptorSamplers                   = 32
maxPerStageDescriptorUniformBuffers             = 15
maxPerStageDescriptorStorageBuffers             = 16
maxPerStageDescriptorSampledImages              = 128
maxPerStageDescriptorStorageImages              = 16
maxPerStageDescriptorInputAttachments           = 8
maxPerStageResources                            = 128
maxDescriptorSetSamplers                        = 32768
maxDescriptorSetUniformBuffers                  = 256
maxDescriptorSetUniformBuffersDynamic           = 256
maxDescriptorSetStorageBuffers                  = 256
maxDescriptorSetStorageBuffersDynamic           = 256
maxDescriptorSetSampledImages                   = 256
maxDescriptorSetStorageImages                   = 256
maxDescriptorSetInputAttachments                = 256
maxVertexInputAttributes                        = 32
maxVertexInputBindings                          = 32
maxVertexInputAttributeOffset                   = 2047
maxVertexInputBindingStride                     = 2048
maxVertexOutputComponents                       = 128
maxTessellationGenerationLevel                  = 64
maxTessellationPatchSize                        = 32
maxTessellationControlPerVertexInputComponents  = 128
maxTessellationControlPerVertexOutputComponents = 128
maxTessellationControlPerPatchOutputComponents  = 128
maxTessellationControlTotalOutputComponents     = 4096
maxTessellationEvaluationInputComponents        = 128
maxTessellationEvaluationOutputComponents       = 128
maxGeometryShaderInvocations                    = 32
maxGeometryInputComponents                      = 64
maxGeometryOutputComponents                     = 128
maxGeometryOutputVertices                       = 1024
maxGeometryTotalOutputComponents                = 1024
maxFragmentInputComponents                      = 128
maxFragmentOutputAttachments                    = 8
maxFragmentDualSrcAttachments                   = 2
maxFragmentCombinedOutputResources              = 8
maxComputeSharedMemorySize                      = 32768
maxComputeWorkGroupCount: count = 3
	65535
	65535
	65535
maxComputeWorkGroupInvocations                  = 1024
maxComputeWorkGroupSize: count = 3
	1024
	1024
	1024
subPixelPrecisionBits                           = 8
subTexelPrecisionBits                           = 8
mipmapPrecisionBits                             = 8
maxDrawIndexedIndexValue                        = 4294967295
maxDrawIndirectCount                            = 4294967295
maxSamplerLodBias                               = 16
maxSamplerAnisotropy                            = 16
maxViewports                                    = 16
maxViewportDimensions: count = 2
	16384
	16384
viewportBoundsRange: count = 2
	-32768
	32768
viewportSubPixelBits                            = 0
minMemoryMapAlignment                           = 64
minTexelBufferOffsetAlignment                   = 0x00000010
minUniformBufferOffsetAlignment                 = 0x00000010
minStorageBufferOffsetAlignment                 = 0x00000010
minTexelOffset                                  = -32
maxTexelOffset                                  = 31
minTexelGatherOffset                            = -32
maxTexelGatherOffset                            = 31
minInterpolationOffset                          = -2
maxInterpolationOffset                          = 2
subPixelInterpolationOffsetBits                 = 8
maxFramebufferWidth                             = 16384
maxFramebufferHeight                            = 16384
maxFramebufferLayers                            = 2048
framebufferColorSampleCounts: count = 2
	SAMPLE_COUNT_1_BIT
	SAMPLE_COUNT_4_BIT
framebufferDepthSampleCounts: count = 2
	SAMPLE_COUNT_1_BIT
	SAMPLE_COUNT_4_BIT
framebufferStencilSampleCounts: count = 2
	SAMPLE_COUNT_1_BIT
	SAMPLE_COUNT_4_BIT
framebufferNoAttachmentsSampleCounts: count = 2
	SAMPLE_COUNT_1_BIT
	SAMPLE_COUNT_4_BIT
maxColorAttachments                             = 8
sampledImageColorSampleCounts: count = 2
	SAMPLE_COUNT_1_BIT
	SAMPLE_COUNT_4_BIT
sampledImageIntegerSampleCounts: count = 2
	SAMPLE_COUNT_1_BIT
	SAMPLE_COUNT_4_BIT
sampledImageDepthSampleCounts: count = 2
	SAMPLE_COUNT_1_BIT
	SAMPLE_COUNT_4_BIT
sampledImageStencilSampleCounts: count = 2
	SAMPLE_COUNT_1_BIT
	SAMPLE_COUNT_4_BIT
storageImageSampleCounts: count = 2
	SAMPLE_COUNT_1_BIT
	SAMPLE_COUNT_4_BIT
maxSampleMaskWords                              = 1
timestampComputeAndGraphics                     = true
timestampPeriod                                 = 1
maxClipDistances                                = 8
maxCullDistances                                = 8
maxCombinedClipAndCullDistances                 = 8
discreteQueuePriorities                         = 2
pointSizeRange: count = 2
	0
	255
lineWidthRange: count = 2
	1
	255
pointSizeGranularity                            = 0.125
lineWidthGranularity                            = 0.0078125
strictLines                                     = true
standardSampleLocations                         = true
optimalBufferCopyOffsetAlignment                = 0x00000080
optimalBufferCopyRowPitchAlignment              = 0x00000080
nonCoherentAtomSize                             = 0x00000040

VkPhysicalDeviceSparseProperties:

residencyStandard2DBlockShape            = false
residencyStandard2DMultisampleBlockShape = false
residencyStandard3DBlockShape            = false
residencyAlignedMipSize                  = false
residencyNonResidentStrict               = false

VkPhysicalDeviceCustomBorderColorPropertiesEXT:

maxCustomBorderColorSamplers = 32768

VkPhysicalDeviceDriverPropertiesKHR:

driverID           = DRIVER_ID_MESA_LLVMPIPE
driverName         = llvmpipe
driverInfo         = Mesa 21.2.6 (LLVM 12.0.0)
conformanceVersion = 1.0.0.0

VkPhysicalDeviceIDProperties:

deviceUUID      = 00000000-0000-0000-0000-000000000000
driverUUID      = 00000000-0000-0000-0000-000000000000
deviceNodeMask  = 0
deviceLUIDValid = false

VkPhysicalDeviceLineRasterizationPropertiesEXT:

lineSubPixelPrecisionBits = 8

VkPhysicalDeviceMaintenance3Properties:

maxPerSetDescriptors    = 1024
maxMemoryAllocationSize = 0x80000000

VkPhysicalDeviceMultiDrawPropertiesEXT:

maxMultiDrawCount = 2048

VkPhysicalDeviceMultiviewProperties:

maxMultiviewViewCount     = 6
maxMultiviewInstanceIndex = 2147483647

VkPhysicalDevicePointClippingProperties:

pointClippingBehavior = POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES

VkPhysicalDeviceProtectedMemoryProperties:

protectedNoFault = false

VkPhysicalDeviceProvokingVertexPropertiesEXT:

provokingVertexModePerPipeline                       = true
transformFeedbackPreservesTriangleFanProvokingVertex = true

VkPhysicalDevicePushDescriptorPropertiesKHR:

maxPushDescriptors = 32

VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT:

filterMinmaxSingleComponentFormats = true
filterMinmaxImageComponentMapping  = true

VkPhysicalDeviceSubgroupProperties:

subgroupSize              = 8
supportedStages: count = 4
	SHADER_STAGE_FRAGMENT_BIT
	SHADER_STAGE_COMPUTE_BIT
	SHADER_STAGE_ALL_GRAPHICS
	SHADER_STAGE_ALL
supportedOperations: count = 4
	SUBGROUP_FEATURE_BASIC_BIT
	SUBGROUP_FEATURE_VOTE_BIT
	SUBGROUP_FEATURE_ARITHMETIC_BIT
	SUBGROUP_FEATURE_BALLOT_BIT
quadOperationsInAllStages = false

VkPhysicalDeviceTransformFeedbackPropertiesEXT:

maxTransformFeedbackStreams                = 4
maxTransformFeedbackBuffers                = 4
maxTransformFeedbackBufferSize             = 0xffffffff
maxTransformFeedbackStreamDataSize         = 512
maxTransformFeedbackBufferDataSize         = 512
maxTransformFeedbackBufferDataStride       = 512
transformFeedbackQueries                   = true
transformFeedbackStreamsLinesTriangles     = false
transformFeedbackRasterizationStreamSelect = false
transformFeedbackDraw                      = true

VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT:

maxVertexAttribDivisor = 4294967295

Device Extensions: count = 54

VK_EXT_calibrated_timestamps          : extension revision 2
VK_EXT_conditional_rendering          : extension revision 2
VK_EXT_custom_border_color            : extension revision 12
VK_EXT_extended_dynamic_state         : extension revision 1
VK_EXT_extended_dynamic_state2        : extension revision 1
VK_EXT_host_query_reset               : extension revision 1
VK_EXT_index_type_uint8               : extension revision 1
VK_EXT_line_rasterization             : extension revision 1
VK_EXT_multi_draw                     : extension revision 1
VK_EXT_post_depth_coverage            : extension revision 1
VK_EXT_private_data                   : extension revision 1
VK_EXT_provoking_vertex               : extension revision 1
VK_EXT_sampler_filter_minmax          : extension revision 2
VK_EXT_scalar_block_layout            : extension revision 1
VK_EXT_separate_stencil_usage         : extension revision 1
VK_EXT_shader_stencil_export          : extension revision 1
VK_EXT_shader_viewport_index_layer    : extension revision 1
VK_EXT_transform_feedback             : extension revision 1
VK_EXT_vertex_attribute_divisor       : extension revision 3
VK_EXT_vertex_input_dynamic_state     : extension revision 2
VK_GOOGLE_decorate_string             : extension revision 1
VK_GOOGLE_hlsl_functionality1         : extension revision 1
VK_KHR_16bit_storage                  : extension revision 1
VK_KHR_8bit_storage                   : extension revision 1
VK_KHR_bind_memory2                   : extension revision 1
VK_KHR_buffer_device_address          : extension revision 1
VK_KHR_copy_commands2                 : extension revision 1
VK_KHR_create_renderpass2             : extension revision 1
VK_KHR_dedicated_allocation           : extension revision 3
VK_KHR_descriptor_update_template     : extension revision 1
VK_KHR_device_group                   : extension revision 4
VK_KHR_draw_indirect_count            : extension revision 1
VK_KHR_driver_properties              : extension revision 1
VK_KHR_external_fence                 : extension revision 1
VK_KHR_external_memory                : extension revision 1
VK_KHR_external_semaphore             : extension revision 1
VK_KHR_get_memory_requirements2       : extension revision 1
VK_KHR_image_format_list              : extension revision 1
VK_KHR_imageless_framebuffer          : extension revision 1
VK_KHR_incremental_present            : extension revision 2
VK_KHR_maintenance1                   : extension revision 2
VK_KHR_maintenance2                   : extension revision 1
VK_KHR_maintenance3                   : extension revision 1
VK_KHR_multiview                      : extension revision 1
VK_KHR_push_descriptor                : extension revision 2
VK_KHR_relaxed_block_layout           : extension revision 1
VK_KHR_sampler_mirror_clamp_to_edge   : extension revision 3
VK_KHR_separate_depth_stencil_layouts : extension revision 1
VK_KHR_shader_atomic_int64            : extension revision 1
VK_KHR_shader_draw_parameters         : extension revision 1
VK_KHR_storage_buffer_storage_class   : extension revision 1
VK_KHR_swapchain                      : extension revision 70
VK_KHR_uniform_buffer_standard_layout : extension revision 1
VK_KHR_variable_pointers              : extension revision 1

VkQueueFamilyProperties:

queueProperties[0]:
-------------------
	minImageTransferGranularity = (1,1,1)
	queueCount                  = 1
	queueFlags                  = QUEUE_GRAPHICS | QUEUE_COMPUTE | QUEUE_TRANSFER
	timestampValidBits          = 64
	present support             = true

VkPhysicalDeviceMemoryProperties:

memoryHeaps: count = 1
memoryHeaps[0]:
size = 2147483648 (0x80000000) (2.00 GiB)
flags: count = 1
MEMORY_HEAP_DEVICE_LOCAL_BIT
memoryTypes: count = 1
memoryTypes[0]:
heapIndex = 0
propertyFlags = 0x000f: count = 4
MEMORY_PROPERTY_DEVICE_LOCAL_BIT
MEMORY_PROPERTY_HOST_VISIBLE_BIT
MEMORY_PROPERTY_HOST_COHERENT_BIT
MEMORY_PROPERTY_HOST_CACHED_BIT
usable for:
IMAGE_TILING_OPTIMAL:
color images
FORMAT_D16_UNORM
FORMAT_X8_D24_UNORM_PACK32
FORMAT_D32_SFLOAT
FORMAT_S8_UINT
FORMAT_D24_UNORM_S8_UINT
FORMAT_D32_SFLOAT_S8_UINT
(non-sparse)
IMAGE_TILING_LINEAR:
color images
(non-sparse)

VkPhysicalDeviceFeatures:

robustBufferAccess                      = true
fullDrawIndexUint32                     = true
imageCubeArray                          = true
independentBlend                        = true
geometryShader                          = true
tessellationShader                      = true
sampleRateShading                       = true
dualSrcBlend                            = true
logicOp                                 = true
multiDrawIndirect                       = true
drawIndirectFirstInstance               = true
depthClamp                              = true
depthBiasClamp                          = true
fillModeNonSolid                        = true
depthBounds                             = false
wideLines                               = true
largePoints                             = true
alphaToOne                              = true
multiViewport                           = true
samplerAnisotropy                       = false
textureCompressionETC2                  = false
textureCompressionASTC_LDR              = false
textureCompressionBC                    = true
occlusionQueryPrecise                   = true
pipelineStatisticsQuery                 = true
vertexPipelineStoresAndAtomics          = true
fragmentStoresAndAtomics                = true
shaderTessellationAndGeometryPointSize  = true
shaderImageGatherExtended               = true
shaderStorageImageExtendedFormats       = true
shaderStorageImageMultisample           = true
shaderStorageImageReadWithoutFormat     = false
shaderStorageImageWriteWithoutFormat    = true
shaderUniformBufferArrayDynamicIndexing = false
shaderSampledImageArrayDynamicIndexing  = false
shaderStorageBufferArrayDynamicIndexing = false
shaderStorageImageArrayDynamicIndexing  = false
shaderClipDistance                      = true
shaderCullDistance                      = true
shaderFloat64                           = true
shaderInt64                             = true
shaderInt16                             = true
shaderResourceResidency                 = false
shaderResourceMinLod                    = false
sparseBinding                           = false
sparseResidencyBuffer                   = false
sparseResidencyImage2D                  = false
sparseResidencyImage3D                  = false
sparseResidency2Samples                 = false
sparseResidency4Samples                 = false
sparseResidency8Samples                 = false
sparseResidency16Samples                = false
sparseResidencyAliased                  = false
variableMultisampleRate                 = false
inheritedQueries                        = false

VkPhysicalDevice16BitStorageFeatures:

storageBuffer16BitAccess           = true
uniformAndStorageBuffer16BitAccess = true
storagePushConstant16              = true
storageInputOutput16               = false

VkPhysicalDevice8BitStorageFeaturesKHR:

storageBuffer8BitAccess           = true
uniformAndStorageBuffer8BitAccess = true
storagePushConstant8              = true

VkPhysicalDeviceBufferDeviceAddressFeaturesKHR:

bufferDeviceAddress              = true
bufferDeviceAddressCaptureReplay = false
bufferDeviceAddressMultiDevice   = false

VkPhysicalDeviceConditionalRenderingFeaturesEXT:

conditionalRendering          = true
inheritedConditionalRendering = false

VkPhysicalDeviceCustomBorderColorFeaturesEXT:

customBorderColors             = true
customBorderColorWithoutFormat = true

VkPhysicalDeviceExtendedDynamicState2FeaturesEXT:

extendedDynamicState2                   = true
extendedDynamicState2LogicOp            = true
extendedDynamicState2PatchControlPoints = true

VkPhysicalDeviceExtendedDynamicStateFeaturesEXT:

extendedDynamicState = true

VkPhysicalDeviceHostQueryResetFeaturesEXT:

hostQueryReset = true

VkPhysicalDeviceImagelessFramebufferFeaturesKHR:

imagelessFramebuffer = true

VkPhysicalDeviceIndexTypeUint8FeaturesEXT:

indexTypeUint8 = true

VkPhysicalDeviceLineRasterizationFeaturesEXT:

rectangularLines         = true
bresenhamLines           = true
smoothLines              = true
stippledRectangularLines = true
stippledBresenhamLines   = true
stippledSmoothLines      = true

VkPhysicalDeviceMultiDrawFeaturesEXT:

multiDraw = true

VkPhysicalDeviceMultiviewFeatures:

multiview                   = true
multiviewGeometryShader     = true
multiviewTessellationShader = true

VkPhysicalDevicePrivateDataFeaturesEXT:

privateData = true

VkPhysicalDeviceProtectedMemoryFeatures:

protectedMemory = false

VkPhysicalDeviceProvokingVertexFeaturesEXT:

provokingVertexLast                       = true
transformFeedbackPreservesProvokingVertex = true

VkPhysicalDeviceSamplerYcbcrConversionFeatures:

samplerYcbcrConversion = false

VkPhysicalDeviceScalarBlockLayoutFeaturesEXT:

scalarBlockLayout = true

VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesKHR:

separateDepthStencilLayouts = true

VkPhysicalDeviceShaderAtomicInt64FeaturesKHR:

shaderBufferInt64Atomics = true
shaderSharedInt64Atomics = true

VkPhysicalDeviceShaderDrawParametersFeatures:

shaderDrawParameters = true

VkPhysicalDeviceTransformFeedbackFeaturesEXT:

transformFeedback = true
geometryStreams   = true

VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR:

uniformBufferStandardLayout = true

VkPhysicalDeviceVariablePointersFeatures:

variablePointersStorageBuffer = true
variablePointers              = false

VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT:

vertexAttributeInstanceRateDivisor     = true
vertexAttributeInstanceRateZeroDivisor = false

VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT:

vertexInputDynamicState = true

@wo315
Copy link
Author

wo315 commented Apr 7, 2022

是的,我安装了nvidia的cuda相关内容。

@wo315
Copy link
Author

wo315 commented Apr 7, 2022

对了,错误还是一样的。

@BoomingTech-YuqiaoZhang
Copy link
Contributor

You haven't installed the NVIDIA driver properly since there is no "NVIDIA" in the output of "vulkaninfo".

@wo315
Copy link
Author

wo315 commented Apr 7, 2022

You haven't installed the NVIDIA driver properly since there is no "NVIDIA" in the output of "vulkaninfo".

现在还是错误,但是错误信息是, what(): failed to allocate image memory!

@BoomingTech-YuqiaoZhang
Copy link
Contributor

You haven't installed the NVIDIA driver properly since there is no "NVIDIA" in the output of "vulkaninfo".

现在还是错误,但是错误信息是, what(): failed to allocate image memory!

Perhaps you should upgrade your card. "NVIDIA Quadro P620" is not suitable for game.

@wo315
Copy link
Author

wo315 commented Apr 7, 2022

You haven't installed the NVIDIA driver properly since there is no "NVIDIA" in the output of "vulkaninfo".

现在还是错误,但是错误信息是, what(): failed to allocate image memory!

Perhaps you should upgrade your card. "NVIDIA Quadro P620" is not suitable for game.

Can you give me any suggestion about graphic card?

I can spend no more than 6000RMB to buy a new card.

How to avoid mining cards?

@BoomingTech-YuqiaoZhang
Copy link
Contributor

Perhaps you can disable the point light shadow maps which waste too much memory,

@hyv1001
Copy link
Collaborator

hyv1001 commented Apr 7, 2022

I don't think it's the problem of the graphics card and the 2G dedicated memory should be enough for Pilot.

@wo315
Copy link
Author

wo315 commented Apr 7, 2022

I don't think it's the problem of the graphics card and the 2G dedicated memory should be enough for Pilot.

My mechine has 128G ECC DDR4 memory

@hyv1001
Copy link
Collaborator

hyv1001 commented Apr 7, 2022

I don't think it's the problem of the graphics card and the 2G dedicated memory should be enough for Pilot.

My mechine has 128G ECC DDR4 memory

I mean the dedicated video memory

@hyv1001
Copy link
Collaborator

hyv1001 commented Apr 7, 2022

Could you provide the callstack for the last crash: " what(): failed to allocate image memory!"
You can get the callstack by running the PilotEditor binary with gdb or lldb.
Or you can generate the core file as the following link

@hyv1001 hyv1001 added bug Something isn't working platform: linux linux platform labels Apr 7, 2022
@wo315
Copy link
Author

wo315 commented Apr 7, 2022

`(gdb) r
Starting program: /home/cfd-wy/Desktop/2022/April/Pilot/bin/PilotEditor
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea3b4700 (LWP 23379)]
[New Thread 0x7fffe9bb3700 (LWP 23380)]
terminate called after throwing an instance of 'std::runtime_error'
what(): failed to allocate image memory!

Thread 1 "PilotEditor" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.`

@ShenMian
Copy link
Contributor

ShenMian commented Apr 8, 2022

@wo315 我想正确的指令可能是这样的:

(gdb) catch throw
(gdb) r
(gdb) bt # 或者 where, 应该也行

@ShenMian
Copy link
Contributor

ShenMian commented Apr 8, 2022

或许你可以尝试以下 #45 中讨论过的方法.

@HanetakaChou
Copy link
Contributor

I don't think it's the problem of the graphics card and the 2G dedicated memory should be enough for Pilot.

My mechine has 128G ECC DDR4 memory

I mean the dedicated video memory

Perhaps other applications consume video memory as well. Pilot is NOT the only application.

@wo315
Copy link
Author

wo315 commented Apr 8, 2022

(No debugging symbols found in PilotEditor)
(gdb) catch throw
Catchpoint 1 (throw)
(gdb) r
Starting program: /home/cfd-wy/Desktop/2022/April/Pilot/bin/PilotEditor 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea3b4700 (LWP 18659)]
[New Thread 0x7fffe9bb3700 (LWP 18660)]

Thread 1 "PilotEditor" hit Catchpoint 1 (exception thrown), 0x00007ffff7aac672 in __cxa_throw ()
   from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007ffff7aac672 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x000055555557cc0a in Pilot::PVulkanUtil::createImage(VkPhysicalDevice_T*, VkDevice_T*, unsigned int, unsigned int, VkFormat, VkImageTiling, unsigned int, unsigned int, VkImage_T*&, VkDeviceMemory_T*&, unsigned int, unsigned int, unsigned int) [clone .cold] ()
#2  0x000055555567707c in Pilot::PPointLightPass::setupAttachments() ()
#3  0x0000555555677293 in Pilot::PPointLightPass::initialize() ()
#4  0x000055555567856c in Pilot::PVulkanManager::initializeRenderPass() ()
#5  0x0000555555661ccc in Pilot::PVulkanManager::initialize(GLFWwindow*, Pilot::Scene&, Pilot::PilotRenderer*) ()
#6  0x00005555555b7cfc in Pilot::PVulkanManager::PVulkanManager(GLFWwindow*, Pilot::Scene&, Pilot::PilotRenderer*) ()
#7  0x00005555555b133a in Pilot::SurfaceRHI::initialize(Pilot::SurfaceIO*, Pilot::FrameBuffer const*) ()
#8  0x00005555555b0714 in Pilot::PilotRenderer::initialize() ()
#9  0x00005555555a4e6a in Pilot::PilotEngine::startEngine(Pilot::EngineInitParams const&) ()
#10 0x0000555555580960 in main ()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: linux linux platform
Projects
None yet
Development

No branches or pull requests

5 participants