glWebKit icon indicating copy to clipboard operation
glWebKit copied to clipboard

Crashing in struct FontDataCacheKeyHash

Open rafadsm opened this issue 6 years ago • 2 comments

I hope you do not mind, but I used your codes for personal use, I'm implementing EAWebkit in dx9, I've copied all of your webkit startup, but when I boot, the application freezes http://prntscr.com/kt8odn

Then it crash at the following location: http://prntscr.com/kt8iod

Here is my .cpp: https://pastebin.com/25yzZ8yE And my .h: https://pastebin.com/5TGiX1uE

Could you help me identify the problem? Thank you!

rafadsm avatar Sep 11 '18 18:09 rafadsm

Sorry for the delay, I just saw this. Can you post the code again?

If I had to guess, I think you might not be populating your font cache with font data. I had quite a few crashes related to this when I got started.

cheers,

Bob

bholcomb avatar Oct 11 '18 13:10 bholcomb

Looking at your callstack, you seem to missing the fonts that you need for your webpage. Fonts either need to be manually loaded using add_ttf_font() in glWebkitUtils.h/cpp or they can be loaded through css like this:

@font-face {
  font-family: 'Roboto';
  src: url('Roboto-Regular.ttf') format('truetype');
}
  
* {
  font-family: Roboto;
}

bholcomb avatar Dec 31 '18 17:12 bholcomb