-
-
Notifications
You must be signed in to change notification settings - Fork 813
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
Got drawCamera start. GL error: 1281 after version 2.5.8 #1785
Comments
Hello, Try with this commit: implementation 'com.github.pedroSG94.RootEncoder:library:9680da7936'
//Optional, allow use CameraXSource and CameraUvcSource
implementation 'com.github.pedroSG94.RootEncoder:extra-sources:9680da7936' If this solve the problem, I have plan to update a version after fix other issues reported |
Hello! I have tested the commit, but still crashing with the same error:
|
Try again with this: implementation 'com.github.pedroSG94.RootEncoder:library:08bd3b690c'
//Optional, allow use CameraXSource and CameraUvcSource
implementation 'com.github.pedroSG94.RootEncoder:extra-sources:08bd3b690c' I'm doing this because I'm not able to reproduce the problem. Maybe a class with full code example or a demo project in github could help me to reproduce it. |
Hello, the error still the same with the difference that the logs DO NOT show the second error:
Do not worry, I will test 10.000 times if necessary. This is the file I have all the core: https://github.com/danielhergil/calypso-app/blob/main/app/src/main/java/com/danihg/calypsoapp/presentation/camera/CameraScreen.kt The branch that contains the problems that i am testing for the library upgrade is Thank you so much!! |
Hello, now it returns this error. It does not crash, but the screen is black:
|
Yes, my bad. This is the commit: implementation 'com.github.pedroSG94.RootEncoder:library:a2f2032b1c'
//Optional, allow use CameraXSource and CameraUvcSource
implementation 'com.github.pedroSG94.RootEncoder:extra-sources:a2f2032b1c' |
That commit returns this log:
I think it points to a different places than previously. |
Hello, Try with this commit: implementation 'com.github.pedroSG94.RootEncoder:library:d35f99957b'
//Optional, allow use CameraXSource and CameraUvcSource
implementation 'com.github.pedroSG94.RootEncoder:extra-sources:d35f99957b' I know that the error is related with this: But I don't know the reason because it is wokring in fews devices and fail in others |
It is giving the same error with this commit. Yes I think the same, after the versión 2.5.7 probably some devices are not handling well. Whatever I can do to help with this, I am happy to do it. |
implementation 'com.github.pedroSG94.RootEncoder:library:d984eaaaaa'
//Optional, allow use CameraXSource and CameraUvcSource
implementation 'com.github.pedroSG94.RootEncoder:extra-sources:d984eaaaaa' The commit remove the code that produce the error, It is only to comfirm 100% that the error is related with that code. |
Confirmed, that commit is not crashing anything. The camera is rendered perfeclty. |
Hello, Try this commit: implementation 'com.github.pedroSG94.RootEncoder:library:e850eb2fc9'
//Optional, allow use CameraXSource and CameraUvcSource
implementation 'com.github.pedroSG94.RootEncoder:extra-sources:e850eb2fc9' This commit change the way filters works, if it is working, the feature that failed can be replaced by a filter. |
Hello, That commit seems to work fine, but I have seen something that didnt happen before. First, something that was a huge improve it is how the filters are drawing in the camera. Before this, it was like a screen refresh that you could see in your screen but also in the stream broadcast, now the filter draw is smooth and you dont notice anything in the screen. But, for example I have this filter that is drawing line by line, the team players of two teams, with a delay of 1 second between rows.
This is how I call it in the app:
Before, I could activate the filter any number of times, but now, after the first time that is drawing perfect, the second time and further are doing weird things, like drawing upside down puting the camera in black, or like double rendering. I dont know if this could be because I dont know if I explained it clearly but it is difficult to describe the behave after the second try drawing the filter. But anyways I have another filter (a scoreboard) that I can draw, remove, draw, remove, and repeat any time that it renders without problem, so maybe it could be something that I have to change in my filter instead, I just comment it because previously it didnt happen. I can share the filter itself if it could be interesting: https://github.com/danielhergil/calypso-app/blob/main/app/src/main/java/com/danihg/calypsoapp/overlays/TeamPlayersOverlay2.kt |
Hello, I will check it. The way filters are renderer changed so it is possible |
Hello, I have solved the problem I had with my filter by modifying the logic of my filter, that now is working. But I have been testing more the filters, changing, active one, then another and I have found that when I change filters, in my case, I active the scoreboard filter and then I change to the lin up filter, it returns this error with an app crash:
In my case, if I have the scoreboard filter that is an ImageObjectFilterRender and then I turn on the line up filter that is this one:
it crashes. But if I turn on each filter separately, first scoreboard, then I turn off scoreboard and I turn on line up it works good without problem. So it maybe has something to do with the way it clearFilters? Not sure about it, I will keep an eye on the behaviour to see if I can get close to the issue. |
Okay I have found something. If I introduce a delay between clearFilter and addFilter it is not crashing anymore:
I dont know if that can help, but for now is what I have found. P.S: I am working in the commit |
Hello, Thank you for the report. I will try using the same way that you did to reproduce the error:
|
Hello, I was testing it but I'm not able to reproduce the error in my devices. |
Anyway, I did a commit that maybe fix the error: implementation 'com.github.pedroSG94.RootEncoder:library:315929ed7e'
//Optional, allow use CameraXSource and CameraUvcSource
implementation 'com.github.pedroSG94.RootEncoder:extra-sources:315929ed7e' |
Hello! For me it still crashing if I do not set the delay between clearFilters and addFilter. Maybe it depends on the device processor, but knowing that is enough to avoid the crash, because is causes no impact in the app or development. Are the commits |
Yes, I have plan to add it to the next releaase. |
Nice! I am normally using Samsung Galaxy Note 10+ with Android version 12. |
Hi there! I am having a crash when I start the camera render in my SurfaceView after 2.5.8 version. I think the error may when the camera is trying to start with bad parameter even that the parameters are set before starting.
The commit that worked for me was
8fdb283
But I thing after this other change
1c5482d
it crashes in my app.
I wanted to know if I can do something in my app to solve this. The error log is this:
If helps, this is my SurfaceView:
This is how I instantiate generic stream:
I wanted to have the library updated for the new features and upgrades! Thank you so much
The text was updated successfully, but these errors were encountered: