VULKAN渲染报错

  • Creator 版本: 3.3.2

  • 目标平台: Android

  • 重现方式:勾选VULKAN、GLES3、GLES2,构建,打包,启动,显示启动页,然后报错,闪退

  • 首个报错: 2021-10-14 10:38:46.815 25156-25736/? E/Cocos: 10:38:46 [ERROR]: [ERROR] file D:/CocosDashboard_3.0/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp: line 592
    2021-10-14 10:38:46.815 25156-25736/? E/Cocos: 10:38:46 [ERROR]: vkWaitForFences(_gpuDevice->vkDevice, fenceCount, gpuFencePool()->data(), VK_TRUE, DEFAULT_TIMEOUT) returned Vulkan error: -4
    2021-10-14 10:38:46.815 25156-25736/? E/assert: D:/CocosDashboard_3.0/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp function:present line:592
    2021-10-14 10:38:46.821 25156-25736/? E/vulkan: QueueSignalReleaseImageANDROID failed: -4
    2021-10-14 10:38:46.822 25156-25736/? E/Cocos: 10:38:46 [ERROR]: [ERROR] file D:/CocosDashboard_3.0/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp: line 592
    2021-10-14 10:38:46.822 25156-25736/? E/Cocos: 10:38:46 [ERROR]: vkWaitForFences(_gpuDevice->vkDevice, fenceCount, gpuFencePool()->data(), VK_TRUE, DEFAULT_TIMEOUT) returned Vulkan error: -4
    2021-10-14 10:38:46.822 25156-25736/? E/assert: D:/CocosDashboard_3.0/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp function:present line:592
    2021-10-14 10:38:46.825 25156-25736/? I/Cocos: 10:38:46 [INFO]: Resizing surface: 1080x1920, surface rotation: 90 degrees
    2021-10-14 10:38:46.825 25156-25736/? E/Cocos: 10:38:46 [ERROR]: [ERROR] file D:/CocosDashboard_3.0/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp: line 611
    2021-10-14 10:38:46.825 25156-25736/? E/Cocos: 10:38:46 [ERROR]: vkWaitForFences(_gpuDevice->vkDevice, fences.size(), fences.data(), VK_TRUE, DEFAULT_TIMEOUT) returned Vulkan error: -4
    2021-10-14 10:38:46.825 25156-25736/? E/assert: D:/CocosDashboard_3.0/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp function:waitAllFences line:611
    2021-10-14 10:38:46.825 25156-25736/? E/Cocos: 10:38:46 [ERROR]: [ERROR] file D:/CocosDashboard_3.0/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp: line 763
    2021-10-14 10:38:46.825 25156-25736/? E/Cocos: 10:38:46 [ERROR]: vkCreateSwapchainKHR(_gpuDevice->vkDevice, &context->swapchainCreateInfo, nullptr, &vkSwapchain) returned Vulkan error: -1000000001
    2021-10-14 10:38:46.825 25156-25736/? E/assert: D:/CocosDashboard_3.0/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp function:checkSwapchainStatus line:763
    2021-10-14 10:38:46.826 25156-25736/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 25736 (Thread-14)

  • 之前哪个版本是正常的: 3.3.1只勾选GLES3正常

  • 手机型号: HUAWEI PRA-AL00

  • 手机浏览器:

  • 编辑器操作系统:

  • 重现概率:100%

自顶~~~

帮顶,我也是同样的错误,在魅族手机上出现的···

而且我还测试了OPPO的测试机同样的效果···更糟糕的是,连插屏动画都只显示了一个白屏然后就闪退了···我的项目是一个空项目来打包测试的···

只要勾选VULKAN就这样···(测试时是同时勾选VULKAN和GLES3—闪退,单独勾选GLES3—正常)

我几台测试机分别都有不同的GL报错·····,一台中兴去掉VULKAN也不行····

我碰到这个问题

我发现我遇到的问题你也遇到了 :laughing:

同样遭遇的人在此集合了。。
测试测出来的。
低端机闪屏动画后,VK渲染出错,闪退
官方说不支持VK的应该绕过去吗。

2021-12-09 15:25:18.858 22790-22958/com.yourfun.tongits E/vulkan: QueueSignalReleaseImageANDROID failed: -4
2021-12-09 15:25:18.858 22790-22958/com.yourfun.tongits E/Cocos: 15:25:18 [ERROR]: [ERROR] file C:/CocosDashboard_1.0.20/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp: line 592
2021-12-09 15:25:18.858 22790-22958/com.yourfun.tongits E/Cocos: 15:25:18 [ERROR]: vkWaitForFences(_gpuDevice->vkDevice, fenceCount, gpuFencePool()->data(), VK_TRUE, DEFAULT_TIMEOUT) returned Vulkan error: -4
2021-12-09 15:25:18.858 22790-22958/com.yourfun.tongits E/assert: C:/CocosDashboard_1.0.20/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp function:present line:592
2021-12-09 15:25:18.874 22790-22862/com.yourfun.tongits D/jswrapper: JS: [DEBUG]: [15:25:18:874] [View] loading/prefab/LoadingView ui load suc!!!
2021-12-09 15:25:18.875 22790-22958/com.yourfun.tongits I/Cocos: 15:25:18 [INFO]: Resizing surface: 1080x1920, surface rotation: 90 degrees
2021-12-09 15:25:18.875 22790-22958/com.yourfun.tongits E/Cocos: 15:25:18 [ERROR]: [ERROR] file C:/CocosDashboard_1.0.20/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp: line 611
2021-12-09 15:25:18.875 22790-22958/com.yourfun.tongits E/Cocos: 15:25:18 [ERROR]: vkWaitForFences(_gpuDevice->vkDevice, fences.size(), fences.data(), VK_TRUE, DEFAULT_TIMEOUT) returned Vulkan error: -4
2021-12-09 15:25:18.875 22790-22958/com.yourfun.tongits E/assert: C:/CocosDashboard_1.0.20/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp function:waitAllFences line:611
2021-12-09 15:25:18.875 22790-22958/com.yourfun.tongits E/Cocos: 15:25:18 [ERROR]: [ERROR] file C:/CocosDashboard_1.0.20/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp: line 763
2021-12-09 15:25:18.875 22790-22958/com.yourfun.tongits E/Cocos: 15:25:18 [ERROR]: vkCreateSwapchainKHR(_gpuDevice->vkDevice, &context->swapchainCreateInfo, nullptr, &vkSwapchain) returned Vulkan error: -1000000001
2021-12-09 15:25:18.875 22790-22958/com.yourfun.tongits E/assert: C:/CocosDashboard_1.0.20/resources/.editors/Creator/3.3.2/resources/resources/3d/engine-native/cocos/renderer/gfx-vulkan/VKDevice.cpp function:checkSwapchainStatus line:763

现在我都不勾VK了

不勾vk,其它手机不会花屏吗


解决方法

已搞定,把VK去掉。。
顺带解决了闪屏LOGO超级小的问题。

creator的Android原生太难了 :rofl: