MerginMaps / MerginMaps/mobile

App fails to copy image from device storage to project on some devices

Open
#2,918 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

android 🤖 bug forms photo-refactoring
Dominant language
C++
Stars
388
Forks
87
Avg merge
2d 7h
Merged PRs (30d)
20

Description

When the user uses the form attachment widget to add an existing photo to the project, they get an error that says 'Failed to copy image to /storage/emulated/0/Android/data/uk.co.lutraconsulting/files/projects/<project_name>/image_file_name.jpg'. The device is able to take photos with the camera, so the error only applies when adding an existing photo to the form.

Other users on the project with different devices do not experience this issue.

Information about the device in question:
Samsung Galaxy A6
Android 10
Mergin Maps version 2.4.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the form attachment flow for an existing photo on the reported Samsung Galaxy A6 running Android 10, comparing it with camera-created photos and devices where the flow works. Trace the failure that produces the reported copy error and verify that existing images can be added to the project without breaking the camera attachment flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.