waifu2x-ncnn-vulkan icon indicating copy to clipboard operation
waifu2x-ncnn-vulkan copied to clipboard

llvmpipe error

Open Jasonzyt opened this issue 3 years ago • 4 comments

root@VM-8-6-ubuntu:~/waifu2x-ncnn-vulkan-20220728-ubuntu# ./waifu2x-ncnn-vulkan -i b.jpg -o b1.jpg -s 8 -g -1
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  bugsbn1=0  bugbilz=188  bugcopc=0  bugihfa=0
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  fp16-p/s/a=1/1/0  int8-p/s/a=1/1/0
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  subgroup=8  basic=1  vote=1  ballot=1  shuffle=0
Killed

gdb:

(gdb) r
Starting program: /root/waifu2x-ncnn-vulkan-20220728-ubuntu/waifu2x-ncnn-vulkan -i b.jpg -o b1.jpg -s 8
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  bugsbn1=0  bugbilz=188  bugcopc=0  bugihfa=0
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  fp16-p/s/a=1/1/0  int8-p/s/a=1/1/0
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  subgroup=8  basic=1  vote=1  ballot=1  shuffle=0
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
[New Thread 0x7fffed0d6700 (LWP 3999331)]
[New Thread 0x7fffec8d5700 (LWP 3999332)]
[New Thread 0x7fffe7fff700 (LWP 3999333)]
[New Thread 0x7fffe77fe700 (LWP 3999334)]
[New Thread 0x7fffe6ebc700 (LWP 3999335)]
[New Thread 0x7fffe66bb700 (LWP 3999336)]
[New Thread 0x7fffe4db7700 (LWP 3999343)]
[New Thread 0x7fffcffff700 (LWP 3999344)]
[New Thread 0x7fffcf7fe700 (LWP 3999345)]
[New Thread 0x7fffceffd700 (LWP 3999346)]
[New Thread 0x7fffce7fc700 (LWP 3999347)]
[Thread 0x7fffcf7fe700 (LWP 3999345) exited]
[Thread 0x7fffe4db7700 (LWP 3999343) exited]
Invalid bitcast
  %367 = bitcast i32 %366 to i16
LLVM ERROR: Broken function

Thread 7 "waifu2x-ncnn-vu" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe66bb700 (LWP 3999336)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) c
Continuing.
Couldn't get registers: No such process.
Couldn't get registers: No such process.
(gdb) [Thread 0x7fffce7fc700 (LWP 3999347) exited]
[Thread 0x7fffceffd700 (LWP 3999346) exited]
[Thread 0x7fffcffff700 (LWP 3999344) exited]
[Thread 0x7fffe66bb700 (LWP 3999336) exited]
[Thread 0x7fffe77fe700 (LWP 3999334) exited]
[Thread 0x7fffe7fff700 (LWP 3999333) exited]
[Thread 0x7fffec8d5700 (LWP 3999332) exited]
[Thread 0x7fffed0d6700 (LWP 3999331) exited]
[Thread 0x7ffff79b30c0 (LWP 3999299) exited]

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.

How to solve this?

Jasonzyt avatar Oct 13 '22 04:10 Jasonzyt

I'm getting this too :(

efreak@65da54e44cf9:~/waifu/waifu2x-ncnn-vulkan-20220728-ubuntu$ ./waifu2x-ncnn-vulkan -i travis-hanson-space-1.png -o travis-hanson-space-1.out.png -s 4 -gpu-id=-1
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  fp16-p/s/a=1/1/0  int8-p/s/a=1/1/0
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  subgroup=8  basic=1  vote=1  ballot=1  shuffle=0
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
Invalid bitcast
  %367 = bitcast i32 %366 to i16
LLVM ERROR: Broken function
Aborted (core dumped)

Efreak avatar May 27 '23 23:05 Efreak

What is the environment that this is being run in?

Nova-Aurora avatar May 29 '23 07:05 Nova-Aurora

seems to be a llvmpipe bug, try upgrading mesa or please report to mesa upstream

nihui avatar May 30 '23 02:05 nihui

What is the environment that this is being run in?

Sorry for delay. I was running it on a runpod worker.

Efreak avatar Jun 08 '23 07:06 Efreak