qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.65k stars 3.01k forks source link

QGIS crashes when clicking on "font" button when creating a label on layout view on macOS and some fonts have been deactivated #46967

Open visaviweb opened 2 years ago

visaviweb commented 2 years ago

What is the bug or the crash?

Qgis crash when clicking on "font" button when creating a label on layout view

Steps to reproduce the issue

  1. creare a new layout
  2. create a new label
  3. on the "item properties" pannel under "Appearance" click on the "Font" button.

Versions

QGIS version 3.22.1-Białowieża QGIS code revision 663dcf8fb9
Qt version 5.15.2
Python version 3.9.5
GDAL/OGR version 3.3.2
PROJ version 8.1.1
EPSG Registry database version v10.028 (2021-07-07)
GEOS version 3.9.1-CAPI-1.14.2
SQLite version 3.35.2
PDAL version 2.3.0
PostgreSQL client version 12.3
SpatiaLite version 5.0.1
QWT version 6.1.6
QScintilla2 version 2.11.5
OS version macOS 12.1
       

Active Python plugins DigitizingTools | 1.5.1 QuickOSM | 2.0.0 profiletool | 4.2.1 quick_map_services | 0.19.27 QGISSortAndNumber-master | 1.0 SRTM-Downloader | 3.1.15 qgis2web | 3.16.0 latlontools | 3.6.1 Qgis2threejs | 2.6 simplesvg | 3.0.1 tile_plus | 0.1 mmqgis | 2021.9.10 StreetView | 3.2 processing | 2.12.99 sagaprovider | 2.12.99 grassprovider | 2.12.99 db_manager | 0.1.20 MetaSearch | 0.3.5

Supported QGIS version

New profile

Additional context

No response

gioman commented 2 years ago

3.22.1-Białowieża

@visaviweb upgrade to 3.22.3, try with a new QGIS profile (settings > profiles > new profile).

visaviweb commented 2 years ago

I have just tried with a new profile with the same result.

gioman commented 2 years ago

I have just tried with a new profile with the same result.

@visaviweb try also upgrading. If the problem persist please attach a sample project+data.

visaviweb commented 2 years ago

I have upgraded to 3.22.3-Białowieża and the problem persist. Here in attachment a sample project. Sentiere_del_Viandante.zip

roya0045 commented 2 years ago

Comeback of #40278 ?

visaviweb commented 2 years ago

Ok yes, it seems so: I have desactived some supplemental font on my Mac too and if I activate them Qgis don't crash. But I think it is still an issu as supplemental font should not be required to run an application...

gioman commented 2 years ago

Ok yes, it seems so: I have desactived some supplemental font on my Mac too and if I activate them Qgis don't crash. But I think it is still an issu as supplemental font should not be required to run an application...

@visaviweb can you elaborate please?

gioman commented 2 years ago

Not an issue on Windows and Linux.

visaviweb commented 2 years ago

Ok yes, it seems so: I have desactived some supplemental font on my Mac too and if I activate them Qgis don't crash. But I think it is still an issu as supplemental font should not be required to run an application...

@visaviweb can you elaborate please?

"Supplemental" fonts should be like "optional". So I should be able to deactivate them safely in my opinion. After some tests it seems that these families of fonts cause the problem:

gioman commented 2 years ago

If one of these fonts is deactivated then QGIS crash clicking on the "font" button on the layout view.

@visaviweb I'm not in front of my mac machine, are those fonts installed by default on macOS? What are the steps you follow to disable them on macOS?

visaviweb commented 2 years ago

These fonts are installed by MacOS 12.1, they are situated in /System/Library/Fonts/Supplemental/. I disable them using TypeFace an app to manage fonts. Note that I have disable other supplemental fonts without creating any issue in QGIS.

gioman commented 2 years ago

Confirmed here on macOS Catalina and Monterey.