Skip to content

Temporal Controller hangs when exporting animation with complex expression #65679

@spatialthoughts

Description

@spatialthoughts

What is the bug or the crash?

I have a QGIS project where I am trying to animate a GPS track and display the information about the track on on the canvas as a label. Everything works well and the animation plays smoothly via the Temporal Controller. But when you click the "Export Animation" and start the export, QGIS hangs.

I have narrowed it down to a complex aggregate() expression which is causing this. Removing the aggregate expression makes the export go smoothly. Also displaying the information via a Title decoration works even with the aggregate() expression. So the issue is related to rendering the label by evaluating the label expresion from the layer.

Steps to reproduce the issue

I have attached a GeoPackage containing the QGIS project and the data layers here. To reproduce

  • Download the gps.gpkg.zip
    and unzip it.
  • Browse to the gps.gpkg in the Browser and Expand it. and drag-and-drop the GPS_Animation project
  • Open the temporal controller and set to Animated temporal navigation. Click 'Play'.
  • The animation plays smoothly and both time and distance labels update.
  • Click Export Animation, choose a folder and click 'Save'
  • QGIS Hangs
Image

Versions

The same issue applies to QGIS 3.44 as well.

QGIS version4.0.0-Norrköping
QGIS code revision1ddcee3d
 
Libraries
Qt version6.9.3
Python version3.12.11
GDAL version3.12.0 — Chicoutimi
PROJ version9.7.1
EPSG Registry database versionv12.029 (2025-10-03)
GEOS version3.14.1-CAPI-1.20.5
SFCGAL version2.2.0
GeographicLib versionNo support
SQLite version3.51.1
PDAL version2.9.3
PostgreSQL client version16.9
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionmacOS Tahoe (26.1)
 
Active Python plugins
MetaSearch0.3.6
QuickOSM2.5.1
db_manager0.1.20
grassprovider2.12.99
processing2.12.99
quick_map_services1.2.1

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

No Duplicate of the Issue

  • I have verified that there are no existing issues raised related to my problem.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEither a bug report, or a bug fix. Let's hope for the latter!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions