Results 1 to 4 of 4

Thread: QGraphicsView crash... how to debug ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    95
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question QGraphicsView crash... how to debug ?

    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

    Qt Code:
    1. KernelBase.dll!75f9b727()
    2. [Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
    3. KernelBase.dll!75f9b727()
    4. msvcr90d.dll!free(void * pUserData=0x0042c3a8) Line 49 + 0xb bytes C++
    5. 08520af8()
    6. > pureStudio.exe!pureStudio::pgEditor::QNodesView::mouseMoveEvent(QMouseEvent * e=0x0042cf48) Line 131 C++
    7. QtGuid4.dll!QWidget::event(QEvent * event=0x0042cf48) Line 8186 C++
    8. QtGuid4.dll!QFrame::event(QEvent * e=0x0042cf48) Line 557 + 0xc bytes C++
    9. QtGuid4.dll!QAbstractScrollArea::viewportEvent(QEvent * e=0x0042cf48) Line 1043 + 0xc bytes C++
    10. QtGuid4.dll!QGraphicsView::viewportEvent(QEvent * event=0x0042cf48) Line 2865 C++
    11. QtGuid4.dll!QAbstractScrollAreaPrivate::viewportEvent(QEvent * event=0x0042cf48) Line 100 + 0x28 bytes C++
    12. QtGuid4.dll!QAbstractScrollAreaFilter::eventFilter(QObject * o=0x00727370, QEvent * e=0x0042cf48) Line 116 + 0x29 bytes C++
    13. QtCored4.dll!QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject * receiver=0x00727370, QEvent * event=0x0042cf48) Line 847 + 0x15 bytes C++
    14. QtGuid4.dll!QApplicationPrivate::notify_helper(QObject * receiver=0x00727370, QEvent * e=0x0042cf48) Line 4441 + 0x11 bytes C++
    15. QtGuid4.dll!QApplication::notify(QObject * receiver=0x00727370, QEvent * e=0x0042cf48) Line 4006 + 0x2f bytes C++
    16. QtCored4.dll!QCoreApplication::notifyInternal(QObject * receiver=0x00727370, QEvent * event=0x0042cf48) Line 732 + 0x15 bytes C++
    17. QtCored4.dll!QCoreApplication::sendSpontaneousEvent(QObject * receiver=0x00727370, QEvent * event=0x0042cf48) Line 218 + 0x38 bytes C++
    18. QtGuid4.dll!QApplicationPrivate::sendMouseEvent(QWidget * 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++
    19. QtGuid4.dll!QETWidget::translateMouseEvent(const tagMSG & msg={...}) Line 3321 + 0x2a bytes C++
    20. QtGuid4.dll!QtWndProc(HWND__ * hwnd=0x00010eea, unsigned int message=512, unsigned int wParam=1, long lParam=10879919) Line 1659 + 0xc bytes C++
    21. user32.dll!76b36238()
    22. user32.dll!76b368ea()
    23. user32.dll!76b36899()
    24. user32.dll!76b36941()
    25. user32.dll!76b37d31()
    26. user32.dll!76b37dfa()
    27. QtCored4.dll!QEventDispatcherWin32::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 807 C++
    28. QtGuid4.dll!QGuiEventDispatcherWin32::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 1170 + 0x15 bytes C++
    29. QtCored4.dll!QEventLoop::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 150 C++
    30. QtCored4.dll!QEventLoop::exec(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 201 + 0x2d bytes C++
    31. QtCored4.dll!QCoreApplication::exec() Line 1009 + 0x15 bytes C++
    32. QtGuid4.dll!QApplication::exec() Line 3720 C++
    33. pureStudio.exe!main(int argc=3, char * * argv=0x002a7358) Line 72 + 0x6 bytes C++
    34. pureStudio.exe!WinMain(HINSTANCE__ * instance=0x00b80000, HINSTANCE__ * prevInstance=0x00000000, char * __formal=0x007b8291, int cmdShow=1) Line 131 + 0x12 bytes C++
    35. pureStudio.exe!__tmainCRTStartup() Line 574 + 0x35 bytes C
    36. pureStudio.exe!WinMainCRTStartup() Line 399 C
    37. kernel32.dll!76333677()
    38. ntdll.dll!776f9d72()
    39. ntdll.dll!776f9d45()
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsView crash... how to debug ?

    Run the application in a debugger, you will then be able to see exactly on which line it is crashing.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Oct 2010
    Posts
    95
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QGraphicsView crash... how to debug ?

    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 !

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsView crash... how to debug ?

    The post the code where it crashes with few lines before the crashing line it self.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. How to debug a crash ?
    By pl01 in forum Newbie
    Replies: 2
    Last Post: 23rd February 2011, 08:54
  2. Replies: 4
    Last Post: 30th September 2010, 10:31
  3. Replies: 9
    Last Post: 31st May 2010, 14:56
  4. DEBUG macro not defined in debug build using vc++
    By piotr.dobrogost in forum Qt Programming
    Replies: 0
    Last Post: 21st July 2009, 13:07
  5. Replies: 11
    Last Post: 22nd March 2006, 19:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.