Mailing List Archive

N950 SEGFAULT - help?
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
Re: N950 SEGFAULT - help? [ In reply to ]
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@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
Re: N950 SEGFAULT - help? [ In reply to ]
apt-get install libqtwebkit4-dbg
or
apt-get install libqt4-webkit-dbg.

2011/10/7 Èâàéëî Äèìèòðîâ <freemangordon@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@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@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: N950 SEGFAULT - help? [ In reply to ]
> 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).
The libpvr libraries are binary blobs for the PowerVR GPU and have nothing
to do with QT.
No I dont know where you would get appropriate blobs that will not cause
the errors you are seeing.
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: N950 SEGFAULT - help? [ In reply to ]
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@gmail.com>

> apt-get install libqtwebkit4-dbg
> or
> apt-get install libqt4-webkit-dbg.
>
> 2011/10/7 Èâàéëî Äèìèòðîâ <freemangordon@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@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@maemo.org
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
> >
>
Re: N950 SEGFAULT - help? [ In reply to ]
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@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@gmail.com>
>
>> apt-get install libqtwebkit4-dbg
>> or
>> apt-get install libqt4-webkit-dbg.
>>
>> 2011/10/7 Èâàéëî Äèìèòðîâ <freemangordon@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@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@maemo.org
>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>> >
>> >
>>
>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
Re: N950 SEGFAULT - help? [ In reply to ]
On Thu, 6 Oct 2011 22:20:55 -0400, Felipe Crochik <felipe@crochik.com> wrote:
Non-text part: multipart/alternative
> 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?

If you do remote debugging... i.e. that device is running gdbserver
and the cross-gdb is running on host (PC in your case), the libraries
in device and 'sysroot' needs to be in sync. Otherwise the coredump is
pretty likely.

If you run gdb on device then you need to get the debug libraries on
device installed. That is not a trivial task to perform on N9/N950.

The -1134- part in sysroot name should indicate that it matches the
N9 software version 10.2011.34-1_PR_* which is the one current
N9 devices are flashed at the factory before shipping.

> Thanks in advance,
> Felipe

Tomi
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: N950 SEGFAULT - help? [ In reply to ]
On Fri, Oct 07, 2011 at 07:58:06AM -0400, Felipe Crochik wrote:
> That is the "next" problem. They are not available - maybe I need to add
> some extra repository?

Yes: ssh in as root, or use the terminal app and devel-su, and then

cd /etc/apt/sources.list.d/
echo 'deb http://harmattan-dev.nokia.com/ harmattan/sdk free non-free' > sdk.list
apt-get update
apt-get install libqtgui4-dbg libqtcore4-dbg

This lets you use gdb directly on the device with full debug symbols.

There are many -dbg packages, you can figure out which ones you want by
running dpkg -S /usr/lib/libqtwhatever for each library in your gdb
backtrace, and then adding the -dbg suffix.

This worked for me very well a few months ago with Beta 1 firmware.

I haven't upgraded my N950 to Beta 2 yet, and I haven't checked to see
if the harmattan/sdk repository contain the right -dbg versions for the
Qt version in Beta 1 or Beta 2 or (hopefully) both.

Good luck with your debugging!

Marius Gedminas
--
The day after tomorrow is the third day of the rest of your life.
Re: N950 SEGFAULT - help? [ In reply to ]
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@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@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@gmail.com>
>>
>>> apt-get install libqtwebkit4-dbg
>>> or
>>> apt-get install libqt4-webkit-dbg.
>>>
>>> 2011/10/7 Èâàéëî Äèìèòðîâ <freemangordon@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@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@maemo.org
>>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>> >
>>> >
>>>
>>
>>
>> _______________________________________________
>> maemo-developers mailing list
>> maemo-developers@maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>>
>
Re: N950 SEGFAULT - help? [ In reply to ]
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@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@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@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@gmail.com>

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

2011/10/7 Ивайло Димитров <freemangordon@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@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@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>



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







--------------------------------------------------------------------------------
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: N950 SEGFAULT - help? [ In reply to ]
2011/11/5 Felipe Crochik <felipe@crochik.com>

> 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@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@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@gmail.com>
>>>
>>>> apt-get install libqtwebkit4-dbg
>>>> or
>>>> apt-get install libqt4-webkit-dbg.
>>>>
>>>> 2011/10/7 Èâàéëî Äèìèòðîâ <freemangordon@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@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@maemo.org
>>>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>> >
>>>> >
>>>>
>>>
>>>
>>> _______________________________________________
>>> maemo-developers mailing list
>>> maemo-developers@maemo.org
>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>
>>>
>>
>
No I mean use a QGLWidget for your declarativeview like:

viewer->setViewport(new QGLWidget());
Re: N950 SEGFAULT - help? [ In reply to ]
Unfortunately It didn't do the trick.... I can't tell any difference
...still crashes with the QPainter::save()....

Please let me know if any of you have any more ideas... I will play a
little more tomorrow.

Felipe

2011/11/5 Kristóf Timur <timur@sch.bme.hu>

> 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 <felipe@crochik.com>
> *Sent:* Saturday, November 05, 2011 11:26 PM
> *To:* nicolaihess@web.de
> *Cc:* maemo-developers <maemo-developers@maemo.org>
> *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@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@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@gmail.com>
>>>
>>>> apt-get install libqtwebkit4-dbg
>>>> or
>>>> apt-get install libqt4-webkit-dbg.
>>>>
>>>> 2011/10/7 Ивайло Димитров <freemangordon@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@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@maemo.org
>>>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>> >
>>>> >
>>>>
>>>
>>>
>>> _______________________________________________
>>> maemo-developers mailing list
>>> maemo-developers@maemo.org
>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>
>>>
>>
>
> ------------------------------
> _______________________________________________
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
Re: N950 SEGFAULT - help? [ In reply to ]
2011/11/5 Felipe Crochik <felipe@crochik.com>

