Ruddle / RemoteCam

Your android camera streamed on your desktop: use as a source for OBS, or as a webcam with v4l2. Free✅, No Ads✅, Open Source✅
MIT License
477 stars 55 forks source link

imageReader.acquireNextImage failed with ACQUIRE_MAX_IMAGES #18

Open MicroCBer opened 7 months ago

MicroCBer commented 7 months ago

It's clear that there are leaked image instances (not closed after use) but I didn't figure out where.

Replacing CamEngine.kt Line 230

var lastImg = imageReader.acquireNextImage()

with

var lastImg = imageReader.acquireLatestImage()

can be a temporary workaround for the issue, but we'd better find out where the images leaked.

MicroCBer commented 7 months ago

I'm using Android 14, btw.