cisco / openh264

Open Source H.264 Codec
BSD 2-Clause "Simplified" License
5.53k stars 1.79k forks source link

Seem missing parameters in Intel based build #3327

Open KiemDuong opened 4 years ago

KiemDuong commented 4 years ago

I saw a crash on Firebase that happened a few times at libopenh264 (OpenH264Loader.kt line 48) on Intel Kaby Lake U Chromebook.

Caused by java.lang.UnsatisfiedLinkError dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/data/com.screencastomatic.app.chromebook/files/libopenh264.so" (new hash type from the future?)

Then we tried to find a way to fix this recently. From Stackoverflow, a guy suggested as below:

If you're a third party building .so libraries for others to use, setting -Wl,--hash-style=both seems like the best idea. That gets you the faster loading of the Gnu-style hash and the backwards compatibility of the SysV hash.

KiemDuong commented 4 years ago

Details of crash: dlopen failed: file offset for the library "/data/user/0/com.screencastomatic.app.chromebook/files/libopenh264.so" >= file size: 0 >= 0 com.screencastomatic.app.videos.OpenH264Loader.loadOpenH264

Screen Shot 2020-08-31 at 15 42 39

huili2 commented 1 year ago

Not familiar with this kind of link. Is this issue fixed already?