Under certain situations, I will receive the following error from my PySide2 application:

2020-02-07 10:19:50.577 Python[59660:37972433] Could not retrieve fonts from the server! Registering system fonts locally…

After which the application will crash with a SIGABRT (stack trace attached). It would appear it is crashing somewhere in the setHtml() function of a QGraphicsTextItem, but I can’t seem to find this error in the source code (either Qt itself or PySide2). Where might this error be coming from?

 
Process:               Python [61932]
Path:                  
/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.7.2 (3.7.2)
Code Type:             X86-64 (Native)
Parent Process:        Python [61615]
Responsible:           Python [61932]
User ID:               501

Date/Time:             2020-02-07 10:29:46.026 -0900
OS Version:            Mac OS X 10.14.6 (18G2022)
Report Version:        12
Bridge OS Version:     4.2 (17P2551)
Anonymous UUID:        BC84B3B0-228C-0818-7633-F0607CDEDDF3

Sleep/Wake UUID:       33612020-30D6-4538-9C5B-E8C18AB22DCE

Time Awake Since Boot: 1900000 seconds
Time Since Wake:       750000 seconds

System Integrity Protection: disabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** multi-threaded process forked ***
crashed on child side of fork pre-exec
USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x00007fff663da2c2 __pthread_kill + 10
1   libsystem_pthread.dylib             0x00007fff66495bf1 pthread_kill + 284
2   libsystem_c.dylib                   0x00007fff663446a6 abort + 127
3   com.apple.CoreServices.CarbonCore   0x00007fff3b6568a1 
USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER + 46
4   com.apple.CoreServices.CarbonCore   0x00007fff3b5b4876 
_SCSessionUniverseByUIDAcquireAndLock + 56
5   com.apple.CoreServices.CarbonCore   0x00007fff3b5b37dc 
FSNodeStorageGetAndLockCurrentUniverse + 95
6   com.apple.CoreServices.CarbonCore   0x00007fff3b5b365a 
FileIDTreeGetAndLockVolumeEntryForDeviceID + 38
7   com.apple.CoreServices.CarbonCore   0x00007fff3b5b35b7 
FSMount::FSMount(unsigned int, FSMountNumberType, int*, unsigned int const*) + 
75
8   com.apple.CoreServices.CarbonCore   0x00007fff3b5b3531 FSMountPrepare + 69
9   com.apple.CoreServicesInternal      0x00007fff4e4e1a30 
MountInfoPrepare(void***, unsigned int, int, void*, unsigned int const*, 
__CFURL const*, __CFError**) + 43
10  com.apple.CoreServicesInternal      0x00007fff4e4e1428 
parseAttributeBuffer(__CFAllocator const*, unsigned char const*, unsigned char, 
attrlist const*, void const*, void**, _FileAttributes*, unsigned int*) + 3209
11  com.apple.CoreServicesInternal      0x00007fff4e4e0491 
corePropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString 
const* const*, void const**, long, void const*, __CFError**) + 834
12  com.apple.CoreServicesInternal      0x00007fff4e4e00ee 
prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, 
__CFError**) + 360
13  com.apple.CoreServicesInternal      0x00007fff4e4e1d3d 
_FSURLCopyResourcePropertyForKeyInternal(__CFURL const*, __CFString const*, 
void*, void*, __CFError**, unsigned char) + 214
14  com.apple.CoreFoundation            0x00007fff3a321d2b 
CFURLCopyResourcePropertyForKey + 101
15  libFontRegistry.dylib               0x00007fff3891e56c 
TCFURL::ConformsToUTI(__CFString const*) const + 48
16  libFontRegistry.dylib               0x00007fff38929ca4 
TLocalFontRegistryImp::RegisterFont(__CFURL const*, __CFDictionary const*, 
unsigned int, unsigned int, __CFError**) const + 198
17  libFontRegistry.dylib               0x00007fff389343ac 
TGlobalFontRegistry::RegisterSystemFontsLocally(TFontRegistryProtocol&, bool) + 
720
18  libFontRegistry.dylib               0x00007fff38934b10 
TGlobalFontRegistry::CopyAvailableFontFamilyNames(TFontQueryOptions const&) 
const + 102
19  libFontRegistry.dylib               0x00007fff38942430 
XTCopyAvailableFamilyNames2 + 159
20  com.apple.CoreText                  0x00007fff3bf8bf2a 
TDescriptorSource::CopyAvailableFamilyNames(__CFString const*) const + 118
21  com.apple.CoreText                  0x00007fff3bf8be4a 
CTFontManagerCopyAvailableFontFamilyNames + 35
22  libqoffscreen.dylib                 0x000000012201612a 
QCoreTextFontDatabase::populateFontDatabase() + 42
23  QtGui                               0x000000011d17e91f initializeDb() + 223
24  QtGui                               0x000000011d17f752 
QFontDatabase::findFont(QFontDef const&, int) + 66
25  QtGui                               0x000000011d1824f6 
QFontDatabase::load(QFontPrivate const*, int) + 2758
26  QtGui                               0x000000011d157763 
QFontPrivate::engineForScript(int) const + 451
27  QtGui                               0x000000011d190f7d 
QScriptLine::setDefaultHeight(QTextEngine*) + 237
28  QtGui                               0x000000011d1e6225 
QTextDocumentLayoutPrivate::layoutBlock(QTextBlock const&, int, 
QTextBlockFormat const&, QTextLayoutStruct*, int, int, QTextBlockFormat const*) 
+ 2549
29  QtGui                               0x000000011d1dceac 
QTextDocumentLayoutPrivate::layoutFlow(QTextFrame::iterator, 
QTextLayoutStruct*, int, int, QFixed) + 2716
30  QtGui                               0x000000011d1e5322 
QTextDocumentLayoutPrivate::layoutFrame(QTextFrame*, int, int, QFixed, QFixed, 
QFixed) + 2770
31  QtGui                               0x000000011d1e476c 
QTextDocumentLayoutPrivate::layoutFrame(QTextFrame*, int, int, QFixed) + 1100
32  QtGui                               0x000000011d1e840f 
QTextDocumentLayout::doLayout(int, int, int) + 511
33  QtGui                               0x000000011d1e7ef7 
QTextDocumentLayout::documentChanged(int, int, int) + 823
34  QtGui                               0x000000011d1b1c30 
QTextDocument::documentLayout() const + 64
35  QtWidgets                           0x000000011e644758 
QWidgetTextControlPrivate::setContent(Qt::TextFormat, QString const&, 
QTextDocument*) + 216
36  QtWidgets                           0x000000011e64647d 
QWidgetTextControl::QWidgetTextControl(QObject*) + 109
37  QtWidgets                           0x000000011e7705f6 
QGraphicsTextItemPrivate::textControl() const + 54
38  QtWidgets                           0x000000011e7705a2 
QGraphicsTextItem::setHtml(QString const&) + 18
39  QtWidgets.abi3.so                   0x000000011ebd1176 
Sbk_QGraphicsTextItemFunc_setHtml(_object*, _object*) + 134
40  org.python.python                   0x000000010cca78a5 
_PyMethodDef_RawFastCallKeywords + 757
41  org.python.python                   0x000000010cca6cca 
_PyCFunction_FastCallKeywords + 42
42  org.python.python                   0x000000010cd65865 call_function + 821
43  org.python.python                   0x000000010cd627bc 
_PyEval_EvalFrameDefault + 25164
44  org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
45  org.python.python                   0x000000010cca6c91 
_PyFunction_FastCallKeywords + 257
46  org.python.python                   0x000000010cd65812 call_function + 738
47  org.python.python                   0x000000010cd627d6 
_PyEval_EvalFrameDefault + 25190
48  org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
49  org.python.python                   0x000000010cca6c91 
_PyFunction_FastCallKeywords + 257
50  org.python.python                   0x000000010cd65812 call_function + 738
51  org.python.python                   0x000000010cd627d6 
_PyEval_EvalFrameDefault + 25190
52  org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
53  org.python.python                   0x000000010cca686b 
_PyFunction_FastCallDict + 523
54  org.python.python                   0x000000010cca7b3f 
_PyObject_Call_Prepend + 143
55  org.python.python                   0x000000010ccf6001 slot_tp_init + 145
56  org.python.python                   0x000000010ccf1959 type_call + 297
57  org.python.python                   0x000000010cca6ae1 
_PyObject_FastCallKeywords + 433
58  org.python.python                   0x000000010cd656d4 call_function + 420
59  org.python.python                   0x000000010cd6291d 
_PyEval_EvalFrameDefault + 25517
60  org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
61  org.python.python                   0x000000010cca6c91 
_PyFunction_FastCallKeywords + 257
62  org.python.python                   0x000000010cd65812 call_function + 738
63  org.python.python                   0x000000010cd62877 
_PyEval_EvalFrameDefault + 25351
64  org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
65  org.python.python                   0x000000010cca686b 
_PyFunction_FastCallDict + 523
66  org.python.python                   0x000000010cd62ae7 
_PyEval_EvalFrameDefault + 25975
67  org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
68  org.python.python                   0x000000010cd65812 call_function + 738
69  org.python.python                   0x000000010cd627bc 
_PyEval_EvalFrameDefault + 25164
70  org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
71  org.python.python                   0x000000010cd65812 call_function + 738
72  org.python.python                   0x000000010cd627bc 
_PyEval_EvalFrameDefault + 25164
73  org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
74  org.python.python                   0x000000010cd65812 call_function + 738
75  org.python.python                   0x000000010cd627bc 
_PyEval_EvalFrameDefault + 25164
76  org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
77  org.python.python                   0x000000010cca66f4 
_PyFunction_FastCallDict + 148
78  org.python.python                   0x000000010cca7b3f 
_PyObject_Call_Prepend + 143
79  org.python.python                   0x000000010ccf6001 slot_tp_init + 145
80  org.python.python                   0x000000010ccf1959 type_call + 297
81  org.python.python                   0x000000010cca6ae1 
_PyObject_FastCallKeywords + 433
82  org.python.python                   0x000000010cd656d4 call_function + 420
83  org.python.python                   0x000000010cd62877 
_PyEval_EvalFrameDefault + 25351
84  org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
85  org.python.python                   0x000000010cd65812 call_function + 738
86  org.python.python                   0x000000010cd627d6 
_PyEval_EvalFrameDefault + 25190
87  org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
88  org.python.python                   0x000000010cd65812 call_function + 738
89  org.python.python                   0x000000010cd627d6 
_PyEval_EvalFrameDefault + 25190
90  org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
91  org.python.python                   0x000000010cd65812 call_function + 738
92  org.python.python                   0x000000010cd627bc 
_PyEval_EvalFrameDefault + 25164
93  org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
94  org.python.python                   0x000000010cca6c91 
_PyFunction_FastCallKeywords + 257
95  org.python.python                   0x000000010cd65812 call_function + 738
96  org.python.python                   0x000000010cd6291d 
_PyEval_EvalFrameDefault + 25517
97  org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
98  org.python.python                   0x000000010cd5c494 PyEval_EvalCode + 100
99  org.python.python                   0x000000010cd59a7d builtin_exec + 557
100 org.python.python                   0x000000010cca775e 
_PyMethodDef_RawFastCallKeywords + 430
101 org.python.python                   0x000000010cca6cca 
_PyCFunction_FastCallKeywords + 42
102 org.python.python                   0x000000010cd65804 call_function + 724
103 org.python.python                   0x000000010cd62877 
_PyEval_EvalFrameDefault + 25351
104 org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
105 org.python.python                   0x000000010cca6c91 
_PyFunction_FastCallKeywords + 257
106 org.python.python                   0x000000010cd65812 call_function + 738
107 org.python.python                   0x000000010cd62877 
_PyEval_EvalFrameDefault + 25351
108 org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
109 org.python.python                   0x000000010cca6c91 
_PyFunction_FastCallKeywords + 257
110 org.python.python                   0x000000010cd65812 call_function + 738
111 org.python.python                   0x000000010cd627d6 
_PyEval_EvalFrameDefault + 25190
112 org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
113 org.python.python                   0x000000010cd65812 call_function + 738
114 org.python.python                   0x000000010cd627bc 
_PyEval_EvalFrameDefault + 25164
115 org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
116 org.python.python                   0x000000010cd65812 call_function + 738
117 org.python.python                   0x000000010cd627bc 
_PyEval_EvalFrameDefault + 25164
118 org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
119 org.python.python                   0x000000010cd65812 call_function + 738
120 org.python.python                   0x000000010cd627bc 
_PyEval_EvalFrameDefault + 25164
121 org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
122 org.python.python                   0x000000010cd65812 call_function + 738
123 org.python.python                   0x000000010cd62877 
_PyEval_EvalFrameDefault + 25351
124 org.python.python                   0x000000010cca7100 
function_code_fastcall + 128
125 org.python.python                   0x000000010cd65812 call_function + 738
126 org.python.python                   0x000000010cd627d6 
_PyEval_EvalFrameDefault + 25190
127 org.python.python                   0x000000010cd66336 
_PyEval_EvalCodeWithName + 2422
128 org.python.python                   0x000000010cd5c494 PyEval_EvalCode + 100
129 org.python.python                   0x000000010cd99b51 PyRun_FileExFlags + 
209
130 org.python.python                   0x000000010cd993ca 
PyRun_SimpleFileExFlags + 890
131 org.python.python                   0x000000010cdb8beb pymain_main + 6827
132 org.python.python                   0x000000010cdb913a _Py_UnixMain + 58
133 libdyld.dylib                       0x00007fff6629f3d5 start + 1

---
Israel Brewster
Software Engineer
Alaska Volcano Observatory 
Geophysical Institute - UAF 
2156 Koyukuk Drive 
Fairbanks AK 99775-7320
Work: 907-474-5172
cell:  907-328-9145

_______________________________________________
PySide mailing list
PySide@qt-project.org
https://lists.qt-project.org/listinfo/pyside

Reply via email to