Comments (8)
Hi,
Unfortunately we don't have these smartphones to reproduce the issue. Could you provide a full logcat please?
Does it happen randomly?
Is this 3 differents issues?
from api.video-reactnative-live-stream.
Yes its 3 different issues but all are related to live stream itself.
Here is full logcat of all 3 issues.
main (waiting)
tid=1 systid=28723
Triggered ANR
Root blocking
sun.misc.Unsafe.park (Native method)
java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
java.util.concurrent.FutureTask.awaitDone (FutureTask.java:450)
java.util.concurrent.FutureTask.get (FutureTask.java:192)
io.github.thibaultbee.streampack.internal.encoders.VideoMediaCodecEncoder$CodecSurface.stopStream (VideoMediaCodecEncoder.kt:247)
io.github.thibaultbee.streampack.internal.encoders.VideoMediaCodecEncoder.stopStream (VideoMediaCodecEncoder.kt:112)
io.github.thibaultbee.streampack.streamers.bases.BaseStreamer.stopStreamImpl (BaseStreamer.kt:329)
io.github.thibaultbee.streampack.streamers.bases.BaseStreamer.stopStream (BaseStreamer.kt:315)
video.api.livestream.ApiVideoLiveStream.stopStreaming (ApiVideoLiveStream.kt:264)
video.api.reactnative.livestream.ReactNativeLiveStreamView.stopStreaming$api_video_react_native_livestream_release (ReactNativeLiveStreamView.kt:115)
video.api.reactnative.livestream.ReactNativeLiveStreamViewManager.receiveCommand (ReactNativeLiveStreamViewManager.kt:38)
video.api.reactnative.livestream.ReactNativeLiveStreamViewManager.receiveCommand (ReactNativeLiveStreamViewManager.kt:13)
com.facebook.react.uimanager.NativeViewHierarchyManager.dispatchCommand (NativeViewHierarchyManager.java:831)
com.facebook.react.uimanager.UIViewOperationQueue$DispatchCommandOperation.executeWithExceptions (UIViewOperationQueue.java:323)
com.facebook.react.uimanager.UIViewOperationQueue$1.run (UIViewOperationQueue.java:879)
com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches (UIViewOperationQueue.java:1026)
com.facebook.react.uimanager.UIViewOperationQueue.access$2600 (UIViewOperationQueue.java:47)
com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded (UIViewOperationQueue.java:1086)
com.facebook.react.uimanager.GuardedFrameCallback.doFrame (GuardedFrameCallback.java:29)
com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame (ReactChoreographer.java:175)
com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame (ChoreographerCompat.java:85)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:1519)
android.view.Choreographer.doCallbacks (Choreographer.java:1319)
android.view.Choreographer.doFrame (Choreographer.java:1005)
android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1506)
android.os.Handler.handleCallback (Handler.java:938)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loop (Looper.java:265)
android.app.ActivityThread.main (ActivityThread.java:8360)
java.lang.reflect.Method.invoke (Native method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:632)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1049)
video.api.rtmpdroid.Rtmp.nativeConnectStream (Native method)
video.api.rtmpdroid.Rtmp.connectStream (Rtmp.kt:93)
io.github.thibaultbee.streampack.ext.rtmp.internal.endpoints.RtmpProducer.startStream (RtmpProducer.kt:75)
io.github.thibaultbee.streampack.streamers.bases.BaseStreamer.startStream (BaseStreamer.kt:277)
io.github.thibaultbee.streampack.streamers.live.BaseCameraLiveStreamer.startStream$suspendImpl (BaseCameraLiveStreamer.kt:97)
io.github.thibaultbee.streampack.streamers.live.BaseCameraLiveStreamer$startStream$1.invokeSuspend (BaseCameraLiveStreamer.kt)
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
kotlinx.coroutines.EventLoopImplBase.processNextEvent (EventLoop.common.kt:274)
kotlinx.coroutines.BlockingCoroutine.joinBlocking (Builders.kt:85)
kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking (Builders.kt:59)
kotlinx.coroutines.BuildersKt.runBlocking (unavailable:1)
kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default (Builders.kt:38)
kotlinx.coroutines.BuildersKt.runBlocking$default (unavailable:1)
video.api.livestream.ApiVideoLiveStream.startStreaming (ApiVideoLiveStream.kt:252)
video.api.livestream.ApiVideoLiveStream.startStreaming$default (ApiVideoLiveStream.kt:241)
video.api.reactnative.livestream.ReactNativeLiveStreamView.startStreaming$api_video_react_native_livestream_release (ReactNativeLiveStreamView.kt:106)
video.api.reactnative.livestream.ReactNativeLiveStreamViewManager.receiveCommand (ReactNativeLiveStreamViewManager.kt:36)
video.api.reactnative.livestream.ReactNativeLiveStreamViewManager.receiveCommand (ReactNativeLiveStreamViewManager.kt:13)
com.facebook.react.uimanager.NativeViewHierarchyManager.dispatchCommand (NativeViewHierarchyManager.java:831)
com.facebook.react.uimanager.UIViewOperationQueue$DispatchCommandOperation.executeWithExceptions (UIViewOperationQueue.java:323)
com.facebook.react.uimanager.UIViewOperationQueue$1.run (UIViewOperationQueue.java:879)
com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches (UIViewOperationQueue.java:1026)
com.facebook.react.uimanager.UIViewOperationQueue.access$2600 (UIViewOperationQueue.java:47)
com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded (UIViewOperationQueue.java:1086)
com.facebook.react.uimanager.GuardedFrameCallback.doFrame (GuardedFrameCallback.java:29)
com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame (ReactChoreographer.java:175)
com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame (ChoreographerCompat.java:85)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:1519)
android.view.Choreographer.doCallbacks (Choreographer.java:1319)
android.view.Choreographer.doFrame (Choreographer.java:1005)
android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1506)
android.os.Handler.handleCallback (Handler.java:938)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loop (Looper.java:265)
android.app.ActivityThread.main (ActivityThread.java:8360)
java.lang.reflect.Method.invoke (Native method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:632)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1049)
Crashed: Thread #1
SIGSEGV 0x0001ac0000000100
0
libhwui.so
(Missing UUID ca8b2c42716a0a9f17382be819c89881)
2
libhwui.so
(Missing UUID ca8b2c42716a0a9f17382be819c89881)
Thread #2
0
libc.so
(Missing UUID 0abcff352f27dd1f0347c6a1e13d290b)
1
libc.so
(Missing UUID 0abcff352f27dd1f0347c6a1e13d290b)
**Does it happen randomly?
**
Yes sometimes it happens when we live stream for more than 10-15 seconds
Sometimes it happens when we stop the stream manually
Sometimes, randomly it happens while initialising
from api.video-reactnative-live-stream.
Ok.
If it is 3 differents crashes, could you open 3 different issues with:
- the method you call before getting the crash
- the video and audio settings
- full
adb logcat
not just the stacktrace (we don't even know the type of the exception and the third one we don't even know what is happening...)
from api.video-reactnative-live-stream.
I cant send adb logcat as I am sending errors from users from crashylitics
from api.video-reactnative-live-stream.
Ok, I understand.
We can't do much about it... We will read the code for the first and second issues to check if something is wrong but we cannot guarantee anything.
About the third one, there is a crash in libhwui and libc which are system libraries. At the state, we can't do anything about that.
from api.video-reactnative-live-stream.
Hi,
What version do you use?
About the first issue, the CodecSurface
Future
does not answer because there is a lock in the encoder provider. I can get the Future
to timeout but I would like to understand how it can happen.
About the second issue, there is a try/catch block around startStream/nativeConnectStream, it should not crash. See
from api.video-reactnative-live-stream.
I am using latest version v1.1.0
It happens on some devices, sometimes ANR and sometimes crash.
Steps :-
- Start livestream
- Wait 10-15 seconds
- Crash or ANR
Sometimes crash happens at start itself and sometimes at stop.
from api.video-reactnative-live-stream.
Hi,
We have made fixes in v1.1.2 which might fix these issues.
Feel free to reopen this issue if you still face similar issue.
from api.video-reactnative-live-stream.
Related Issues (20)
- Add Data message before streaming video HOT 9
- Crash on Android if the livestream is muted. Happens either you mute it midway or start from the muted state. HOT 4
- Difference between video record on phone? HOT 11
- java.security.InvalidParameterException: Failed to create codec for: {mime=video/avc, width=1080, height=1920} HOT 8
- audiosamplerate not included on iOS HOT 11
- A way to capture an image while user's broadcasting HOT 1
- Front camera got freeze after 2 to 3 seconds HOT 7
- README Code Sample is broke, invalid isMuted prop syntax HOT 1
- Camera Orientation issue. HOT 19
- iOS: Live Stream start in mirror mode. HOT 20
- Android: Camera view is stretching out. HOT 8
- [Bug]: Bitrate is not set correctly on initial render HOT 3
- [Bug]: App interrupts streaming and freezes when trying to stop stream HOT 10
- [Bug]: Can't stream with Android HOT 8
- [Feat]: A way to apply camera filters like skin smoothness and whiteness HOT 1
- [Bug]: LiveStreamView Warp HOT 2
- [Bug]: Build failure on new project HOT 13
- [Bug]: Expo SDK 49 HOT 17
- [Bug]: Add overlay on on going stream e.g water mark or real time data like scoreboard of sport HOT 3
- Android Orientation change but video always streaming on Portrait HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.video-reactnative-live-stream.