dain-ncnn-vulkan
dain-ncnn-vulkan copied to clipboard
Segmentation Fault (Core dump)
Not sure if this is different to the existing segmentation faults but this is frustrating Ubuntu version, on endeavourOS
./dain-ncnn-vulkan -i finalfront-frames/ -o finalfront-frames-interpolated/ [0 NVIDIA GeForce RTX 3060] queueC=2[8] queueG=0[16] queueT=1[2] [0 NVIDIA GeForce RTX 3060] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0 [0 NVIDIA GeForce RTX 3060] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1 [0 NVIDIA GeForce RTX 3060] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1 Segmentation fault (core dumped)
The same. macOS 13.2.
dain-ncnn-vulkan-20210210 - OK dain-ncnn-vulkan-20220728 - segmentation fault
dain-ncnn-vulkan-20210210 % ./dain-ncnn-vulkan -v -i if/ -o of/ -n 5
[0 AMD Radeon Pro 560X] queueC=0[1] queueG=0[1] queueT=0[1]
[0 AMD Radeon Pro 560X] bugsbn1=0 bugbilz=97 bugcopc=0 bugihfa=0
[0 AMD Radeon Pro 560X] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 AMD Radeon Pro 560X] subgroup=64 basic=1 vote=1 ballot=1 shuffle=1
[1 Intel(R) UHD Graphics 630] queueC=0[1] queueG=0[1] queueT=0[1]
[1 Intel(R) UHD Graphics 630] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[1 Intel(R) UHD Graphics 630] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[1 Intel(R) UHD Graphics 630] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
... done
dain-ncnn-vulkan-20220728 % ./dain-ncnn-vulkan -v -i if/ -o of/ -n 5
[0 AMD Radeon Pro 560X] queueC=0[1] queueG=0[1] queueT=0[1]
[0 AMD Radeon Pro 560X] bugsbn1=0 bugbilz=97 bugcopc=0 bugihfa=0
[0 AMD Radeon Pro 560X] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 AMD Radeon Pro 560X] subgroup=64 basic=1 vote=1 ballot=1 shuffle=1
[1 Intel(R) UHD Graphics 630] queueC=0[1] queueG=0[1] queueT=0[1]
[1 Intel(R) UHD Graphics 630] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[1 Intel(R) UHD Graphics 630] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[1 Intel(R) UHD Graphics 630] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
zsh: segmentation fault ./dain-ncnn-vulkan -v -i if/ -o of/ -n 5
This works for me:
- Clone repo and change src/CMakeList.txt line 137 option(WITH_LAYER-reshape="OFF") to "ON" .
- Build it.
- Copy 'best' folder from models/best and place it in executable's folder. (*) Alos, don't use '/' after folder's name (it makes file string use '//' somehow...).
I can only confirm that have had the same issue (instant core dump) and simply tried what @atsuiest suggested, and... it worked perfectly ! so THANK YOU
there are only small one detail: WITH_LAYER_reshape="ON" (there is an underscore instead of dash, but it is adetail actually)
cheers
Also been having this issue but thanks to @atsuiest for the info on the fix now it works :DDD My first time recompiling to fix somthing on Linux! Whoohoo!
For any fellow OpenSUSE user, you can install the compiling requirement with sudo zypper in patterns-devel-vulkan-devel_vulkan cmake-full
Also, for me the correct line that fixed it was written like this:
option(WITH_LAYER_reshape "" ON)
(line 137 in dain-ncnn-vulkan/src/CMakeLists.txt)
[0 Apple M1] queueC=0[1] queueG=0[1] queueT=0[1] [0 Apple M1] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0 [0 Apple M1] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1 [0 Apple M1] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1 [1] 93905 segmentation fault ./dain-ncnn-vulkan -0 0.jpg -1 1.jpg -o 01.jpg
Apple Ventura 13.0.1.Apple M1,MacBook Pro :(
I submitted a pull request could solve the problem on my AMD Ryzen 7900X with NVIDIA RTX 4060.