Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Segfault on FreeBSD - debug build has undefined symbol at runtime #17

Open
drphilth opened this issue Jul 13, 2020 · 2 comments
Open

Segfault on FreeBSD - debug build has undefined symbol at runtime #17

drphilth opened this issue Jul 13, 2020 · 2 comments

Comments

@drphilth
Copy link

Hello,

I'm trying to get QTGMC to run in a freebsd jail on my freenas server.

I've run into a problem where vspipe segfaults when I try to run it (my script is included below).

I've rebuilt vapoursynth and fmtconv with debug builds.

My configure options for the fmtconv build are:
--enable-debug --libdir="/usr/local/lib/vapoursynth" --prefix=/usr/local

The rebuilt fmtc won't autoload, and when I force load it in the script and run vspipe -i /my/script - I get the following output:
vapoursynth.Error: Failed to load /usr/local/lib/vapoursynth/libfmtconv.so. Error given: /usr/local/lib/vapoursynth/libfmtconv.so: Undefined symbol "_ZN4fstb9ToolsSse29_mask_absE"

My script is:
import vapoursynth as vs import havsfunc as haf core = vs.get_core() core.std.LoadPlugin(path='/usr/local/lib/vapoursynth/libfmtconv.so') clip = core.ffms2.Source(source='/mnt/public/rawvideo/test-cropped.avi') clip = haf.QTGMC(clip, Preset='Placebo', TFF=True, TR0=2, TR1=2, TR2=3, Rep0=3, Rep2=3, NNSize=3, NNeurons=4, EdiQual=2, Precise=True, MatchPreset='Placebo', SourceMatch=3, Lossless=2, SrchClipPP=3, SubPel=2, SubPelInterp=2, BlockSize=4, Overlap=2, Search=3, SearchParam=8, PelSearch=4, ChromaMotion=True, TrueMotion=True, EZDenoise=25, NoisePreset='Slower', ChromaNoise=True, Denoiser="dfttest", DenoiseMC=True, NoiseTR=2, NoiseDeint='Generate', StabilizeNoise=True, NoiseProcess=2, GrainRestore=0.3, EdiMode='EEDI3+NNEDI3', EdiMaxD=12, Sharpness=0.1, SMode=2, SLMode=4, SLRad=3, Sbb=3, MatchPreset2='Placebo', ShutterBlur=3, ProgSADMask=10, SBlurLimit=8, MatchTR2=2, MatchEnhance=0.65) clip.set_output()

I'm not sure where to go next in troubleshooting this?

@EleonoreMizo
Copy link
Owner

EleonoreMizo commented Nov 20, 2020

Is the fstb/ToolsSse2.cpp file compiled and linked in your configuration?
Does the problem only occur with a debug build?
Sorry it’s difficult to check it myself without a FreeBSD system.

@diizzyy
Copy link

diizzyy commented Aug 6, 2023

Not sure if I'm triggering it but the following works using verison r30 on FreeBSD 13.2-RELEASE:

from vapoursynth import core
video = core.lsmas.LWLibavSource(source='sample.mkv')
video = video.fmtc.resample (w=1280, h=720)
video = video.fmtc.bitdepth (bits=8)
video.set_output()

Commited to FreeBSD's ports tree in https://cgit.freebsd.org/ports/commit/?id=e255bf2bdaa51438688cdfbf65385856086498f3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants