Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2024, 12:15 PM   #46
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,645
Karma: 5433388
Join Date: Nov 2009
Device: many
Does it happen under Linux? I tested loading and opening DNSB's test epub 20 times in a row on macOS and it never had a problem.

If we can recreate it under Linux, we may be able to track it down easier.
KevinH is offline   Reply With Quote
Old 03-16-2024, 12:20 PM   #47
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by DNSB View Post
As an experiment, you might also want to try setting the display scaling to 100%. A while back I had an issue with an app using Qt6 that was not happy with some fonts that QT6 interpreted as passing invalid data when the display scaling was not 100%.
Bingo! I typically run at 125% on this laptop, but changing it to 100% allows the epub in question to load without crashing Sigil. So it IS Qt6. It also explains why it seems to be manifesting more on laptops. But I would expect anyone using a highdpi monitor with Windows to be running a scaling greater than 100%, no?

Unfortunately, telling users to change to 100% scaling isn't really a viable workaround. It'd be easier to tell them to ditch the woff fonts!

I don't really know where to begin.

Last edited by DiapDealer; 03-16-2024 at 12:23 PM.
DiapDealer is offline   Reply With Quote
Advert
Old 03-16-2024, 12:33 PM   #48
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,645
Karma: 5433388
Join Date: Nov 2009
Device: many
Does this bug recreate with Qt 6.6.2 as well? Perhaps it is fixed there (he said hopefully!).
KevinH is offline   Reply With Quote
Old 03-16-2024, 12:37 PM   #49
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Does this bug recreate with Qt 6.6.2 as well? Perhaps it is fixed there (he said hopefully!).
No such luck. The version of Sigil I'm running on the laptop was built using our new Qt6.6.2.

I also tested on Linux and can't recreate the problem there. I've got a highdpi monitor for my linux box that scales the display to 175%.
DiapDealer is offline   Reply With Quote
Old 03-16-2024, 12:50 PM   #50
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,645
Karma: 5433388
Join Date: Nov 2009
Device: many
Well that sucks! The number of Windows font handling bugs listed in the qtbug database is quite large with many closed automatically after a time with no fixes.

There was one font bug related to dpi scaling that may be related but they found a workaround by disableing Windows directwrite as follows:

application.exe -platform windows:nodirectwrite


Does adding that prevent the crash?

If not, I am out of ideas.
KevinH is offline   Reply With Quote
Advert
Old 03-16-2024, 12:53 PM   #51
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,645
Karma: 5433388
Join Date: Nov 2009
Device: many
If we can track down where exactly it is crashing, we can probably find a patch workaround.

There was a nice testcase here that might be useful if it can recreate the crash:

https://bugreports.qt.io/browse/QTBUG-108204
KevinH is offline   Reply With Quote
Old 03-16-2024, 01:00 PM   #52
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,645
Karma: 5433388
Join Date: Nov 2009
Device: many
I wonder if this is a graphics driver bug that tickles a Qt bug. There were a number of font handling related bug reports in Qt all for a single type of graphics card.

Could everyone experiencing these issues with woff fonts by using the same graphics card company?
KevinH is offline   Reply With Quote
Old 03-16-2024, 01:20 PM   #53
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,645
Karma: 5433388
Join Date: Nov 2009
Device: many
And here is the only recent Windows specific font change that made it into dev head that is not in Qt 6.6.2 as far as I can tell.

https://github.com/qt/qtbase/commit/...827305ef4a7040

So there are different font backends on Windows we can try to see if any properly handle the woff fonts when dpi scaling is not 100%

They are listed in the commit comments.
KevinH is offline   Reply With Quote
Old 03-16-2024, 01:34 PM   #54
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Well that sucks! The number of Windows font handling bugs listed in the qtbug database is quite large with many closed automatically after a time with no fixes.

There was one font bug related to dpi scaling that may be related but they found a workaround by disableing Windows directwrite as follows:

application.exe -platform windows:nodirectwrite


Does adding that prevent the crash?

