PDA

View Full Version : QGraphicsView crash... how to debug ?



pl01
23rd February 2011, 15:08
Hi,

I use the QGraphicsView in my application... and something it crash but I have no idea of the reason.

I only have a stack trace, so if someone has an idea to help me to debug this kind of bug ! If the bug come from my code !!

Any suggestion is welcome

Thx



KernelBase.dll!75f9b727()
[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
KernelBase.dll!75f9b727()
msvcr90d.dll!free(void * pUserData=0x0042c3a8) Line 49 + 0xb bytes C++
08520af8()
> pureStudio.exe!pureStudio::pgEditor::QNodesView::m ouseMoveEvent(QMouseEvent * e=0x0042cf48) Line 131 C++
QtGuid4.dll!QWidget::event(QEvent * event=0x0042cf48) Line 8186 C++
QtGuid4.dll!QFrame::event(QEvent * e=0x0042cf48) Line 557 + 0xc bytes C++
QtGuid4.dll!QAbstractScrollArea::viewportEvent(QEv ent * e=0x0042cf48) Line 1043 + 0xc bytes C++
QtGuid4.dll!QGraphicsView::viewportEvent(QEvent * event=0x0042cf48) Line 2865 C++
QtGuid4.dll!QAbstractScrollAreaPrivate::viewportEv ent(QEvent * event=0x0042cf48) Line 100 + 0x28 bytes C++
QtGuid4.dll!QAbstractScrollAreaFilter::eventFilter (QObject * o=0x00727370, QEvent * e=0x0042cf48) Line 116 + 0x29 bytes C++
QtCored4.dll!QCoreApplicationPrivate::sendThroughO bjectEventFilters(QObject * receiver=0x00727370, QEvent * event=0x0042cf48) Line 847 + 0x15 bytes C++
QtGuid4.dll!QApplicationPrivate::notify_helper(QOb ject * receiver=0x00727370, QEvent * e=0x0042cf48) Line 4441 + 0x11 bytes C++
QtGuid4.dll!QApplication::notify(QObject * receiver=0x00727370, QEvent * e=0x0042cf48) Line 4006 + 0x2f bytes C++
QtCored4.dll!QCoreApplication::notifyInternal(QObj ect * receiver=0x00727370, QEvent * event=0x0042cf48) Line 732 + 0x15 bytes C++
QtCored4.dll!QCoreApplication::sendSpontaneousEven t(QObject * receiver=0x00727370, QEvent * event=0x0042cf48) Line 218 + 0x38 bytes C++
QtGuid4.dll!QApplicationPrivate::sendMouseEvent(QW idget * receiver=0x00727370, QMouseEvent * event=0x0042cf48, QWidget * alienWidget=0x00727370, QWidget * nativeWidget=0x006f5920, QWidget * * buttonDown=0x65d27b8c, QPointer<QWidget> & lastMouseReceiver={...}, bool spontaneous=true) Line 3103 + 0xe bytes C++
QtGuid4.dll!QETWidget::translateMouseEvent(const tagMSG & msg={...}) Line 3321 + 0x2a bytes C++
QtGuid4.dll!QtWndProc(HWND__ * hwnd=0x00010eea, unsigned int message=512, unsigned int wParam=1, long lParam=10879919) Line 1659 + 0xc bytes C++
user32.dll!76b36238()
user32.dll!76b368ea()
user32.dll!76b36899()
user32.dll!76b36941()
user32.dll!76b37d31()
user32.dll!76b37dfa()
QtCored4.dll!QEventDispatcherWin32::processEvents( QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 807 C++
QtGuid4.dll!QGuiEventDispatcherWin32::processEvent s(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 1170 + 0x15 bytes C++
QtCored4.dll!QEventLoop::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 150 C++
QtCored4.dll!QEventLoop::exec(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 201 + 0x2d bytes C++
QtCored4.dll!QCoreApplication::exec() Line 1009 + 0x15 bytes C++
QtGuid4.dll!QApplication::exec() Line 3720 C++
pureStudio.exe!main(int argc=3, char * * argv=0x002a7358) Line 72 + 0x6 bytes C++
pureStudio.exe!WinMain(HINSTANCE__ * instance=0x00b80000, HINSTANCE__ * prevInstance=0x00000000, char * __formal=0x007b8291, int cmdShow=1) Line 131 + 0x12 bytes C++
pureStudio.exe!__tmainCRTStartup() Line 574 + 0x35 bytes C
pureStudio.exe!WinMainCRTStartup() Line 399 C
kernel32.dll!76333677()
ntdll.dll!776f9d72()
ntdll.dll!776f9d45()

high_flyer
23rd February 2011, 15:15
Run the application in a debugger, you will then be able to see exactly on which line it is crashing.

pl01
23rd February 2011, 16:17
It is in the debugger !!! :-P The problem is that it show me some QT code I don't understand... and not sure why and when it do this crash !

high_flyer
24th February 2011, 08:51
The post the code where it crashes with few lines before the crashing line it self.