-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
NullPointerException in the MainRender.getSurfaceTexture method #1685
Comments
Hello, we are also getting same above crash when using genericCamera2 with OpenGlView. |
Can you give me more info about it? Can you share me a code example to reproduce it? Also, the library version 2.5.5 is not the version which crash in the image because the crash line is not correct. Line 451 is this: Which no correspond to the logcat. I need know the exact compilation used |
Hello, Can you show me code of prepareStream method? |
Yes @pedroSG94
|
Hello, Sorry for late response. I'm on holidays I will create multiple checks for this case in a commit. Do you know if this crash is frequent? This only should happens when glInterface start is not fully completed because the SurfaceTexture is ceated in that method but reading the code that nerver should happens. |
Hi @pedroSG94 No problem at all, I hope you're enjoying your holidays! Regarding your question about the crash frequency, I don't have exact data on how often it occurs, but it seems to happen intermittently in the app. I’ve noticed it a couple of times, but it’s not consistent, so I’m not sure if it’s a recurring issue or just a rare occurrence. I’m using the library on the main thread as recommended, so I don’t believe threading is the issue here. It seems like the crash might be linked to the glInterface start not completing fully, as you mentioned. I’ll keep an eye on it and provide more details if it happens again. Looking forward to your commit with the checks, and I’ll test it once it’s ready! Thanks for your help, and enjoy the rest of your holidays! |
Describe the bug
The app crashes when starting a stream due to a NullPointerException in the MainRender.getSurfaceTexture method.
To Reproduce
Steps to reproduce the behavior:
Open the app.
Navigate to the stream setup screen.
Start a new screen broadcast stream session.
Observe the app crash.
Expected behavior
The stream should start successfully without crashing.
Screenshots
Smartphone (please complete the following information):
Library version: 2.5.4
Device: Motorola Malta
OS: Android 10 (SDK 29)
Media server: [e.g. SRS, version 5.0]
Class used: [e.g. RtmpCamera1]
Additional context
Crash logs from Play Console:
The text was updated successfully, but these errors were encountered: