Anime4KCPP
Anime4KCPP copied to clipboard
segfault
Welcome to Anime4KCPP
----------------------------------------------
Platform: Apple
Device: AMD Radeon Pro 560 Compute Engine
Checking ffmpeg...
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 12.0.5 (clang-1205.0.22.9)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.4_2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
----------------------------------------------
Parameter information
----------------------------------------------
Processor info:
Processor type: OpenCL Anime4K09
Current OpenCL devices:
AMD Radeon Pro 560 Compute Engine
----------------------------------------------
OpenCL Platform ID:0
OpenCL Device ID:2
Passes: 2
pushColorCount: 2
Zoom Factor: 2
Fast Mode: false
Strength Color: 0.3
Strength Gradient: 1
Number of OpenCL Command Queues:1
OpenCL Parallel IO Command Queues:false
----------------------------------------------
----------------------------------------------
Video information
----------------------------------------------
FPS: 25
Threads: 8
Total frames: 44791
----------------------------------------------
----------------------------------------------
Filter information
----------------------------------------------
----------------------------------------------
Preprocessing filters list:
----------------------------------------------
Preprocessing disabled
----------------------------------------------
Postprocessing filters list:
----------------------------------------------
Postprocessing disabled
Processing...
Segmentation fault: 11 37.05s remaining: 419.51s
Does this always happen? Specific video or any video?
Not always. I have tied with a few mp4 videos and the same behavior. I noticed it doesn't crash if I change zoom factor to 1 (-v -q -d 2
).
I use -i file.mp4 -o file-new.mp4 -v -q -d 2
as parameters by default.
How about set zoom factor to 1.99 or 2.01 ? And how about -w
to enable ACNet?
-z 1.99 -w
failing, -z 1.9 -w
works, -z 2.1 -w
works, -z 2.1
failing
Thank you very much for your feedback. Since I can't reproduce your problem on Linux or windows at present, the problem may be caused by a third-party library. Please post the output content of ./Anime4KCPP_CLI -V
to better analyze the compilation parameters and library usage. I will continue to investigate possible problems.
And if possible, I hope you can help find the function or library that caused the crash by using tools such as gdb
or lldb
or Valgrind
It's on mac actually. Will have a look at lldb
when have time.
code/Anime4KCPP/_build % sw_vers
ProductName: macOS
ProductVersion: 11.5.2
BuildVersion: 20G95
code/Anime4KCPP/_build % ./bin/Anime4KCPP_CLI -V
Anime4KCPP CLI
Anime4KCPP core information:
Version: 2.6.0-dev 2021-09-10 13:05:23
Parallel library: OpenMP
Compiler: AppleClang
Processors: CPU_Anime4K09,CPU_ACNet,OpenCL_Anime4K09,OpenCL_ACNet
CPU Optimization: Normal
GitHub: https://github.com/TianZerL/Anime4KCPP
code/Anime4KCPP/_build %
Thank you! As I currently don’t have a mac environment, I can’t debug it myself for the time being.
I suspect Apple's OpenCL library may have caused the problem. Is there a problem using the CPU?
And you can try to turn on Use_Legacy_OpenCL_API
CMake option, which will set the target platform of OpenCL to version 1.2, which as far as I know, the version currently supported by mac.