FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Terrain: Fix TerrainQuery crash by rubenp02 · Pull Request #12960 · mavlink/qgroundcontrol · GitHub

Repository navigation

Terrain: Fix TerrainQuery crash - #12960

Merged
HTRamsey merged 2 commits into
mavlink:masterfrom
Ventor-Innovations:bugfix/fix-terrainquery-crash
Jun 5, 2025
Merged

HTRamsey merged 2 commits into
mavlink:masterfrom
Ventor-Innovations:bugfix/fix-terrainquery-crash

Conversation

rubenp02 commented Jun 3, 2025 •
edited
Loading

Copy link
Copy Markdown
Contributor

Terrain: Fix TerrainQuery crash

Description

This fixes a use-after-free crash caused by improper raw pointer usage in TerrainQuery.

Key changes:

  • Replace raw TerrainAtCoordinateQuery pointers with QPointer to automatically track object lifetime.
  • Remove manual destroyed signal handling and related cleanup code.

In addition to this, some no-op logic has been removed.

Test Steps

Connect a real APM vehicle with a mission of around 300 waypoints. The application will often crash after loading the mission and drawing the plan.

Checklist:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

rubenp02 added 2 commits June 3, 2025 16:55
This fixes a use-after-free crash caused by improper raw pointer usage
in TerrainQuery.

Key changes:
- Replace raw TerrainAtCoordinateQuery pointers with QPointer to
  automatically track object lifetime.
- Remove manual destroyed signal handling and related cleanup code.
rubenp02 changed the title Fix TerrainQuery crash Terrain: Fix TerrainQuery crash Jun 3, 2025
HTRamsey merged commit f3deca2 into mavlink:master Jun 5, 2025
rubenp02 deleted the bugfix/fix-terrainquery-crash branch June 6, 2025 20:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL