kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #28920
Re: OpenGL fallback and video compat test
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Fri, 24 Mar 2017 09:23:00 +0100
-
Authentication-results:
spf=pass (sender IP is 188.184.36.46) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
In-reply-to:
<20170324001131.lv4tf2m4ydzfzjrg@turnip.local>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
On 03/24/2017 01:11 AM, Chris Pavlina wrote:
> Hi,
>
> I've been thinking about my intent to make KiCad fall back cleanly to
> Cairo when OpenGL isn't available. From what I can see, there are
> certain situations where trying to use OpenGL causes crashes that appear
> very hard to prevent.
>
> I really want to do something about this - they're hard to prevent, but
> I still don't think it's acceptable to crash out on the user. What if we
> compiled a small test binary that just tried to load an OpenGL canvas?
> We should be able to test for functionality pretty easily by starting
> that executable, and any crash would be confined to its own process. Is
> anyone opposed to this? I know it's not the cleanest solution, but I
> can't think of much better.
Hi Chris,
There are tests that gracefully switch to Cairo when OpenGL backend
fails, but they work well only if application reaches the point when it
can make valid OpenGL calls. I have noticed there are failures that
crash the application before there is a chance to react [1]. Running the
test as a separate process should help here.
Running the test in the KiCad launcher will not fully solve the problem,
as we still have standalone apps that need the test as well.
I like the idea of crash sentinel. At least it prevents the situations
when KiCad cannot be run after a kernel/video driver update, because it
loads OpenGL by default.
Regards,
Orson
1. https://bugs.launchpad.net/bugs/1675498
Attachment:
signature.asc
Description: OpenPGP digital signature
References