-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[tfjs-react-native] cameraWithTensors shows a Black Screen after Software updates on both Android and iOS (CODE NEVER CHANGES) #6092
Comments
Same issue for me, works on my Android 9 device but stopped working on my Android 11 device even after updating packages |
Me either. I also tried upgrading and downgrading this package and related packages many times, but nothing works. |
Same issue |
Hi, Could you guys try this example? I tried it on iOS 15.3 (just updated my phone) and it seems to work. Sorry I don't have android phones at the moment. Thanks! |
@jinjingforever It doesn't work for me on Android 11. No error is thrown, but when I start the app, it just crashed and closed immediately. |
Thanks @jomariya23156 Our team is trying to get some newer android devices and I will update here when I find anything. Thanks for your patience. |
@jinjingforever Update: I sent your example to one of my friends to test it on his iOS 15. It's working properly. Only Android devices have the problem now I think. |
Hi, I just ran into the same problem in a project of my own. I have tested it with both Android and iOS devices. Sometimes a camera image is displayed very briefly. After that, the element is just black. The same is true for the text that is inserted into the element. Is there already a solution in this regard? |
Hello, I am experiencing the same issue with the cameraWithTensors. The preview appears for a split second before displaying a black screen. I noticed the preview appears on 60hz phones but not on high refresh screens. Tested on Android 10,11,12 and IOS 15. |
@ALL did you get chance to check @jinjingforever comments here #6230 (comment) for related issue. Please let us know if this helps. Thank you |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you. |
Closing as stale. Please @mention us if this needs more attention. |
@rthadur The solution works fine on my friend's iOS 15. But I have not tested it on my android phone yet. I will update as soon as I try it. |
System information
(package.json is provided below)
Describe the current behavior
I have done a project about pose estimation on mobile devices and successfully deploy it at Expo. However, after a few months without touching it, I came back and wanted to develop new features. So, I went to the Expo page with the QR code that I have deployed my app (link provided below) and tested it. Somehow, on the screen that is used to open the front camera and do pose detection, it's not working properly. No errors were thrown, but the camera never opens (it shows the black screen). I have tried changing from cameraWithTensors to bare Camera component from expo-camera to check where the problem could be and the Camera component can work properly. I also tried changing the models that I have loaded to check whether there are any problems, but there is none. With that said, I think the problem should be the cameraWithTensors component. Moreover, I have cloned the Github repo of this project and tried it locally (WITHOUT ANY CODE AND PACKAGES CHANGES), it also shows the same behavior. So, I believe this is the problem with the package version that occurs after the Software/OS updates on devices. How to fix this and make it work again?
Describe the expected behavior
Open the camera and models work properly
Standalone code to reproduce the issue
My minimal version should be something similar to this example: https://github.com/tensorflow/tfjs/blob/master/tfjs-react-native/integration_rn59/components/webcam/realtime_demo.tsx
But make it in pure js version, not typescript, and use hooks instead of those componentDidMount things.
Full version (it's long and some parts are quite messy): https://github.com/jomariya23156/Multi-Fit/blob/master/screens/Exercise.js OR https://drive.google.com/file/d/1LjvkqkKKKF94lttu1R-CGRZZ5T0iOLS0/view?usp=sharing
Github repo: https://github.com/jomariya23156/Multi-Fit
If you have Expo Go installed and use devices with updated software, you can scan this QR code to observe this behavior: https://expo.dev/@ariya23156/Multifit
If you scan the QR code above (or clone Github repo and start expo), this is what you should do to navigate to the page where this problem occurs:
package.json
The text was updated successfully, but these errors were encountered: