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

QGIS crashing on start on Mac #38858

Closed
gubuntu opened this issue Sep 18, 2020 · 6 comments
Closed

QGIS crashing on start on Mac #38858

gubuntu opened this issue Sep 18, 2020 · 6 comments
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! macOS

Comments

@gubuntu
Copy link

gubuntu commented Sep 18, 2020

Describe the bug

QGIS crashes on start

How to Reproduce

Open QGIS

QGIS and OS versions

MacOS 10.15.6

QGIS 3.14.15 and 3.14.16

ERROR 4: Unable to open EPSG support file gcs.csv.  Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.
ERROR 4: Unable to open EPSG support file gcs.csv.  Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
ERROR 4: Unable to open EPSG support file gcs.csv.  Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x0000000117f81dc0 (most recent call first):
zsh: abort      /Applications/QGIS3.14.app/Contents/MacOS/QGIS```

QGIS 3.10.10

% /Applications/QGIS3.10.app/Contents/MacOS/QGIS
ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x0000000103838dc0 (most recent call first):
zsh: abort /Applications/QGIS3.10.app/Contents/MacOS/QGIS```

Additional context

@gubuntu gubuntu added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 18, 2020
@gioman gioman added the macOS label Sep 18, 2020
@PeterPetrik
Copy link
Contributor

can you please try with https://qgis.org/downloads/macos/nightly2/qgis_nightly2_master_20200917_044804.dmg ? The QGIS 3.16 will be release with completely different package mechanism

@PeterPetrik PeterPetrik self-assigned this Sep 22, 2020
@PeterPetrik
Copy link
Contributor

Date/Time:             2020-09-24 14:42:37.936 +0200
OS Version:            Mac OS X 10.15.6 (19G2021)
Report Version:        12
Bridge OS Version:     3.0 (14Y908)
Anonymous UUID:        A6C9A501-7811-4CD4-6C76-12E947BC2BC6
Sleep/Wake UUID:       0ECE9619-6B22-4D68-9F1E-FB7D9799F6E8
Time Awake Since Boot: 28000 seconds
Time Since Wake:       7300 seconds
System Integrity Protection: enabled
Crashed Thread:        22  Thread (pooled)
Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000100000003
Exception Note:        EXC_CORPSE_NOTIFY
Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [8601]
VM Regions Near 0x100000003:
--> 
    __TEXT                 0000000100a75000-0000000100ad6000 [  388K] r-x/rwx SM=COW  /Applications/QGIS.app/Contents/MacOS/QGIS
