-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: "demo-camera" app crashes at startup #99
Comments
hmm. That's going to be tricky. StreamPack/demos/camera/build.gradle Line 54 in 908f7f0
It is just for a test. Do you need both RTMP and SRT? RTMP and SRT are both shipped with a version of libssl/libcrypto and I suspect that gradle picked one that is missing API. |
Thanks for the reply. I'm just doing some exploration at the moment so I'm not sure if I'll be using RTMP or SRT, I think either is suitable. I've tried removing the RTMP dependency, and I find it still has the same error. If I put back the RTMP dependency and remove the SRT dependency I get another error, which looks similar, but is from librtmp this time: 16:14:12.787 E createStreamer failed |
I don't have a clue why this is happening 🤔 I made a test where I enforce |
For RTMP, you could try something like that the dependencies:
|
Also found this relevant info: https://developer.android.com/training/articles/perf-jni.html#native-libraries |
I've tried the test/openssl branch you created, and that fixes the problem for me, thank you! I suspect you are correct that it is something missing on the device, and it's not a general issue. It's currently beyond my understanding, but if I work out what is happening I'll let you know. |
Ok, I will add this is in native dependencies (
Already in But it will take a while. |
Unfortunately, I can't do something like this. In few projects.,I use Moreover, the bug is within few devices that can't link libraries. But a workaround could be to used these fat libs (but your APK is going to be bigger).
|
A solution might be to use ReLinker |
Version
2.6.0
Environment that reproduces the issue
Custom device running Android 9 (api 28).
RTMP/SRT/... Server
N/A
Audio configuration
N/A
Video configuration
N/A
Is it reproducible in the demos application?
Yes
Reproduction steps
Running the "demo-camera" app results in an immediate crash.
Expected result
App doesn't crash.
Actual result
The app crashes with "java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "CRYPTO_ctr128_encrypt".
Additional context
This only happens on the custom device mentioned.
Relevant logs output
The text was updated successfully, but these errors were encountered: