You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
09-20 19:04:14.825 906 18275 E PDTblGen: [getTbl] dev(1) scenario(0) : Table is not generated. Please check error log during generating table (1st time lunch sensor mode(0))
09-20 19:04:14.825 906 18275 E PDTblGen: (getTbl){#778:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/common/utils/PDTblGen/PDTblGen.cpp}
09-20 19:04:14.825 906 18275 E isp_mgr_bnr: apply(): Fail to Gen PDC Table, SensorDev(1), SensorMode(0), FrontBin(0)
09-20 19:04:14.825 906 18275 E isp_mgr_bnr: (apply){#266:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/mt6765/isp_mgr/isp_mgr_bnr.cpp}
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: Failed to acquire image.
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: java.lang.IllegalStateException: maxImages (6) has already been acquired, call #close before acquiring more.
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at android.media.ImageReader.acquireNextImage(ImageReader.java:527)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.AndroidImageReaderProxy.acquireNextImage(AndroidImageReaderProxy.java:86)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.SafeCloseImageReaderProxy.acquireNextImage(SafeCloseImageReaderProxy.java:86)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.ImageAnalysisBlockingAnalyzer.acquireImage(ImageAnalysisBlockingAnalyzer.java:39)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.ImageAnalysisAbstractAnalyzer.onImageAvailable(ImageAnalysisAbstractAnalyzer.java:126)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.SafeCloseImageReaderProxy.lambda$setOnImageAvailableListener$1$androidx-camera-core-SafeCloseImageReaderProxy(SafeCloseImageReaderProxy.java:211)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.SafeCloseImageReaderProxy$$ExternalSyntheticLambda0.onImageAvailable(D8$$SyntheticClass:0)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.AndroidImageReaderProxy.lambda$setOnImageAvailableListener$0$androidx-camera-core-AndroidImageReaderProxy(AndroidImageReaderProxy.java:167)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.AndroidImageReaderProxy$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: at java.lang.Thread.run(Thread.java:923)
09-20 19:04:14.858 906 18275 E PDTblGen: [getTbl] dev(1) scenario(0) : Table is not generated. Please check error log during generating table (1st time lunch sensor mode(0))
09-20 19:04:14.858 906 18275 E PDTblGen: (getTbl){#778:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/common/utils/PDTblGen/PDTblGen.cpp}
09-20 19:04:14.858 906 18275 E isp_mgr_bnr: apply(): Fail to Gen PDC Table, SensorDev(1), SensorMode(0), FrontBin(0)
09-20 19:04:14.858 906 18275 E isp_mgr_bnr: (apply){#266:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/mt6765/isp_mgr/isp_mgr_bnr.cpp}
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: Failed to acquire image.
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: java.lang.IllegalStateException: maxImages (6) has already been acquired, call #close before acquiring more.
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at android.media.ImageReader.acquireNextImage(ImageReader.java:527)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.AndroidImageReaderProxy.acquireNextImage(AndroidImageReaderProxy.java:86)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.SafeCloseImageReaderProxy.acquireNextImage(SafeCloseImageReaderProxy.java:86)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.ImageAnalysisBlockingAnalyzer.acquireImage(ImageAnalysisBlockingAnalyzer.java:39)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.ImageAnalysisAbstractAnalyzer.onImageAvailable(ImageAnalysisAbstractAnalyzer.java:126)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.SafeCloseImageReaderProxy.lambda$setOnImageAvailableListener$1$androidx-camera-core-SafeCloseImageReaderProxy(SafeCloseImageReaderProxy.java:211)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.SafeCloseImageReaderProxy$$ExternalSyntheticLambda0.onImageAvailable(D8$$SyntheticClass:0)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.AndroidImageReaderProxy.lambda$setOnImageAvailableListener$0$androidx-camera-core-AndroidImageReaderProxy(AndroidImageReaderProxy.java:167)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at androidx.camera.core.AndroidImageReaderProxy$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
09-20 19:04:14.863 18105 18387 E ImageAnalysisAnalyzer: at java.lang.Thread.run(Thread.java:923)
It looks like you're encountering an IllegalStateException when capturing frames. Make sure you are properly closing images after processing them with frame.close() in your revFrameProcessor. If you're still having issues, please provide more details about your setup. Also, have you tried reproducing this issue in the VisionCamera Example app? This can help narrow down the problem.
If you want to keep supporting this project, consider sponsoring mrousavy! It helps keep ze project maintained.
Note: If you think I made a mistake, please ping @mrousavy to take a look.
mrousavy
changed the title
🐛 09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: java.lang.IllegalStateException: maxImages (6) has already been acquired, call #close before acquiring more.
🐛 IllegalStateException: maxImages (6) has already been acquired, call #close before acquiring more.
Sep 25, 2024
What's happening?
App Crashes when I start Capturing Frames ie : in my Example below , when I set
isActive
totrue
Reproduceable Code
Relevant log output
Camera Device
Device
Android
VisionCamera Version
"react-native-vision-camera": "^4.5.3",
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information
The text was updated successfully, but these errors were encountered: