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

Segmentation Fault (Core dump) #46

Open
jurassicjordan opened this issue Dec 31, 2022 · 6 comments
Open

Segmentation Fault (Core dump) #46

jurassicjordan opened this issue Dec 31, 2022 · 6 comments

Comments

@jurassicjordan
Copy link

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)

@urix
Copy link

urix commented Jan 31, 2023

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

@atsuiest
Copy link

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...).

@kamoyl
Copy link

kamoyl commented Apr 17, 2023

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

@mutageneral
Copy link

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)

@zhou20120904
Copy link

[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
:(

@Mike-Solar
Copy link

I submitted a pull request could solve the problem on my AMD Ryzen 7900X with NVIDIA RTX 4060.

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

No branches or pull requests

7 participants