Kalyzee / react-native-gstreamer

React native Gstreamer Ios / Android.
50 stars 21 forks source link

Android crashes #8

Closed gev closed 5 years ago

gev commented 6 years ago

I had try today fresh master and it crashes Android 7 version on Samsung S6.

alann-sapone commented 6 years ago

@gev : I would be glad to help. Can you provide me more informations about what is going on ? Did you follow the step by step tutorial I wrote the last few days ? There is a whole section on android linking. It is very important to follow it so you can link the C library to your android project.

gev commented 6 years ago

Just cleanup my project and repeat all step by step from the section on android linking. All builded whithout errors and warnings. Uploaded to S6 and crashes after start up

gev commented 6 years ago

@devoluti0n: |'ve add you to my private project to reproduce the bug https://github.com/gev/reacthome-native

alann-sapone commented 6 years ago

Thank you for the demo project @gev. Can you try this, please :

Does it work correctly with this change ?

gev commented 6 years ago

Change android.defaultConfig.targetSdkVersion to 22 instead of 23 — result the same

alann-sapone commented 6 years ago

I can't reproduce the same issue. Working nicely on my emulator with theses settings. Can you check your logcat when the problem occurs and show me the stack trace please ?

gev commented 6 years ago

When I try run app on the tablet Samsung A10 or emulator I have error during bulding:

Error:error: conditional branch to PLT in THUMB-2 not supported yet. Error:error: unexpected opcode while processing relocation R_ARM_THM_JUMP19

alann-sapone commented 6 years ago

What version of the NDK are you using, please ?

gev commented 6 years ago

NDK 16.1.4479499

gev commented 6 years ago

Do you have TeamViewer?

gev commented 6 years ago

more info about building

ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: conditional branch to PLT in THUMB-2 not supported yet. libswresample/arm/audio_convert_neon.S:137: error: unexpected opcode while processing relocation R_ARM_THM_JUMP19

gev commented 6 years ago

I can't reproduce the same issue. Working nicely on my emulator with theses settings.

@devoluti0n what emulator do you use?

gev commented 6 years ago

I have some conclusions. It depends of the target platform. So: arm64-v8a (Samsung S6) — build is ok, but app crashes. armeabi-v7a (Samsung A10, emulator 'titanium 1 WVGA800') and x86_64 (emulator 'Nexus 6 API 23', Nexus 6 API 23 2) does not builded at all.

alann-sapone commented 6 years ago

Interesting, thank you for theses precision. I'll try in the coming days to see if it works on theses emulators, and if it doesn't, do what is necessary to make it work...

gev commented 6 years ago

Had you test to build for real iOS device? Like a same problem there. I'd test only in an emulator

cpixl commented 6 years ago

I'm trying to build a project with GStreamer and had the same issue. As related here, using Android NDK 10e worked well for me.

og24715 commented 6 years ago

@dan-santana I have just started, so I don't understand native app too well. Is there any problems on Android by downgrading the NDK version 10e from latest?

cpixl commented 6 years ago

@og24715 I don't really know much about the different versions of the NDK, so I'd suggest you to check the revision history and look for any specific features you may be using in your project, and to test it as much as possible.

My use case is an app for personal use only, so my suggested solution was good enough for me as long as the app doesn't crash on my mobile (and it didn't until now).

og24715 commented 6 years ago

@dan-santana Thx for replying to me so quickly.

hmmm, I am not sure if this is reason, but I have tried to play RTSP high bit rates video streams on real Android devices with release build app, but the result is so slowly to play, and crash frequently. However it work in case video stream is low bit rates.

alann-sapone commented 5 years ago

Do you still have this issue ? I've managed to upgrade ndk / gstreamer / gradle / gradle-wrapper. You might want to take a look at this commit : https://github.com/Kalyzee/react-native-gstreamer/commit/1ef11e88010a871db88fe33563ae6ed40f8b097a

alann-sapone commented 5 years ago

Closing it for now, open it again if needed.

vishaldybot commented 9 months ago

@gev you have removed this "https://github.com/gev/reacthome-native" project I want a help. If you have completed this project as I am building an application in which I want to receive wireless video streaming over udp and I want to receive the video in my react native project and there is no other library which support receiving video over udp and this library is not maintained yet so I am still trying to use it but not able to