Giter Site home page Giter Site logo

Comments (3)

nuzou1 avatar nuzou1 commented on June 8, 2024

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.

nuzou1 avatar nuzou1 commented on June 8, 2024

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.

ArchieMeng avatar ArchieMeng commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.