Piccolo icon indicating copy to clipboard operation
Piccolo copied to clipboard

在虚拟机中运行引擎,会提示找不到设备的错误

Open rocketman123456 opened this issue 3 years ago • 3 comments

Describe the bug | Bug描述 在虚拟机中运行引擎,会提示找不到设备的错误,请问这个有计划解决吗?还是就是设计的不提供支持? 虚拟机是VMware,运行Ubuntu 20.04 LTS,CMake使用3.22

rocketman123456 avatar May 21 '22 07:05 rocketman123456

这个后续会解决,引擎应该可以在虚拟机内运行。 感谢上报!

hyv1001 avatar May 22 '22 02:05 hyv1001

这个问题解决了没?我用的是Virtual Box也无法运行。

报错内容: leo@leo-VirtualBox:~/games104/Piccolo/bin$ ./PiccoloEditor terminate called after throwing an instance of 'std::runtime_error' what(): failed to find suitable physical device 已放弃 (核心已转储)

我翻了一下,代码在这个文件535行,可惜不懂逻辑,不会改。。。 engine/source/runtime/function/render/rhi/vulkan/vulkan_rhi.cpp

if (m_physical_device == VK_NULL_HANDLE) { throw std::runtime_error("failed to find suitable physical device"); }

huanglei avatar Jul 16 '22 16:07 huanglei

这个问题解决了没?我用的是Virtual Box也无法运行。

报错内容: leo@leo-VirtualBox:~/games104/Piccolo/bin$ ./PiccoloEditor terminate called after throwing an instance of 'std::runtime_error' what(): failed to find suitable physical device 已放弃 (核心已转储)

我翻了一下,代码在这个文件535行,可惜不懂逻辑,不会改。。。 engine/source/runtime/function/render/rhi/vulkan/vulkan_rhi.cpp

if (m_physical_device == VK_NULL_HANDLE) { throw std::runtime_error("failed to find suitable physical device"); }

没有解决,这个是没有找到vulkan device的问题,可能是在虚拟机遍历了所有gpu设备后没有满足渲染需求的,所以抛出这个异常。

rocketman123456 avatar Jul 17 '22 04:07 rocketman123456