Simple QtWebKit Application Crashes w/ Segmentation Fault



  • DISCLAIMER: I'm an absolute newb, and I am happy to RTFM if this is an obvious question, just point me where. :)

    I've got Qt5 cross compiled for the Raspberry Pi. Simple QML apps (display "Hello World!" in the middle of the screen) work just fine (I'm using the eglfs platform plugin). WebKit crashes immediately, though.

    Code:

    @
    #include <QApplication>
    #include <QWebView>

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);
    QWebView v;

    v.setUrl(QUrl("http://www.bryanporter.com"));
    v.show();
    
    return app.exec();
    

    }
    @

    Works just long enough to start rendering the background of my web page, then crashes with a segmentation fault. Wiring up a remote debugger shows that the signal being received is SIGILL (illegal instruction).

    I'm not sure next steps to debug... any pointers are much appreciated!

    Bryan



  • A bit more info - running the app on the Pi under GDB, I'm receiving the following detail:

    @
    Program received signal SIGILL, Illegal instruction.
    0xade645e0 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
    @



  • I am having exactly the same issue with qt 5.4 build.
    I made a very simple testcase like yours and getting the same result.

    did you find a way to fix that one ?



  • I found at that SIGILL was a normal thing as libcrypto will test cpus. hitting 'c' in dgb just continues and this doesnt crash at runtime.

    Although for me in current state of Qt5.4, I am experiencing a crash with whatever app uses the QWebView. it happens with some very basic samples and the qtwebkit browser sample as well.



  • My qtwebkit-example 'browser' will crash with a 'Segmentation Fault' error. I too am using Qt5.4.0.

    I am using:
    -Qt5.4.0(eglfs)-qtwebkits-example-example
    -Built in an OpenEmbedded environment
    -Cross-compiled with arm-gnueabihf 4.7 (linaro)
    -TI am335x ARM processor
    -Using TI SDK 5_01_01_01 for graphic drivers and library support.

    Are you passing any extra export variables or arguments when running the browser example? Did you ever find a solution to your problem?



  • My qtwebkit-example 'browser' will crash with a 'Segmentation Fault' error. I too am using Qt5.4.0.

    I am using:
    -Qt5.4.0(eglfs)-qtwebkits-example-example
    -Built in an OpenEmbedded environment
    -Cross-compiled with arm-gnueabihf 4.7 (linaro)
    -TI am335x ARM processor
    -Using TI SDK 5_01_01_01 for graphic drivers and library support.

    Are you passing any extra export variables or arguments when running the browser example? Did you ever find a solution to your problem?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.