-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
BugEither a bug report, or a bug fix. Let's hope for the latter!Either a bug report, or a bug fix. Let's hope for the latter!Crash/Data CorruptionProfile tool
Description
What is the bug or the crash?
QGIS crashes when a custom profile source is registered with the "Synchronize Layers to Project" active.
Custom Profile Sources can be registered by plugins, like Swiss Locator.
Steps to reproduce the issue
- Open QGIS (current master, 3.99) and open an Elevation profile widget.
- Check the
Synchronize Layers to Projectoption. - Register a custom profile source. E.g., run the following code snippet:
class MyDummyProfileGenerator(QgsAbstractProfileGenerator):
def __init__(self, request):
QgsAbstractProfileGenerator.__init__(self)
def sourceId(self):
return "my-dummy-profile"
def generateProfile(self, context):
return True
def takeResults(self):
return None
class MyDummyProfileSource(QgsAbstractProfileSource):
def __init__(self):
QgsAbstractProfileSource.__init__(self)
def createProfileGenerator(self, request):
return MyDummyProfileGenerator(request)
def profileSourceName(self):
return "My Dummy Profile"
def profileSourceId(self):
return "my-dummy-profile"
source = MyDummyProfileSource()
QgsApplication.profileSourceRegistry().registerProfileSource(source)The expected result would be this new Elevation profile source in the Elevation layer tree:
Versions
| QGIS version | 3.99.0-Master |
| QGIS code revision | f937ebdfd0b |
| Libraries | |
| Qt version | 6.9.2 |
| Python version | 3.13.7 |
| GDAL version | 3.10.3 |
| PROJ version | 9.6.0 |
| EPSG Registry database version | v12.004 (2025-03-02) |
| GEOS version | 3.13.1-CAPI-1.19.2 |
| SFCGAL version | No support |
| GeographicLib version | No support |
| SQLite version | 3.46.1 |
| PostgreSQL client version | 17.7 |
| SpatiaLite version | 5.1.0 |
| QWT version | 6.3.0 |
| QScintilla2 version | 2.14.1 |
| OS version | Ubuntu 25.10 |
| This copy of QGIS writes debugging output. | |
| Active Python plugins | |
| AppendFeaturesToLayer | 3.0.0 |
| MetaSearch | 0.3.6 |
| a00_qpip | dev |
| db_manager | 0.1.20 |
| grassprovider | 2.12.99 |
| open_alaqs | dev |
| pg_service_parser | 0.9.0 |
| processing | 2.12.99 |
Supported QGIS version
- I'm running a supported QGIS version according to the roadmap.
New profile
- I tried with a new QGIS profile
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugEither a bug report, or a bug fix. Let's hope for the latter!Either a bug report, or a bug fix. Let's hope for the latter!Crash/Data CorruptionProfile tool