Skip to content

Sometimes the application freeze while saving photos #1

Open

Description

@danopdev

This may happes when taking too many photos in continuous mode or when the smartphone CPU is under heavy load (by another application).

This may be cause by saving the photos on the flash in another thread or "available memory" not being correctly detected.

As a possible solution I will switch back to save photos as soon they are received from the sensor.

Activity

  1. danopdev commented on Jun 16, 2022

    @danopdev
    OwnerAuthor

    To be tested in a CPU stress condition.

  2. danopdev commented on Jul 2, 2022

    @danopdev
    OwnerAuthor

    Actually the trade off is a much slower time between 2 photos.
    For my usage it was better before so I rollback changes.

  3. added a commit that references this issue on Jul 2, 2022
  4. danopdev commented on Jul 10, 2022

    @danopdev
    OwnerAuthor

    Try to use suggestions from https://developer.android.com/topic/performance/memory to detect low memory situations.
    In case on low memory stop buffering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址