glWebKit
glWebKit copied to clipboard
Crashing in struct FontDataCacheKeyHash
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!
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
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;
}