Marcin Cieslak wrote on 2020/02/24 18:51:
On Mon, 24 Feb 2020, Marcin Cieslak wrote:

On Mon, 24 Feb 2020, Miroslav Lachman wrote:

   frame #13: 0x00000008039aa3ed libQt5WebKit.so.5`WebCore::CSSParser::parseSheet(this=0x00007fffffffa490, sheet=0x00000008155f5e40, string=0x00007fffffffb888, textPosition=0x00007fffffffb650, ruleSourceDataResult=0x0000000000000000, logErrors=false) at CSSParser.cpp:423:5

Looks like it has some trouble parsing font declarations in the HTML/CSS code you have been testing
on. This can be a webkit bug...

Would be good to have a minimal HTML/CSS testcase to reproduce this and this should
probably be reported upstream.

There is this report:

https://github.com/qtwebkit/qtwebkit/issues/933

It says it crashes if you have no fonts installed (no TTF).

Could this "fix" it?

Thank you for the tip, I will look at it.

The following fonts related packages are installed:

(root@testjail) ~/# pkg info | grep -i font
dejavu-2.37_1 Bitstream Vera Fonts clone with a wider range of characters
encodings-1.0.5,1              X.Org Encoding fonts
font-bh-ttf-1.0.3_4            X.Org Bigelow & Holmes TTF font
font-misc-ethiopic-1.0.3_4     X.Org miscellaneous Ethiopic font
font-misc-meltho-1.0.3_4       X.Org miscellaneous Meltho font
fontconfig-2.12.6,1 XML-based font configuration API for X Windows freetype2-2.10.1 Free and portable TrueType font rendering engine
libfontenc-1.1.4               The fontenc Library
mkfontscale-1.2.1              Creates an index of scalable font files for X
woff2-1.0.2_4 Library and converter tools for the WOFF 2.0 web font format
xorg-fonts-truetype-7.7_1      X.Org TrueType fonts



This is the code of the tested example - fetching from https://phantomjs.org/

(root@testjail) ~/# cat /tmp/phantom.2.js
var page = require('webpage').create();
page.onConsoleMessage = function(str) {
   console.log(str);
}
page.open('https://phantomjs.org/api/phantom/', function(status) {
   page.render('/tmp/beforeclick.png');
   console.log(page.url);

   var element = page.evaluate(function() {
return document.querySelector('img[src = "https://phantomjs.org/img/phantomjs-logo.png";]');
   });
   page.sendEvent('click', element.offsetLeft, element.offsetTop, 'left');

   window.setTimeout(function () {
      console.log(page.url);
      page.render('/tmp/afterclick.png');
      phantom.exit();
   }, 5000);
   console.log('element is ' + element);
});


Kind regards
Miroslav Lachman
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to