Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS/Qt6: constructing QgsCoordinateReferenceSystem crashes #60119

Closed
1 of 2 tasks
kommen opened this issue Jan 11, 2025 · 6 comments
Closed
1 of 2 tasks

macOS/Qt6: constructing QgsCoordinateReferenceSystem crashes #60119

kommen opened this issue Jan 11, 2025 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! macOS qt6

Comments

@kommen
Copy link

kommen commented Jan 11, 2025

What is the bug or the crash?

constructing an QgsCoordinateReferenceSystem(4326) crashes QGIS

I'm using the macOS/Qt6 build from @m-kuhn provided here: #60039 (comment)

previous versions of QGIS don't crash. (I tested QGIS 3.40.2, the offical build from qgis.org)

QgsCoordinateReferenceSystem(4326) is used in the https://plugins.qgis.org/plugins/StreetView/ plugin, which I try to make work with Qt6.

Steps to reproduce the issue

1 ) Go to the Python Console
2) evaluate QgsCoordinateReferenceSystem(4326)

Versions

QGIS version3.41.0-Master
QGIS code revisionc1b7e5ae
 
Libraries
Qt version6.8.1
Python version3.11.10
GDAL/OGR version3.9.3
PROJ version9.5.1
EPSG Registry database versionv11.022 (2024-11-05)
GEOS version3.13.0-CAPI-1.19.0
SQLite version3.47.2
PDAL version2.8.1
PostgreSQL client version16.4
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionmacOS Sonoma (14.7)
 
Active Python plugins
plugin_reloader0.17
StreetView3.2
processing2.12.99
grassprovider2.12.99
db_manager0.1.20
MetaSearch0.3.6

Supported QGIS version

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

New profile

Additional context

No response

@kommen kommen added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jan 11, 2025
@kommen
Copy link
Author

kommen commented Jan 11, 2025

Addendum:

Constructing it with QgsCoordinateReferenceSystem("EPSG:4326") instead of QgsCoordinateReferenceSystem(4326) works as expected and doesn't crash.

@agiudiceandrea
Copy link
Member

Just an observation: QgsCoordinateReferenceSystem(4326) constructor is deprecated.
The issue doesn't occur on Windows running QGIS 3.41.0-Master a2c3471 (Qt 6.6.3, Python 3.12.8 - OSGeo4W).

@nicogodet
Copy link
Member

Root cause might be #60363

Would worth a re-check but I think this can be closed

@kommen
Copy link
Author

kommen commented Feb 10, 2025

I will re-check a soon as current master is merged into #60039

@m-kuhn
Copy link
Member

m-kuhn commented Feb 10, 2025

Retriggered a new build now

@kommen
Copy link
Author

kommen commented Feb 10, 2025

Confimed fixed in the latest build from #60039

Thanks a lot everbody!

@kommen kommen closed this as completed Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! macOS qt6
Projects
None yet
Development

No branches or pull requests

4 participants