Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2020 18:32:22 +0100
From:      Michael Osipov <1983-01-06@gmx.net>
To:        Marcin Cieslak <saper@saper.info>, Miroslav Lachman <000.fbsd@quip.cz>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Cannot build qt5-webkit with debug
Message-ID:  <ba56f8fd-175e-6868-2d5d-3bdd1aeb8a80@gmx.net>
In-Reply-To: <nycvar.OFS.7.76.44444.807.2002261651040.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> <12ae3631-1973-5a42-8aa2-2fb8b9b93f8b@quip.cz> <15dbf933-b04b-788f-5cab-0dc5ffdcc532@gmx.net> <1b7192f7-5ebe-8d28-6bd9-92c8a2097acf@quip.cz> <abf105f1-9407-4a03-f493-dbe154a15526@gmx.net> <79231bf9-6e7c-b5e6-9c8e-29edb921f18c@quip.cz> <cdfa694f-1adb-0db1-b6ea-719be5deca04@gmx.net> <4bc1f8a7-4a76-62ea-2026-0019333edc59@quip.cz> <nycvar.OFS.7.76.44444.807.2002261248290.61731@z.fncre.vasb> <823738b5-74a9-8834-3097-d4faf7ee046f@quip.cz> <nycvar.OFS.7.76.44444.807.2002261651040.61731@z.fncre.vasb>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 2020-02-26 um 17:52 schrieb Marcin Cieslak:
> On Wed, 26 Feb 2020, Miroslav Lachman wrote:
>
>> Marcin Cieslak wrote on 2020/02/26 13:50:
>>> On Wed, 26 Feb 2020, Miroslav Lachman wrote:
>>>
>>>> And what is not working now with the line fontFamilyList->append...
>>>> removed()?
>>>
>>>> Should I report it upstream or is it FreeBSD specific problem?
>>>
>>> I think it is a bit too early to tell. I think it is not really
>>> FreeBSD-specific
>>> but there might be some quirks.
>>>
>>> I am rebuilding qt5-webkit now with debug symbols using your phantomfs
>>> port (thanks!) and I'll poke around a bit with debugger.
>>
>> Just the small update.
>> phantomjs with modified version of qt5-webkit does not render any text
>> / fonts on the web page screenshots taken by
>> page.render('/tmp/page.png');
>>
>> So... it builds, it does not crashes but rendered pages are "empty"
>> (pictures, background colors etc are rendered OK, but no fonts)
>
> This is expected. This line is responsible for finding fonts
> used to render the webpage. Michael just wanted to confirm
> this line is indeed causing the problem; we now have to figure
> out what exactly is going wrong here.

Miroslav,

this is exactly what I expected. So did Marcin.
This is *not* a bugfix, but simply a proof for source the segfault.

Let's now remove the comment and try to narrow down the issue. Since the
code passes this assert:

> ASSERT(m_valueList->size() =3D=3D 1);

and since

> RenderTheme::defaultTheme()->systemFont(systemFontID, fontDescription);

seems to work I assume that

> CSSValuePool::singleton().createFontFamilyValue()

is the problem.

Someone needs now to debug and check the systemFontID/fontDescription
value and report to upstream.

Since your simple webpage does not use any CSS, WebKit has to use some
internal basic CSS with font information and that one causes to fail for
some reason.

Michael



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ba56f8fd-175e-6868-2d5d-3bdd1aeb8a80>