View Single Post
Old 03-17-2024, 12:19 PM   #83
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
That makes sense. There are no font resource objects at all in PageEdit. And in Sigil FontResource::GetDescription() is used to set Sigil's BookBrowser tooltip for every font. My guess is that the FontResource::GetDescription call to get font family information is what triggers the crash with woff / woff2 fonts on Windows.

The only other place calls like that happen is in the FontTab itself.

I wonder if we comment out the call to GetDescription in the MainUI/OPFModel.cpp to set that tooltip for BookBrowser fonts, if the crash would go away (assuming there are no Font Tabs open in the TabManager).

That would help us narrow down the problem.

Maybe when you have some free time we could try that.
KevinH is offline   Reply With Quote