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

App crashes when vkCreateDevice fails #5741

Closed
Upliner opened this issue Oct 17, 2024 · 0 comments · Fixed by #5742
Closed

App crashes when vkCreateDevice fails #5741

Upliner opened this issue Oct 17, 2024 · 0 comments · Fixed by #5742

Comments

@Upliner
Copy link
Contributor

Upliner commented Oct 17, 2024

error log | 日志或报错信息 | ログ

[0 Intel(R) Iris(R) Xe Graphics] queueC=0[1] queueG=0[1] queueT=0[1]
[0 Intel(R) Iris(R) Xe Graphics] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 Intel(R) Iris(R) Xe Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 Intel(R) Iris(R) Xe Graphics] subgroup=32 basic/vote/ballot/shuffle=1/1/1/1
[0 Intel(R) Iris(R) Xe Graphics] fp16-matrix-16_8_8/16_8_16/16_16_16=0/0/0
vkCreateDevice failed -4
Segmentation fault

context | 编译/运行环境 | バックグラウンド

My app crashes on some systems where there is some problems with Vulkan. It should fallback to CPU instead in such cases.

how to reproduce | 复现步骤 | 再現方法

  1. Run system where vkCreateDevice fails or replace vkCreateDevice call with VkResult ret = VK_ERROR_DEVICE_LOST;
  2. Run the simplest application:
#include <ncnn/net.h>
int main() {
    ncnn::get_gpu_device(0);
    ncnn::destroy_gpu_instance();
    return 0;
}

more | 其他 | その他

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant