MerginMaps / MerginMaps/mobile

App Crashes When Selecting Layer with Failed PostGIS Connection

Open
#4,568 1 comment 0 reactions 1 assignee View on GitHub

@xkello is already working on this.

Since Aug 25, 2026.

bug data corruption - sync failure - crash - anr
Dominant language
C++
Stars
388
Forks
87
Avg merge
2d 7h
Merged PRs (30d)
20

Description

Summary:
----------------
When the application fails to load a PostGIS layer due to missing authentication credentials, selecting that layer in the Layers panel causes the application to crash instead of displaying a user-friendly error message.

Environment:
-----------------
Staging [x] PROD [x}

Application:
Device/OS/APP: IPhone 15 / iOS26.5 / MM 2026.3.0 - 924211

Steps to Reproduce:
---------------

1. Open the application with a project containing a PostGIS layer (adresy) with missing/invalid database credentials.
2. Observe the warning in Project Issues — "Unable to load source" for layer adresy.
3. Navigate to Layers and tap the adresy layer.
4. Observe the application crash.

Actual Behaviour:
-------------------
The application crashes when the user attempts to select a layer that failed to load due to a PostGIS connection error

Expected Behaviour:
-----------------
The application should handle the failed PostGIS connection gracefully and display an informative error message, The application should remain running.

Screenrecord:

https://github.com/user-attachments/assets/0a23547d-b02a-4280-b794-62818c555549

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.