If not, I am out of ideas.
That DOES, in fact, prevent the crash! I added it via the QT_QPA_PLATFORM environment variable. The Sigil debug output verifies that the platform argument is being implemented:
Code:
Debug: Current windows platform args:  QList("nomousefromtouch", "nodirectwrite")
Debug: New windows platform args:  "windows:nomousefromtouch:nodirectwrite:altgr"
After launching the epub in question (successfully), the debug output includes:
Code:
Warning: QWindowsFontDatabase::fontEngine: Can't change family name of font
Once for each of the 8 woff2 fonts included in the test epub.
DiapDealer is offline   Reply With Quote
Old 03-16-2024, 01:55 PM   #55
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
I was able to reproduce this with Windows 11 and the Gentium Plus 6.200 fonts on my laptop.
https://software.sil.org/gentium/download/

Here are the steps:
  • Download the Gentium fonts und unzip them.
  • Right-click the Desktop, select Display Settings or enter Display Settings in the Search box.
  • Scroll down to Scale & layout, select Custom Scaling and enter 120.
  • Windows will ask you to log out.
  • Login again and create a blank epub2 oder epub3 book.
  • Add woff or woff2 fonts from the web sub folder to the Sigil Fonts folder.
BTW, Sigil won't crash, if any of the Gentium .ttf fonts are added to the Fonts folder. while custom scaling is in effect. It also appears that the Sigil font handler might have problems reading the font metadata, because it displays "No reliable font data" instead of the font name for all woff and woff2 fonts when no custom scaling is in effect.

Last edited by Doitsu; 03-16-2024 at 02:11 PM.
Doitsu is offline   Reply With Quote
Old 03-16-2024, 02:00 PM   #56
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Could everyone experiencing these issues with woff fonts by using the same graphics card company?
I just noticed this, but I don't think it's the case. Mine is an integrated intel graphics card, and the user who reported the github issue appears to have an nvidia card (according to the machine specs in the link they included).
DiapDealer is offline   Reply With Quote
Old 03-16-2024, 02:14 PM   #57
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
I just noticed this, but I don't think it's the case. Mine is an integrated intel graphics card, and the user who reported the github issue appears to have an nvidia card (according to the machine specs in the link they included).
My cheap laptop has an integrated graphics card:
Processor AMD A4-9125 RADEON R3, 4 COMPUTE CORES 2C+2G, 2300 Mhz, 2 Core(s), 2 Logical Processor(s)
Doitsu is offline   Reply With Quote
Old 03-16-2024, 02:24 PM   #58
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Did you check to see if adding Kevin's above platform argument works with scales other than 100%?

application.exe -platform windows:nodirectwrite

You can also set the QT_QPA_PLATFORM environment variable to windows:nodirectwrite
DiapDealer is offline   Reply With Quote
Old 03-16-2024, 02:37 PM   #59
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,645
Karma: 5433388
Join Date: Nov 2009
Device: many
FWIW, Qt 6 dev and 6.8 will default to always using the DirectWrite backend for fonts on Windows. But DirectWrite backend support is incomplete as of Qt 6.6.x as it is missing the following changes that dev provides:

https://github.com/qt/qtbase/commit/...9280ae524482b7

So the only thing that will workaround this issue to to force fallback to the gdi font backend on Windows.

Alternatively we could try to backport the directwrite backend fixes from dev back to Qt 6.6.2 and hope that does the trick as it completes support for more font types. I have no idea if that is doable or not.
KevinH is offline   Reply With Quote
Old 03-16-2024, 02:46 PM   #60
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
Did you check to see if adding Kevin's above platform argument works with scales other than 100%?
When I used the following path in the Run dialog and hit Enter, Sigil didn't crash:
Code:
"C:\Program Files\Sigil\Sigil.exe" -platform windows:nodirectwrite
Doitsu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Libra 2 Installing Custom Fonts BookCat Kobo Reader 41 04-05-2022 09:01 AM
Installing fonts Pajamaman KOReader 6 09-05-2020 02:06 PM
Installing Tamil Fonts on SnPRS - T2 Raman Sony Reader 3 01-12-2013 11:54 AM
Installing Tamil Fonts on Kindle 4.1.0 sriramvenkatesan Amazon Kindle 14 10-22-2012 10:45 AM
PRS-T1 Still have a problem with installing fonts in my device hamedavatar Sony Reader 5 06-21-2012 05:46 PM


All times are GMT -4. The time now is 10:22 AM.


MobileRead.com is a privately owned, operated and funded community.