Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2020 19:10:56 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Marcin Cieslak <saper@saper.info>
Cc:        Michael Osipov <1983-01-06@gmx.net>, freebsd-ports@freebsd.org
Subject:   Re: Cannot build qt5-webkit with debug
Message-ID:  <12ae3631-1973-5a42-8aa2-2fb8b9b93f8b@quip.cz>
In-Reply-To: <nycvar.OFS.7.76.44444.807.2002241750480.61731@z.fncre.vasb>
References:  <f0a4e30f-8856-b4e6-dc9b-ad87ecf1a17a@quip.cz> <86c4b386-9298-fa0a-ccc1-ec6b1e65b788@quip.cz> <81e73790-6b69-8038-b087-9ff75c1cf9b5@gmx.net> <1a72bb7d-8ded-afe4-6fa7-8c301d73839e@quip.cz> <c5d41be9-f2a7-7451-b2e5-370587209571@gmx.net> <23335a73-5853-eab2-5684-b40f430ec8c7@quip.cz> <nycvar.OFS.7.76.44444.807.2002241744450.61731@z.fncre.vasb> <nycvar.OFS.7.76.44444.807.2002241750480.61731@z.fncre.vasb>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12ae3631-1973-5a42-8aa2-2fb8b9b93f8b>