openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

dlopen crashes application in mac arm 64

Open anoop4 opened this issue 2 years ago • 2 comments

Hi,

I am using dlopen to load the v2.2.0 openh264 mac arm64 binary in my application and it crashes. The crash log points to the dlopen line. is this a known issue? Are there any workarounds?

I see the same crash with v2.3.1 as well.

Thanks, Srijith

anoop4 avatar Feb 17 '23 06:02 anoop4

No. It works for me. Not sure what's the root cause of your side.

huili2 avatar Feb 17 '23 06:02 huili2

I see there is a reference to a hardcoded /usr/local/lib path in maca64 and maci64 binaries. This is affecting our application performance since disk cycles are utilized for searching /usr/local/lib as well. I would expect this to be an rpath instead of a hardcoded local path.

Can someone look into fixing this?

otool -D libopenh264-2.2.0-osx-arm64.6.dylib
libopenh264-2.2.0-osx-arm64.6.dylib:
/usr/local/lib/libopenh264.6.dylib

Trying to replace the rpath separately was what was causing the crash.

anoop4 avatar Feb 23 '23 14:02 anoop4