Skip to content

Fix ios crash not crash#4131

Merged
tomasMizera merged 2 commits intodev/2025.7.0from
fix/ios-crash-not-crash
Oct 9, 2025
Merged

Fix ios crash not crash#4131
tomasMizera merged 2 commits intodev/2025.7.0from
fix/ios-crash-not-crash

Conversation

@Withalion
Copy link
Contributor

fixes #4124

The issue was in the double deletion of QQmlEngine which threw exception on ios. This was caused by previous fix of qml component deletion flow on application flow. The current approach fixes both things.

@Withalion Withalion linked an issue Oct 5, 2025 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Oct 5, 2025

Pull Request Test Coverage Report for Build 18282831068

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 93 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.02%) to 19.635%

Files with Coverage Reduction New Missed Lines %
build-mm-db/core/mm_core_autogen/EWIEGA46WW/moc_merginapi.cpp 3 44.31%
mm/core/merginuserauth.cpp 9 68.24%
mm/core/merginapi.cpp 13 75.02%
mm/app/main.cpp 68 35.79%
Totals Coverage Status
Change from base Build 18221222417: -0.02%
Covered Lines: 13935
Relevant Lines: 70972

💛 - Coveralls

app/main.cpp Outdated

// this fixes the error dump from C++ defined QML components, when quiting application
QObject::connect(&app, &QCoreApplication::aboutToQuit, [&] {
object->deleteLater();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, How we we even find bug like these, I would have never noticed this bug. Because this does seem like a normal engine exit, because I never knew if you do deleteLater in QQMlEngine it double calls on the stack.

@tomasMizera tomasMizera merged commit 473dad6 into dev/2025.7.0 Oct 9, 2025
9 checks passed
@tomasMizera tomasMizera deleted the fix/ios-crash-not-crash branch October 9, 2025 16:13
tomasMizera added a commit that referenced this pull request Oct 31, 2025
* Target android 15 (#4010)

* Remove dep on mobile-sdk (Hello vcpkg) (#3811)

Remove dependency on mobile-sdk and system Qt via building of all Mergin Maps deps libraries (QGIS, GDAL, Proj, Qt, and others) by vcpkg system. Changes to CI GitHub workflows, asset management and shared files for platforms. Fixed windows and linux builds.

* Fix error dump on quit from QML components (#4104)

* Fix/diagnostic log copy able (#4120)

* Fix windows EOF breaking preview

* Refactor AttributePreviewController

* Add new formats for Exiv2 library (#4125)

* Merge pull request #4129 from MerginMaps/fix/haptic-vibration

Fix haptic vibration

* Fix android CI (#4122)

* Fix android CI

* Update version to 2025.7.0

* Fix apk size

* Death to input (#4103)

* Fix ios crash not crash (#4131)

* Fix the double deletion of Qml Engine

* Fix formatting & Clazy warning

* Fix forgotten ndk path variable (#4150)

* Fix android missing proj & qgis resources on android (#4155)

* Sign AABs too

---------

Co-authored-by: Peter Petrik <zilolv@gmail.com>
Co-authored-by: Kaustuv Pokharel <85729205+kaustuvpokharel@users.noreply.github.com>
Co-authored-by: Tomas Mizera <tomas.mizera@lutraconsulting.co.uk>
gabriel-bolbotina pushed a commit that referenced this pull request Nov 19, 2025
* Fix the double deletion of Qml Engine

* Fix formatting & Clazy warning
gabriel-bolbotina pushed a commit that referenced this pull request Nov 25, 2025
* Fix the double deletion of Qml Engine

* Fix formatting & Clazy warning
gabriel-bolbotina pushed a commit that referenced this pull request Dec 18, 2025
* Fix the double deletion of Qml Engine

* Fix formatting & Clazy warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect Crash message displayed after App restart

3 participants