×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    15

    Unhappy Qt WebKit stability

    Hi,

    I try to build a simple application for Maemo based on Qt, which uses the webkit component. Webkit seems to be very unstable on the device itself, it crashes whenever I load certain pages and sometimes while scrolling. The same application does not crash on my Desktop or in scratchbox. Is this a known issue? Or may there be something wrong with my setup?

    I uploaded the Qt Creator application to: http://www.peterbouda.de/downloads/webkittest.tar.gz

    It's a simple browser, you can enter URLs, go back and forward, and reload. If I enter for example "www.sueddeutsche.de" the browser will crash, at least when I start scrolling the page up and down. I compiled with 4.5.3 and the 4.6 test packages. The behaviour seems better with 4.6, but there I don't have scrollbars, so I can't scroll. Any hints?

    Peter

  2. #2
    Registered User
    Join Date
    Nov 2009
    Posts
    15

    Re: Qt WebKit stability

    Btw, by device I mean the N900. The application runs well on the N810, too.

    Peter

  3. #3
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Qt WebKit stability

    If it crashes then you have coredumps in /home/user/MyDocs/core-dumps/ or in /media/mmc1/core-dumps/ (if it disabled you can enable it with ulimit -c unlimited as root).
    Then reproduce the crash(es), copy coredump(s) into scratchbox and open it with gdb. bt will give you a backtrace, which identifies the reason for crash.

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Qt WebKit stability

    I've tried your application with recent software and was not able to reproduce the crash. Waiting for your backtraces.

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    15

    Re: Qt WebKit stability

    Today I found some time to investigate further on that; I am new to C++ programming on Maemo, this might be the reason for the following problems I had debugging...

    I could not open the coredump in scratchbox, gdb complains and crashes with a lot of messages like this:

    warning: .dynamic section for "/usr/lib/libQtWebKit.so.4" is not at the expected address (wrong library or version mismatch?)

    But: I was able to debug on the device, as described in the "Qt for Maemo Developer's Guide". I could not install the debug libraries of Qt, so the output of gdb is quite unreadable:

    Program terminated with signal 11, Segmentation fault.
    #0 0x401c4b80 in ?? () from /usr/lib/libQtGui.so.4
    0x401c4b80: ldr r3, [r3, #4]
    (gdb) bt
    #0 0x401c4b80 in ?? () from /usr/lib/libQtGui.so.4
    #1 0x406cae04 in QHildonStyle::sizeFromContents(QStyle::ContentsType, QStyleOption const*, QSize const&, QWidget const*) const () from /usr/lib/libQtGui.so.4
    #2 0xbedf85d0 in ?? ()
    #3 0xbedf85d0 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)

    When I try to install the debug libraries as described in the Guide I get an error message:

    /home/user # apt-get install libqt4-phonon-dbg
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libqt4-phonon-dbg: Depends: libqt4-phonon (= 4.5.3~git20090723-0maemo4.1) but 4.5.3~git20090723-0maemo4.2 is to be installed
    E: Broken packages


    Does that tell you something? How can I get more information about the error?

    Peter

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Qt WebKit stability

    Quote Originally Posted by p.bouda View Post
    I could not open the coredump in scratchbox, gdb complains and crashes with a lot of messages like this:
    You do it with gdb -c coredump /usr/bin/your_binary
    I heard about some complains about gdb, but for me it was working fine.

    Quote Originally Posted by p.bouda View Post
    But: I was able to debug on the device, as described in the "Qt for Maemo Developer's Guide".
    Space on the device is quite limited. You need to remove some applications to free room for the Qt debug symbols.

    Quote Originally Posted by p.bouda View Post
    Program terminated with signal 11, Segmentation fault.
    #0 0x401c4b80 in ?? () from /usr/lib/libQtGui.so.4
    So it crashes in QtGui.

    Quote Originally Posted by p.bouda View Post
    When I try to install the debug libraries as described in the Guide I get an error message:

    /home/user # apt-get install libqt4-phonon-dbg
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libqt4-phonon-dbg: Depends: libqt4-phonon (= 4.5.3~git20090723-0maemo4.1) but 4.5.3~git20090723-0maemo4.2 is to be installed
    E: Broken packages
    Peter
    There is a mismatch between available version of binary package and debug package.
    Versions look odd, because official repository doesn't contain maemo4.1 and maemo4.2:
    http://repository.maemo.org/pool/fre...ree/q/qt4-x11/
    There is only maemo4. Which is the version I'm using.

Similar Threads

  1. Qt for Symbian development resources
    By liuxg in forum [Archived] Qt General ( Qt技术)
    Replies: 55
    Last Post: 2011-01-26, 04:06
  2. Senior QT Client Developer (Dublin, Ireland)
    By marynyc in forum News and Announcements
    Replies: 0
    Last Post: 2009-06-02, 18:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •