[MeeGo-touch-dev] trying to delete an MApplicationPage

Daniel d'Andrada daniel.dandrada at nokia.com
Mon Sep 27 05:36:35 PDT 2010


Hi,

Didn't really get your second paragraph.
In any case, calling "delete myPage" should just work unless you're 
calling it from within a slot activated by a signal emission from myPage 
itself.

Thus please file a bug with a small code snippet showing what you're doing.

Thanks,
-Daniel

On 09/24/2010 06:30 PM, Aggarwal Amit.5 (Nokia-MS/Bangalore) wrote:
> Hello,
>
> I am facing one problem when I am trying to delete the MApplicationPage I am getting crash with the following back-trace. Its calling event function of QGraphicsWidget on the same pointer 0x2a254648 which  DestinationSettingsPageInterface (this=0x2a254648,) have.
>
> This DestinationSettingsPageInterface  is dervied from MApplicationPage . I tried by passing parent to this DestinationSettingsPageInterface which is MWidget and when I am deleting it , desturctor of this MApplicationPage is not getting called.
>
> If anyone know , Please help me for the same.
>
> Thanks
> Amit
>
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000100 in ?? ()
> (gdb) bt
> #0  0x00000100 in ?? ()
> #1  0x40d20ff4 in QGraphicsWidget::event (this=0x2a254648, event=0xbe95fe28)
>      at graphicsview/qgraphicswidget.cpp:1329
> #2  0x40389ff0 in MWidget::event (this=0x2a254648, event=0xbe95fe28)
>      at /home/bifh2/harmattan-arm-unreleased.cs2009q1/work/libmeegotouch-0.20.43/src/corelib/widgets/core/mwidget.cpp:434
> #3  0x403b7248 in MSceneWindow::event (this=0x2a254648, event=0xbe95fe28)
>      at /home/bifh2/harmattan-arm-unreleased.cs2009q1/work/libmeegotouch-0.20.43/src/corelib/widgets/mscenewindow.cpp:345
> #4  0x40709ba0 in QApplicationPrivate::notify_helper (this=0x2a08f1e8,
>      receiver=0x2a254648, e=0xbe95fe28) at kernel/qapplication.cpp:4399
> #5  0x4071174c in QApplication::notify (this=0x2a08e838, receiver=0x2a254648,
>      e=0xbe95fe28) at kernel/qapplication.cpp:4280
> #6  0x4107ee78 in QCoreApplication::notifyInternal (this=0x2a08e838,
>      receiver=<value optimized out>, event=<value optimized out>)
>      at kernel/qcoreapplication.cpp:732
> #7  0x40719300 in QCoreApplication::sendEvent (receiver=0xbe95fe28,
>      event=0x40487508)
>      at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
> #8  0x40ce90a0 in QGraphicsScenePrivate::sendEvent (
>      this=<value optimized out>, item=0x2a254650, event=0xbe95fe28)
>      at graphicsview/qgraphicsscene.cpp:1207
> #9  0x40ce9118 in QGraphicsScene::sendEvent (this=0x2a0d3968, item=0x2a254650,
> ---Type<return>  to continue, or q<return>  to quit---
>      event=0xbe95fe28) at graphicsview/qgraphicsscene.cpp:5675
> #10 0x4030cbf4 in MSceneManagerPrivate::produceFullyOffDisplayEvents (
>      this=0x2a0d38f8, item=0x2a254650)
>      at /home/bifh2/harmattan-arm-unreleased.cs2009q1/work/libmeegotouch-0.20.43/src/corelib/scene/mscenemanager.cpp:915
> #11 0x4030e308 in MSceneManagerPrivate::onSceneWindowEnteringDisappearedState (
>      this=0x2a0d38f8, sceneWindow=0x2a254648)
>      at /home/bifh2/harmattan-arm-unreleased.cs2009q1/work/libmeegotouch-0.20.43/src/corelib/scene/mscenemanager.cpp:1704
> #12 0x4030f330 in MSceneManagerPrivate::setSceneWindowState (this=0x2a0d38f8,
>      sceneWindow=0x2a254648, newState=MSceneWindow::Disappeared)
>      at /home/bifh2/harmattan-arm-unreleased.cs2009q1/work/libmeegotouch-0.20.43/src/corelib/scene/mscenemanager.cpp:1589
> #13 0x4030f398 in MSceneManagerPrivate::removeSceneWindow (this=0x2a3602e0,
>      sceneWindow=0xbe95fe28)
>      at /home/bifh2/harmattan-arm-unreleased.cs2009q1/work/libmeegotouch-0.20.43/src/corelib/scene/mscenemanager.cpp:586
> #14 0x403b7b78 in ~MSceneWindow (this=0x2a254648,
>      __in_chrg=<value optimized out>)
>      at /home/bifh2/harmattan-arm-unreleased.cs2009q1/work/libmeegotouch-0.20.43/src/corelib/widgets/mscenewindow.cpp:118
> #15 0x403928e4 in ~MApplicationPage (this=0x2a254648,
>      __in_chrg=<value optimized out>)
> ---Type<return>  to continue, or q<return>  to quit---
>      at /home/bifh2/harmattan-arm-unreleased.cs2009q1/work/libmeegotouch-0.20.43/src/corelib/widgets/mapplicationpage.cpp:88
> #16 0x4011f634 in ~DestinationSettingsPageInterface (this=0x2a254648,
>      __in_chrg=<value optimized out>) at ./destinationsettingspageinterface.h:12
> #17 ~DestinationSettingsDefaultPage (this=0x2a254648,
>      __in_chrg=<value optimized out>) at DestinationSettingsDefaultPage.cpp:115
> #18 0x4012e634 in ~MSyncActivityLayout (this=0x2a243fa0,
>      __in_chrg=<value optimized out>) at MSyncActivityLayout.cpp:103
> #19 0x40131c34 in MSyncWidget::slotDeleteMSyncActivityLayout (this=0x2a253298,
>      aProfileId=...) at MSyncWidget.cpp:109
> #20 0x4013b984 in MSyncWidget::qt_metacall (this=0x2a253298,
> ---Type<return>  to continue, or q<return>  to quit---q


More information about the MeeGo-touch-dev mailing list