Code Monkey home page Code Monkey logo

Comments (8)

pvasa avatar pvasa commented on May 28, 2024

@pcm2a I couldn't reproduce this behaviour using your demo branch #118 I also confirmed memory usage after closing and opening (also taking photos in between) camera activity multiple times and it seems normal. Let me know when you have more insights on this or more specific details about reproducing the issue.

from cameraview-ex.

pcm2a avatar pcm2a commented on May 28, 2024

I will try to migrate the changes over in small batches and see if I can figure out when the issue appears. I will also monitor memory to see if that is what is causing the issue.

from cameraview-ex.

pcm2a avatar pcm2a commented on May 28, 2024

I'm going to close this until I can provide any better information. I ran the profiler and memory and cpu both look great.

from cameraview-ex.

pcm2a avatar pcm2a commented on May 28, 2024

I found the missing piece. If the layout has the activity starting in video_capture instead of single_capture mode then I get the crash. If set to single_capture I can open the camera unlimited times. I have updated the example.

Also if I try to launch in single_capture and then change to video_capture once the activity starts, eventually I run into the same issue. Maybe something is not getting closed/cleaned up when leaving the activity in video mode.

I cannot reproduce this with a branch that is before the latest batch of merges.

from cameraview-ex.

pcm2a avatar pcm2a commented on May 28, 2024

Another thing I have noticed. I can launch in single_capture mode, manually change to video_capture mode, exit, repeat, works every time.

from cameraview-ex.

pcm2a avatar pcm2a commented on May 28, 2024

Updated the sample PR with a fix but I'm not sure it's the right thing to do.

from cameraview-ex.

pvasa avatar pvasa commented on May 28, 2024

@pcm2a #123 and #124 might have fixed this issue. Can you please confirm?

from cameraview-ex.

pcm2a avatar pcm2a commented on May 28, 2024

I am no longer able to reproduce the issue with the latest changes, thanks!

from cameraview-ex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.