[maemo-developers] N950 SEGFAULT - help?

From: Kristóf Timur timur at sch.bme.hu
Date: Sun Nov 6 00:41:34 EET 2011
That’s not how it’s done.

1. In your .pro file, add:
QT += opengl

2. at the top of your cpp, add:
#include <QGLWidget>

3. when you initialize your QDeclarativeView:
QGLWidget glWidget;
QDeclarativeView view;
view.setViewport(&glWidget);

Cheers,
Timur

From: Felipe Crochik 
Sent: Saturday, November 05, 2011 11:26 PM
To: nicolaihess at web.de 
Cc: maemo-developers 
Subject: Re: N950 SEGFAULT - help?

Nicolai, 

I tried the application using (I assume that is what you meant):
QApplication::setGraphicsSystem("opengl");

and haven't been able to crash the application but it gets really slow and unresponsive. Also I get these error messages on my log:

Valid eglHandle received but not running with meego compatible graphicssystem.

Any ideas?

Thanks, 
Felipe




2011/10/7 Nicolai Hess <nicolaihess at web.de>

  Have you tried to use a QGLWidget for the qmlviewer ?
  This works for the QML Camera element which has the 
  same behavior, segfaults when application moved to background. 



  2011/10/7 Felipe Crochik <felipe at crochik.com>

    That is the "next" problem. They are not available - maybe I need to add some extra repository? sorry if I missed some obvious "development" required step.... It is hard to start over! 



    2011/10/7 Daniil Ivanov <daniil.ivanov at gmail.com>

      apt-get install libqtwebkit4-dbg
      or
      apt-get install libqt4-webkit-dbg.

      2011/10/7 Ивайло Димитров <freemangordon at abv.bg>:

      > Why not install Qt debug symbols on the device and run/attach to your
      > program there under gdb?
      >
      >
      >
      > -------- Оригинално писмо --------
      > От: Felipe Crochik
      > Относно: N950 SEGFAULT - help?
      > До: maemo-developers at maemo.org
      > Изпратено на: Петък, 2011, Октомври 7 05:20:55 EEST
      > I hit a wall with my application so I am looking for someone to help
      > everywhere I can.
      >
      > The short version: how can I get qt creator to debug my application on the
      > device. Right now I get CRC mismatch warnings for all libraries and I assume
      > this is what prevents me to see any trace information
      >
      > That is what I get when I start to debug:
      > ...
      > the debug information found in
      > "c:/qtsdk/madde/sysroots/harmattan-nokia-meego-arm-sysroot-1134-slim/usr/lib/libpvrPVR2D_DRI2WSEGL_r125.so"
      > does not match
      > "c:/qtsdk/madde/sysroots/harmattan-nokia-meego-arm-sysroot-1134-slim/usr/lib/libpvrPVR2D_DRI2WSEGL.so"
      > (CRC mismatch).
      >
      > the debug information found in
      > "c:/qtsdk/madde/sysroots/harmattan-nokia-meego-arm-sysroot-1134-slim/usr/lib/libpvr2d_r125.so"
      > does not match
      > "c:/qtsdk/madde/sysroots/harmattan-nokia-meego-arm-sysroot-1134-slim/usr/lib/libpvr2d.so"
      > (CRC mismatch).
      >
      > ...
      >
      > I assume I need to install "debug symbols/versions" for the qt libraries on
      > the device somehow. Am I right? How can I accomplish this?
      >
      > The long version:
      >
      > My applications uses qml\webview and everything works fine until I swipe out
      > of my application and then later come back to it. With one click or two I
      > get a segfault. This is all the information that I managed to get running
      > gdb on the device:
      >
      > (gdb) backtrace
      > #0  0x42068924 in QPainter::save() () from /usr/lib/libQtGui.so.4
      > #1  0x48ec294c in ?? () from /usr/lib/libQtWebKit.so.4
      > #2  0x48ec294c in ?? () from /usr/lib/libQtWebKit.so.4
      >
      > Program received signal SIGSEGV, Segmentation fault.
      >
      > Any suggestions?
      >
      > Thanks in advance,
      > Felipe
      >

      > _______________________________________________
      > maemo-developers mailing list
      > maemo-developers at maemo.org
      > https://lists.maemo.org/mailman/listinfo/maemo-developers
      >
      >



    _______________________________________________
    maemo-developers mailing list
    maemo-developers at maemo.org
    https://lists.maemo.org/mailman/listinfo/maemo-developers







--------------------------------------------------------------------------------
_______________________________________________
maemo-developers mailing list
maemo-developers at maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20111105/38950a9b/attachment.htm>
More information about the maemo-developers mailing list