Mactype: DirectWrite feature crashes Chrome

Created on 25 Mar 2019  路  20Comments  路  Source: snowie2000/mactype

Using the latest 2018.1-beta5
Noticed if the DirectWrite enabled, Chrome will keep crashing

OS: Windows 8.1 64bit

bug

Most helpful comment

This will definitely work for you.
MacType-W8.zip


I ended up building my own Windows 8.1 VM and it took me several hours to realize why Windows 8 is well known as Windows bug 8.
It has too many bugs in all aspects. A lot of common APIs don't work correctly or simply crashed when called when the app is sandboxed, such as GetDC, GetStockObject, DeleteDC, and DirectWrite also doesn't work as expected. GDI interop crashed on use, cast interface from IDWriteFont3 to IDWriteFontFaceReference succeeded but returned an empty result to me which caused another crash...

I've added some more checks to MacType and fully disabled font substitution of DirectWrite on Windows 8/8.1. And finally, it works.

All 20 comments

This usually caused by some anti-malware software as the DirectWrite support is the simplest one: it only changes the parameters of the DirectWrite engine.

I had a clean install Win8.1(64bit), with only Chrome(73.0.3683.86 64bit) and Mactype
It still crashes Chrome, or do I need to provide logs?

DW1
DW0

Can you try other chromium based browser? like... Cent Browser, Chromium, Brave etc etc

The quality of your screenshots is too bad to see details.

The quality of your screenshots is too bad to see details.

I recorded a video for more details.
https://youtu.be/wQIfxs9NFow

Did you modify any part of the profile?

Nope, just "DirectWrite", and the other built-in profiles like XMac have the same problem.

@a0193143 is the issue still occurring with Chrome 74?

@a0193143 is the issue still occurring with Chrome 74?

@sammilucia Still the same

@a0193143 thank you! I'm sorry for the delay.

Interesting, can anyone else confirm this?

In the meantime @a0193143, Cent Browser is the recommended browser for MacType, it's based on Chrome but still supports GDI (or DirectWrite) font rendering, plus a number of other enhancements.

@a0193143 Hi, I would like to know if you are available for some tests.
I would like to compile new versions for you with some of the directwrite features disabled so that we can locate the problematic code.

@a0193143 Hi, I would like to know if you are available for some tests.
I would like to compile new versions for you with some of the directwrite features disabled so that we can locate the problematic code.

Sure

Ok, the first build I would like you to try is this one:
MacType-no-replace.zip

This one has the latest process injector and has DirectWrite font substitution disabled which, I believe, most likely caused the problem.

Ok, the first build I would like you to try is this one:
MacType-no-replace.zip

This one has the latest process injector and has DirectWrite font substitution disabled which, I believe, most likely caused the problem.

Unfortunately, the problem still there.

Plus, I've tested previous beta versions, this problem occured since beta4.
Beta 1 and 2 are fine.

Thank you. this helps narrowing down the problem a lot.

This will definitely work for you.
MacType-W8.zip


I ended up building my own Windows 8.1 VM and it took me several hours to realize why Windows 8 is well known as Windows bug 8.
It has too many bugs in all aspects. A lot of common APIs don't work correctly or simply crashed when called when the app is sandboxed, such as GetDC, GetStockObject, DeleteDC, and DirectWrite also doesn't work as expected. GDI interop crashed on use, cast interface from IDWriteFont3 to IDWriteFontFaceReference succeeded but returned an empty result to me which caused another crash...

I've added some more checks to MacType and fully disabled font substitution of DirectWrite on Windows 8/8.1. And finally, it works.

This will definitely work for you.
MacType-W8.zip

I ended up building my own Windows 8.1 VM and it took me several hours to realize why Windows 8 is well known as Windows bug 8.
It has too many bugs in all aspects. A lot of common APIs don't work correctly or simply crashed when called when the app is sandboxed, such as GetDC, GetStockObject, DeleteDC, and DirectWrite also doesn't work as expected. GDI interop crashed on use, cast interface from IDWriteFont3 to IDWriteFontFaceReference succeeded but returned an empty result to me which caused another crash...

I've added some more checks to MacType and fully disabled font substitution of DirectWrite on Windows 8/8.1. And finally, it works.

Yep, it does work.
Thanks
Looking for stable release! :)

Can I just take a moment to acknowledge what a kick-ass coder @snowie2000 is? I've worked with a lot of coders snowie and you're amazing 馃槉

Please try the new beta6 here https://github.com/snowie2000/mactype/releases/tag/2019.1-beta6. I will close this issue as we believe it's resolved however if you still have problems please let us know (respond to this thread).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IceMan81 picture IceMan81  路  3Comments

cricrazy picture cricrazy  路  4Comments

MariuzM picture MariuzM  路  5Comments

kiravi picture kiravi  路  8Comments

zzrcxb picture zzrcxb  路  8Comments