Comments (3)
after run yum install mesa-vulkan-drivers
vkEnumeratePhysicalDevices failed -3
*** Error in `./waifu2x-ncnn-vulkan': double free or corruption (out): 0x00007f295b3bb040 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81329)[0x7f2a08dea329]
./waifu2x-ncnn-vulkan[0x8e6238]
./waifu2x-ncnn-vulkan[0x8e6ae5]
/lib64/libpthread.so.0(+0x7ea5)[0x7f2a09a5cea5]
/lib64/libc.so.6(clone+0x6d)[0x7f2a08e67b0d]
======= Memory map: ========
00400000-00a84000 r-xp 00000000 fd:01 1442241 /data/project/waifu2x-ncnn-vulkan/models/waifu2x-ncnn-vulkan
00c83000-00c9a000 r--p 00683000 fd:01 1442241 /data/project/waifu2x-ncnn-vulkan/models/waifu2x-ncnn-vulkan
00c9a000-00c9c000 rw-p 0069a000 fd:01 1442241 /data/project/waifu2x-ncnn-vulkan/models/waifu2x-ncnn-vulkan
00c9c000-00caf000 rw-p 00000000 00:00 0
01f4c000-03935000 rw-p 00000000 00:00 0 [heap]
from waifu2x-ncnn-vulkan.
vulkaninfo
==========
VULKANINFO
Vulkan Instance Version: 1.1.97
/builddir/build/BUILD/Vulkan-Tools-sdk-1.1.97.0/vulkaninfo/vulkaninfo.c:3847: failed with VK_ERROR_INITIALIZATION_FAILED
from waifu2x-ncnn-vulkan.
Same here. My mobile app is also affected. And it is confirmed on my PC.
According to the debugging result on Waifu2x ncnn, this is caused by the following lines of code in process_cpu():
if (channels == 4)
{
memcpy(out.channel_range(3, 1), out_alpha_tile, out_alpha_tile.total() * sizeof(float));
}
And it only crashes on large RGBA images. (no crash confirmed on images probably smaller than 860x640)
The ncnn lib known to cause these crashes is 20220729. when compiled with version 20220721, it won't crash.
Backtrace log on PC:
(gdb) bt
#0 0x00007ffff79b949c in ?? () from /usr/lib/libc.so.6
#1 0x00007ffff7969958 in raise () from /usr/lib/libc.so.6
#2 0x00007ffff795353d in abort () from /usr/lib/libc.so.6
#3 0x00007ffff79ad63e in ?? () from /usr/lib/libc.so.6
#4 0x00007ffff79c322c in ?? () from /usr/lib/libc.so.6
#5 0x00007ffff79c5360 in ?? () from /usr/lib/libc.so.6
#6 0x00007ffff79c79f3 in free () from /usr/lib/libc.so.6
#7 0x000055555597e974 in ncnn::fastFree (ptr=<optimized out>) at /home/archiemeng/OpenSourceProjects/waifu2x-ncnn-vulkan/src/ncnn/src/allocator.h:99
#8 ncnn::Mat::release (this=<optimized out>, this=<optimized out>) at /home/archiemeng/OpenSourceProjects/waifu2x-ncnn-vulkan/src/ncnn/src/mat.h:1180
#9 ncnn::Mat::~Mat (this=<optimized out>, this=<optimized out>) at /home/archiemeng/OpenSourceProjects/waifu2x-ncnn-vulkan/src/ncnn/src/mat.h:894
#10 Waifu2x::process_cpu (this=this@entry=0x555555cc8ed0, inimage=..., outimage=...) at /home/archiemeng/OpenSourceProjects/waifu2x-ncnn-vulkan/src/waifu2x.cpp:855
#11 0x0000555555982400 in Waifu2x::process(ncnn::Mat const&, ncnn::Mat&) const [clone .isra.0] (this=this@entry=0x555555cc8ed0, inimage=..., outimage=...)
at /home/archiemeng/OpenSourceProjects/waifu2x-ncnn-vulkan/src/waifu2x.cpp:150
#12 0x00005555555902c7 in proc (args=<optimized out>) at /home/archiemeng/OpenSourceProjects/waifu2x-ncnn-vulkan/src/main.cpp:361
#13 0x00007ffff79b774d in ?? () from /usr/lib/libc.so.6
#14 0x00007ffff7a39700 in ?? () from /usr/lib/libc.so.6
from waifu2x-ncnn-vulkan.
Related Issues (20)
- Add a quiet output flag (-q) HOT 1
- AlmaLinux output-file not working?
- double free or corruption (out) 134
- llvmpipe error HOT 4
- find_blob_index_by_name Input1 failed HOT 2
- Add support for AVIF format HOT 2
- Allow specifying multiple inputs in inputpath
- [BUG] soft links in directory are ignored
- Not running on Raspberry Pi 4, because armhf is not supported HOT 8
- Feature Request HOT 3
- Feature Request: add support for the swin_unet models
- 能否提供一个iOS或者Android的demo呢? HOT 3
- Not a issue, but there is no other way of sending a message to a coder in github
- Feature Request
- can't seem to download HOT 2
- [Feature Request] Pipe support for input/output
- Not maximizing VRAM
- riscv64移植失败
- Error:build vs2019 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waifu2x-ncnn-vulkan.