Closed amosaxe closed 1 month ago
Guten Tag, Hans here.
[!NOTE] New features, bugfixes, updates and other improvements are all handled mostly by
@mrousavy
in his free time. To support@mrousavy
, please consider š sponsoring him on GitHub š. Sponsored issues will be prioritized.
I even tried the exact same code of example app by migrating(copy pasting) on my app and it still crashes, but if I run the example app it works fine.
I have only removed the frame processor while migrating the example app code.
I also looked into android studio logs(logcat). The above logs i had attached from flipper crash reporter
in the logcat i feel this is the main issue:
Unable to update properties for view tag 65 com.facebook.react.uimanager.IllegalViewOperationException: ViewManager for tag 65 could not be found.
this error I saw that is an open issue and was marked as close as well after v4. Any suggestions what to do?
update: finally it works, to have a complete copy I even added react-native-worklets-core and a frame processor and now it works, not sure what was the reason, still eager to know so keeping this open
You are running out of memory, that is what the log is trying to tell you. So it might be that you have a memory leak somewhere, you could try to profile it using the Android Studio Memory Profiler. I don't think it's related to this library, otherwise the example app would also crash for that very reason. Maybe you could try to find the source of the memory usage?
Yep, I honestly dont blame the library, and will put more details after profiling. Will test once if example also crash if i remove the worklets and update here.
Hey - to be honest this does not sound like a VisionCamera issue, if it works fine in Example but crashes with your code (and the Camera props remain mostly the same) it is very likely something else.
Maybe some other library is allocating a ton of stuff, maybe you have an endless loop allocating JSI Values - I don't know but it doesn't sound VisionCamera related.
Let me know what you find out after profiling - worst case we can just reopen this issue :)
What's happening?
I wanted to take a video, but it crashes after video is recorded and previews start. It crashes anywhere during the preview screen or gets stuck. I have tried on two devices, oneplus 6T and motorolla g60. This only happens with back camera.
Reproduceable Code
Relevant log output
Camera Device
Device
motorolla g60
VisionCamera Version
4.3.2
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information