Thread 0:: Dispatch queue: com.apple.main-thread
0   org.qt-project.QtGui            0x00000001031c720c OT::Coverage::get_coverage(unsigned int) const + 204
1   org.qt-project.QtGui            0x00000001031cbf02 OT::match_coverage(unsigned int, OT::IntType<unsigned short, 2u> const&, void const*) + 34
2   org.qt-project.QtGui            0x00000001031d8396 OT::hb_apply_context_t::skipping_iterator_t::prev() + 166
3   org.qt-project.QtGui            0x00000001031d81c8 OT::chain_context_apply_lookup(OT::hb_apply_context_t*, unsigned int, OT::IntType<unsigned short, 2u> const*, unsigned int, OT::IntType<unsigned short, 2u> const*, unsigned int, OT::IntType<unsigned short, 2u> const*, unsigned int, OT::LookupRecord const*, OT::ChainContextApplyLookupContext&) + 280
4   org.qt-project.QtGui            0x00000001031d88a7 OT::ChainContextFormat3::apply(OT::hb_apply_context_t*) const + 295
5   org.qt-project.QtGui            0x00000001031db0b1 apply_forward(OT::hb_apply_context_t*, hb_ot_layout_lookup_accelerator_t const&, hb_auto_array_t<hb_get_subtables_context_t::hb_applicable_t> const&) + 305
6   org.qt-project.QtGui            0x00000001031c642b void apply_string<GSUBProxy>(OT::hb_apply_context_t*, GSUBProxy::Lookup const&, hb_ot_layout_lookup_accelerator_t const&) + 507
7   org.qt-project.QtGui            0x00000001031c5bdd void hb_ot_map_t::apply<GSUBProxy>(GSUBProxy const&, hb_ot_shape_plan_t const*, hb_font_t*, hb_buffer_t*) const + 573
8   org.qt-project.QtGui            0x00000001031c5991 hb_ot_map_t::substitute(hb_ot_shape_plan_t const*, hb_font_t*, hb_buffer_t*) const + 65
9   org.qt-project.QtGui            0x00000001031df7a7 _hb_ot_shape + 2695
10  org.qt-project.QtGui            0x00000001031c03fb hb_shape_plan_execute + 299
11  org.qt-project.QtGui            0x00000001031bfbd9 hb_shape_full + 89
12  org.qt-project.QtGui            0x0000000102e885ba QTextEngine::shapeTextWithHarfbuzzNG(QScriptItem const&, unsigned short const*, int, QFontEngine*, QVector<unsigned int> const&, bool, bool) const + 1146
13  org.qt-project.QtGui            0x0000000102e86ed6 QTextEngine::shapeText(int) const + 3302
14  org.qt-project.QtGui            0x0000000102e9ec62 QTextLine::layout_helper(int) + 802
15  org.qt-project.QtWidgets        0x0000000102900e56 QPlainTextDocumentLayout::layoutBlock(QTextBlock const&) + 390
16  org.qt-project.QtWidgets        0x0000000102900bba QPlainTextDocumentLayout::blockBoundingRect(QTextBlock const&) const + 74
17  org.qt-project.QtWidgets        0x00000001029026c0 QPlainTextEditControl::blockBoundingRect(QTextBlock const&) const + 176
18  org.qt-project.QtWidgets        0x000000010293b28f QWidgetTextControl::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 2879
19  org.qt-project.QtCore           0x000000010361fbd5 void doActivate<false>(QObject*, int, void**) + 1477
20  org.qt-project.QtGui            0x0000000102ed4267 QAbstractTextDocumentLayout::updateBlock(QTextBlock const&) + 55
21  org.qt-project.QtWidgets        0x00000001029015da QPlainTextDocumentLayout::documentChanged(int, int, int) + 858
22  org.qt-project.QtGui            0x0000000102ec1125 QTextDocumentPrivate::finishEdit() + 197
23  org.qt-project.QtGui            0x0000000102ef9b95 QTextCursor::endEditBlock() + 229
24  org.qt-project.QtWidgets        0x0000000102939469 QWidgetTextControlPrivate::append(QString const&, Qt::TextFormat) + 265
25  org.qt-project.QtWidgets        0x0000000102908d2e QPlainTextEditPrivate::append(QString const&, Qt::TextFormat) + 366
26  org.qgis.qgis3_gui              0x0000000101d1a851 QgsMessageLogViewer::logMessage(QString const&, QString const&, Qgis::MessageLevel) + 2577
27  org.qt-project.QtCore           0x0000000103617cff QObject::event(QEvent*) + 943
28  org.qt-project.QtWidgets        0x0000000102783a3a QWidget::event(QEvent*) + 4698
29  org.qt-project.QtWidgets        0x0000000102747f5a QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266
30  org.qt-project.QtWidgets        0x00000001027493e6 QApplication::notify(QObject*, QEvent*) + 598
31  org.qgis.qgis3_core             0x0000000105595f53 QgsApplication::notify(QObject*, QEvent*) + 67
32  org.qt-project.QtCore           0x00000001035ec9f4 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
33  org.qt-project.QtCore           0x00000001035edbe9 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 809
34  libqcocoa.dylib                 0x0000000111feb0e9 QCocoaEventDispatcherPrivate::processPostedEvents() + 313
35  libqcocoa.dylib                 0x0000000111feb858 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 40
36  com.apple.CoreFoundation        0x00007fff33424d52 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
37  com.apple.CoreFoundation        0x00007fff33424cf1 __CFRunLoopDoSource0 + 103
38  com.apple.CoreFoundation        0x00007fff33424b0b __CFRunLoopDoSources0 + 209
39  com.apple.CoreFoundation        0x00007fff3342383a __CFRunLoopRun + 927
40  com.apple.CoreFoundation        0x00007fff33422e3e CFRunLoopRunSpecific + 462
41  com.apple.HIToolbox             0x00007fff3204fabd RunCurrentEventLoopInMode + 292
42  com.apple.HIToolbox             0x00007fff3204f7d5 ReceiveNextEventCommon + 584
43  com.apple.HIToolbox             0x00007fff3204f579 _BlockUntilNextEventMatchingListInModeWithFilter + 64
44  com.apple.AppKit                0x00007fff30695039 _DPSNextEvent + 883
45  com.apple.AppKit                0x00007fff30693880 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
46  com.apple.AppKit                0x00007fff3068558e -[NSApplication run] + 658
47  libqcocoa.dylib                 0x0000000111fea5d3 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2579
48  org.qt-project.QtCore           0x00000001035e8a7f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
49  org.qt-project.QtCore           0x00000001035ed002 QCoreApplication::exec() + 130
50  org.qgis.qgis3                  0x0000000100a8ee48 main + 24984
51  libdyld.dylib                   0x00007fff6d491cc9 start + 1

@PeterPetrik
Copy link
Contributor

OT::Coverage::get_coverage is part of https://github.com/harfbuzz/harfbuzz

@PeterPetrik
Copy link
Contributor

could be also strange default qt/qgis font

@PeterPetrik
Copy link
Contributor

can you try mv ~/Library/Application\ Support/QGIS/QGIS3/profiles ~/Library/Application\ Support/QGIS/QGIS3/profiles_bk to start with completely new profile. Harfbuzz is library used by fonts, so I suspect that it could be with some missing, unaccessible font used somewhere...

@gubuntu
Copy link
Author

gubuntu commented Sep 25, 2020

Moving the profile fixed it, thanks (through now I have to start again with a blank profile)

@gubuntu gubuntu closed this as completed Sep 25, 2020
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
Projects
None yet
Development

No branches or pull requests

3 participants