[PySide] "Could not retrieve fonts from the server"

Jason H jhihn at gmx.com
Sat Feb 8 13:49:14 CET 2020


Googling your error came up with logs doing users who also were on Mac but not using Qt. So you're right, definitely not a Qt error, and I agree it's something that your app must be doing. You don't add fonts at runtime? I had a barcode font give me issues once... 



> Sent: Friday, February 07, 2020 at 11:13 PM
> From: "Israel Brewster" <ijbrewster at alaska.edu>
> To: "Jason H" <jhihn at gmx.com>
> Cc: pyside at qt-project.org
> Subject: Re: [PySide] "Could not retrieve fonts from the server"
>
> I am on a Mac, yes. If it’s a corrupt font entry, it’s odd, because it only occurs under very specific circumstances. From my tracing of the code, setHtml() itself does not reference any fonts - at least, not explicitly. Of course, the *drawing* of said html would almost certainly need to reference fonts, and that could be the issue, or any one of the signals it generates could be connected to something that does.
> 
> Specifically, though, I asked “Where might this error be coming from” not, “what might be causing this error”. While tracking down the source of the error is, of course, my ultimate goal, I would assume that it has something to do with my code (or, more specifically, the way I am utilizing PySide2/Qt), and as such is not something that others are likely to be able to help with without spending a lot of time trying to understand my code. I wouldn’t expect that. However, if I could find where the error is *actually* coming from, i.e. what Qt/PySide2 code is actually generating the error, I could probably trace the cause back.
> 
> ---
> 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
> 
> > On Feb 7, 2020, at 12:52 PM, Jason H <jhihn at gmx.com> wrote:
> > 
> > Are you on a mac? Seems to be a corrupt font entry?
> > I would assume that the setHtml is referencing a font that is causing the lookup and subsequent crash?
> >  
> >  
> >  
> > Sent: Friday, February 07, 2020 at 2:48 PM
> > From: "Israel Brewster" <ijbrewster at alaska.edu>
> > To: pyside at qt-project.org
> > Subject: [PySide] "Could not retrieve fonts from the server"
> > 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?
> >  
> >  
> >  
> > ---
> > 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 at qt-project.org https://lists.qt-project.org/listinfo/pyside <https://lists.qt-project.org/listinfo/pyside>
>


More information about the PySide mailing list