Piccolo icon indicating copy to clipboard operation
Piccolo copied to clipboard

PilotEditor shows VK_ERROR_DEVICE_LOST on starting

Open jianggx opened this issue 2 years ago • 8 comments

I got VK_ERROR_DEVICE_LOST error after started PilotEditor, then got empty(black )main window. any suggestions? thanks

below are the command lines: $ bin/PilotEditor [info] [startEngine] engine start [mvk-error] VK_ERROR_DEVICE_LOST: Command buffer 0x7fa820f493a0 "vkQueueSubmit CommandBuffer on Queue 0-0" execution failed (code 9): Invalid Resource (00000009:kIOAccelCommandBufferCallbackErrorInvalidResource)

macOS: Monterey xcode: 13.3

jianggx avatar Apr 05 '22 12:04 jianggx

A similar issue has been fixed by #65, could you check it again with the lastest code?

hyv1001 avatar Apr 08 '22 06:04 hyv1001

thanks, but I still got the same issue after rebuild the latest code. 😁

what I did are:

  • sync the latest code
  • clear the build folder
  • run cmake -S . -B build -G "Xcode" to create xcode project
  • in xcode, select the PilotEditor scheme
  • build and run
  • as the result, PilotEditor built succeeded but failed on starting.

and below are some more logs in xcode's output during starting the PilotEditor, and also some info about my mac book: image

[info] [startEngine] engine start 2022-04-08 15:51:06.724659+0800 PilotEditor[58368:6989950] Execution of the command buffer was aborted due to an error during execution. Invalid Resource (00000009:kIOAccelCommandBufferCallbackErrorInvalidResource) 2022-04-08 15:51:06.724834+0800 PilotEditor[58368:6989950] Execution of the command buffer was aborted due to an error during execution. Invalid Resource (00000009:kIOAccelCommandBufferCallbackErrorInvalidResource) 2022-04-08 15:51:06.724954+0800 PilotEditor[58368:6989950] Execution of the command buffer was aborted due to an error during execution. Invalid Resource (00000009:kIOAccelCommandBufferCallbackErrorInvalidResource) 2022-04-08 15:51:06.725027+0800 PilotEditor[58368:6989950] Execution of the command buffer was aborted due to an error during execution. Invalid Resource (00000009:kIOAccelCommandBufferCallbackErrorInvalidResource) [mvk-error] VK_ERROR_DEVICE_LOST: Command buffer 0x1081efc00 "vkQueueSubmit CommandBuffer on Queue 0-0" execution failed (code 9): Invalid Resource (00000009:kIOAccelCommandBufferCallbackErrorInvalidResource) validation layer: VK_ERROR_DEVICE_LOST: Command buffer 0x1081efc00 "vkQueueSubmit CommandBuffer on Queue 0-0" execution failed (code 9): Invalid Resource (00000009:kIOAccelCommandBufferCallbackErrorInvalidResource) Assertion failed: (VK_SUBOPTIMAL_KHR == acquire_image_result || VK_SUCCESS == acquire_image_result), function beginFrame, file vulkan_manager.cpp, line 67. 2022-04-08 15:51:34.373900+0800 PilotEditor[58368:6990535] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) 2022-04-08 15:51:34.374025+0800 PilotEditor[58368:6990535] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) 2022-04-08 15:51:34.374215+0800 PilotEditor[58368:6990535] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) 2022-04-08 15:51:34.374310+0800 PilotEditor[58368:6990535] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) Program ended with exit code: 9

jianggx avatar Apr 08 '22 08:04 jianggx

@BoomingTech-YuqiaoZhang Could you please check this issue?

hyv1001 avatar Apr 08 '22 13:04 hyv1001

@BoomingTech-YuqiaoZhang Could you please check this issue?

hyv1001 avatar Apr 08 '22 13:04 hyv1001

Hi all, I'm having the exact same issue. Old i5 processor, intel gpu with macOS 10.15 here. After compile I did ./bin/PilotEditor and the console gave me a black window and said

[info] [startEngine] engine start
[mvk-error] VK_ERROR_DEVICE_LOST: Command buffer 0x7ff47f5a1f60 "vkQueueSubmit CommandBuffer on Queue 0-0" execution failed (code 9): Invalid Resource (IOAF code 9)

Is there anything I missed?

zhai-xiao avatar Apr 09 '22 22:04 zhai-xiao

Hi. MoltenVK is NOT real vulkan, and is NOT officially supported by Apple. There may be some subtle difference between the MoltenVK implementation and Vulkan standard. Since we don't know what these d

BoomingTech-YuqiaoZhang avatar Apr 09 '22 23:04 BoomingTech-YuqiaoZhang

Hi @BoomingTech-YuqiaoZhang , thanks for reply. I guess the real Vulkan is neither officially supported by Apple, and the official Vulkan website seems pointing to MoltenVK as the go-to solution. So is there any chance we can run the editor in macos?

zhai-xiao avatar Apr 10 '22 04:04 zhai-xiao

I tried to install the latest vulkan sdk 1.3.204.1 on my mac pro, and ran its vkcube.app successfully. so I think that vulkan can work on my mac. I also tried to replace the vulkan sdk libraries in this repository with the ones in vulkan sdk 1.3.204.1, but it resulted in the same error. no further finding since now...

jianggx avatar Apr 10 '22 14:04 jianggx