Hi all,
I am trying to use the WebKit library to open a page from a Keyence camera's web server, but the program crashes with a segmentation fault. To debug the issue, I created a simple program with a QMainWindow and a QWebView as the central widget, intended to open a single page: "http://www.google.com.br".
When I run the program, it does display the page, but there is an issue: any text input only shows the first letter of what is typed. If I click "Search," the page updates to display the results, but when I try to input new text for another search, the same problem occurs—only the first letter is displayed. Eventually, the program crashes with the following error:
ASSERT failure in int QFontMetrics::width(const QString&, int, int) const
"stringToCMap should not fail twice", file D:/cs5/src/gui/text/qfontmetrics.cpp, line 314
terminate called after throwing an instance of 'std::system_error'
what(): Operation not permitted
I am using CopperSpice 1.9.2 PreBuild binaries from you guys and using MinGW64 13.1.0 from CLion.
Thks in advance.
Problem using CsWebKit...segment fault
-
- Posts: 11
- Joined: Sun Jan 10 2021 11:24 pm
Re: Problem using CsWebKit...segment fault
We can not guarantee this is the issue you are experiencing, however different builds of MinGW may not be binary compatible and there is almost no way to test for ABI. There are two choices.I am using CopperSpice 1.9.2 PreBuild binaries from you guys and using MinGW64 13.1.0 from CLion.
(1) Build your application with our pre-built MinGW distribution.
(2) Build CS with the same version of MinGW as you are using for your application.
You can find our MinGW binary files here: https://github.com/copperspice/cs_mingw_w64
Barbara