Bug 118424 - DejaVu font files installed by LibreOffice 6 on Windows crash GIMP 2.10
Summary: DejaVu font files installed by LibreOffice 6 on Windows crash GIMP 2.10
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.0.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-27 20:08 UTC by luvr
Modified: 2018-06-30 16:42 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
BAT file to move the LibreOffice font files out of the way. (8.21 KB, text/plain)
2018-06-27 20:12 UTC, luvr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description luvr 2018-06-27 20:08:58 UTC
Description:
I installed GIMP 2.10 on Windows 10, then installed LibreOffice 6.
From that point on, GIMP no longer worked, but instead crashed upon startup.
Furthermore, the LibreOffice startup screen displayed its text messages in a rather unpleasant fixed-width font (see https://drive.google.com/open?id=1wcJa8oFw8IxJsQaWaYxkgif1dZOR0dHQ)--as if the font that it actually was trying to use didn't work.

Uninstalling LibreOffice made GIMP work normally again.

Reinstalling LibreOffice, then removing the font files that it added to my C:\Windows\Fonts directory, also allowed GIMP to function normally. In addition, the LibreOffice startup screen now displays a far more pleasant font.

Steps to Reproduce:
1.  Install GIMP 2.10.
2.  Start GIMP - Works OK.
3.  Install LibreOffice.
4.  Start LibreOffice - Works OK (except for the unpleasant font on its startup screen).
5.  Start GIMP - CRASH!
6.  Remove LibreOffice font files from the system.
7.  Delete FNTCACHE.DAT from C:\Windows\System32.
8.  Reboot - FNTCACHE.DAT is recreated, but smaller than it was.
9.  Start GIMP - OK.
10. Start LibreOffice - OK.

Actual Results:
After installing LibreOffice, GIMP stops working, but crashes on startup.

Expected Results:
GIMP should continue to function normally, whether or not LibreOffice is installed.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Removing the LibreOffice font files from my system allowed GIMP to work normally again.

Something seems badly wrong with the LibreOffice font files, since even LibreOffice itself seems to be unable to make sense of them.

See also https://gitlab.gnome.org/GNOME/gimp/issues/1366#note_256010
Comment 1 luvr 2018-06-27 20:12:51 UTC
Created attachment 143174 [details]
BAT file to move the LibreOffice font files out of the way.

After I moved the LibreOffice font files out of the way and forced my system to recreate its FNTCACHE.DAT file, everything returned to normal.
Comment 2 V Stuart Foote 2018-06-28 02:56:32 UTC
Can not confirm on Windows 10 Home 64-bit en-US with

GIMP 2.10.2

and 
Version: 6.0.5.2 (x64)
Build ID: 54c8cbb85f300ac59db32fe8a675ff7683cd5a16
CPU threads: 4; OS: Windows 10.0; UI render: default (or OpenGL)
Locale: en-US (en_US); Calc: CL

Both programs launch and run with out issue.
Comment 3 luvr 2018-06-28 07:11:51 UTC
I'll try and install GIMP and LibreOffice together on my dad's laptop one of these weekends. He uses Dutch-language settings, just as on my laptop, so if I cannot reproduce the issue there, then we can at least rule out the language settings as the culprit.
Comment 4 luvr 2018-06-29 22:25:52 UTC
As I documented at https://gitlab.gnome.org/GNOME/gimp/issues/1366#note_257590 there are actually two font files that will make GIMP crash:
 - DejaVuSans.ttf
 - DejaVuSans-Bold.ttf

Two other files will allow GIMP to run, but make it display missing-character rectangles on its filter toolbox:
 - DejaVuSans-Oblique.ttf
 - DejaVuSans-BoldOblique.ttf

The remaining 168 TTFs installed by LibreOffice do not seem to cause any problems.
Comment 5 Roman Kuznetsov 2018-06-30 09:35:51 UTC
Did you write about this problem in bugzilla of GIMP?

ps: Try use GIMP 2.8.x, because GIMP 2.10 on Windows is full guano.

IMHO this bug - NOTOURBUG
Comment 6 luvr 2018-06-30 14:53:55 UTC
Yes, I reported the issue to the GIMP issue tracker.
However, after I found that the problem was triggered by the fonts delivered with LibreOffice, it seemed to be a LibreOffice problem instead - specifically with the font files that it distributes.

I also tried GIMP 2.8, but that runs into the same problem as 2.10.

I found different versions of the four problem font files on my Ubuntu 16.04 system. Therefore, I ran a test using these files, but the problem remains: GIMP still crashes.

So, you must be right, and the issue apparently has nothing to do with LibreOffice after all.
Comment 7 V Stuart Foote 2018-06-30 16:42:38 UTC
GIMP 2.10.2 works correctly without crash for the DejaVu family fonts listed comment 4

Also, we've bundled DejaVu 2.37 since 2016-09-10, with no recent changes on the LibreOffice end => NOB

=-ref-=
https://opengrok.libreoffice.org/xref/core/external/more_fonts/ExternalPackage_dejavu.mk

https://gerrit.libreoffice.org/28778