> Unfortunately It didn't do the trick.... I can't tell any difference
> ...still crashes with the QPainter::save()....
>
> Please let me know if any of you have any more ideas... I will play a
> little more tomorrow.
>
> Felipe
>
>
> 2011/11/5 Kristóf Timur <timur@sch.bme.hu>
>
>> 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 <felipe@crochik.com>
>> *Sent:* Saturday, November 05, 2011 11:26 PM
>> *To:* nicolaihess@web.de
>> *Cc:* maemo-developers <maemo-developers@maemo.org>
>> *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@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@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@gmail.com>
>>>>
>>>>> apt-get install libqtwebkit4-dbg
>>>>> or
>>>>> apt-get install libqt4-webkit-dbg.
>>>>>
>>>>> 2011/10/7 Ивайло Димитров <freemangordon@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@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@maemo.org
>>>>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>>> >
>>>>> >
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> maemo-developers mailing list
>>>> maemo-developers@maemo.org
>>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>>
>>>>
>>>
>>
>> ------------------------------
>> _______________________________________________
>> maemo-developers mailing list
>> maemo-developers@maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>>
>

Can you give a link to your source.

nicolai
Re: N950 SEGFAULT - help? [ In reply to ]
Hi,

On 11/06/2011 01:03 AM, ext Nicolai Hess wrote:
> 2011/11/5 Felipe Crochik<felipe@crochik.com>
>
>> Unfortunately It didn't do the trick.... I can't tell any difference
>> ...still crashes with the QPainter::save()....
>>
>> Please let me know if any of you have any more ideas... I will play a
>> little more tomorrow.

Note that in general GL context should be dropped in applications
when they aren't visible. Main exception for this rule are plain GL
games because they cannot do this easily and user isn't typically
running many such games at the same time, like could be the case
with normal apps.

This is because GL contexts are severely limited resource and after
system runs out of them, any new processes just abort/crash on startup
because GL init fails.

Dropping GL context on background should happen automatically for
most MeegoTouch and QML applications. If you're directly using GL
operations in such applications without taking this account, and
e.g. trying to do GL drawing in the background, funny things may
happen.


- Eero

>>
>> Felipe
>>
>>
>> 2011/11/5 Kristóf Timur<timur@sch.bme.hu>
>>
>>> 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<felipe@crochik.com>
>>> *Sent:* Saturday, November 05, 2011 11:26 PM
>>> *To:* nicolaihess@web.de
>>> *Cc:* maemo-developers<maemo-developers@maemo.org>
>>> *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@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@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@gmail.com>
>>>>>
>>>>>> apt-get install libqtwebkit4-dbg
>>>>>> or
>>>>>> apt-get install libqt4-webkit-dbg.
>>>>>>
>>>>>> 2011/10/7 Ивайло Димитров<freemangordon@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@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@maemo.org
>>>>>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> maemo-developers mailing list
>>>>> maemo-developers@maemo.org
>>>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>>>
>>>>>
>>>>
>>>
>>> ------------------------------
>>> _______________________________________________
>>> maemo-developers mailing list
>>> maemo-developers@maemo.org
>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>
>>>
>>
>
> Can you give a link to your source.
>
> nicolai
>
>
>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: N950 SEGFAULT - help? [ In reply to ]
I have created a new project from scratch and modified the bare minimum I
could to make sure I didn't introduce a bug.

This project uses the original source code for the declarativewebview from
Qt4.7 (I did not see any difference when compared to 4.8). The only change
is that it offers a different user agent so google will return the Android
version.

I can reproduce the crash by:
1. login to a gmail account
2. go to inbox
3. switch to the task manager
4. switch back to the application
5. click back to menu and select another folder (it seems that is related
to triggering a reload of the page but the exception seems to be related to
QPaint)

Also, it crashes almost every time I switch to the task manager while
loading something.

The source and a deb file can be found at
http://www.crochik.com/gapp/webviewcrash.zip

Any help greatly appreciated since the application is pretty useless you
can't leave it running.

Thanks,
Felipe


On Sat, Nov 5, 2011 at 7:03 PM, Nicolai Hess <nicolaihess@web.de> wrote:

>
>
> 2011/11/5 Felipe Crochik <felipe@crochik.com>
>
>> Unfortunately It didn't do the trick.... I can't tell any difference
>> ...still crashes with the QPainter::save()....
>>
>> Please let me know if any of you have any more ideas... I will play a
>> little more tomorrow.
>>
>> Felipe
>>
>>
>> 2011/11/5 Kristóf Timur <timur@sch.bme.hu>
>>
>>> 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 <felipe@crochik.com>
>>> *Sent:* Saturday, November 05, 2011 11:26 PM
>>> *To:* nicolaihess@web.de
>>> *Cc:* maemo-developers <maemo-developers@maemo.org>
>>> *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@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@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@gmail.com>
>>>>>
>>>>>> apt-get install libqtwebkit4-dbg
>>>>>> or
>>>>>> apt-get install libqt4-webkit-dbg.
>>>>>>
>>>>>> 2011/10/7 Ивайло Димитров <freemangordon@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@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@maemo.org
>>>>>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>>>> >
>>>>>> >
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> maemo-developers mailing list
>>>>> maemo-developers@maemo.org
>>>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>>>
>>>>>
>>>>
>>>
>>> ------------------------------
>>> _______________________________________________
>>> maemo-developers mailing list
>>> maemo-developers@maemo.org
>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>
>>>
>>
>
> Can you give a link to your source.
>
> nicolai
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>