MerginMaps / MerginMaps/mobile
Crash on assert when cancelling first time upload (debug mode)
Open
Nobody has claimed this yet.
bug
sync
- Dominant language
- C++
- Stars
- 388
- Forks
- 87
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 20
Description
What I did:
- create local project
- hit upload (creates new project on Mergin and starts to sync)
- hit stop in this process
Experienced:
- app crashes on assert here: https://github.com/lutraconsulting/input/blob/6d023f3e3ae6019478d73316704ebbc6c3621b8d/core/merginapi.cpp#L541
this case has comment// unexpected state
Expected:
- sync stops and project is NOT created on Mergin
As this is only Q_ASSERT, it crashes when in debug mode ~ not in production
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the local-project upload and immediate stop sequence in debug mode, then inspect core/merginapi.cpp at line 541. Done means cancellation stops syncing without triggering the assertion and the project is not created on Mergin; verify the behavior in both debug and production configurations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100