Results 1 to 6 of 6

Thread: Bug in Qt or Qt Designer or my mistake?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    4
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Bug in Qt or Qt Designer or my mistake?

    Quote Originally Posted by jacek
    Try:
    Qt Code:
    1. void Form2::dodaj()
    2. {
    3. Form3 *forma3 = new Form3( 0, 0, Qt::WDestructiveClose );
    4. // ...
    5. }
    To copy to clipboard, switch view to plain text mode 

    i got:

    Program received signal SIGSEGV, Segmentation fault.
    0x02593023 in QGListIterator:perator++ () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    (gdb)
    Single stepping until exit from function _ZN14QGListIteratorppEv,
    which has no line number information.
    Couldn't get registers: No such process.
    (gdb)
    Single stepping until exit from function _ZN14QGListIteratorppEv,
    which has no line number information.
    Cannot fetch general-purpose registers for thread -1208314176: generic error
    (gdb) backtrace
    #0 0x02593023 in QGListIterator:perator++ () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    Error accessing memory address 0xbf8d2868: No such process.
    (gdb)


    hmm...
    btw. posted from diff. comp
    Last edited by [maTa]; 8th February 2006 at 23:02.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Bug in Qt or Qt Designer or my mistake?

    Quote Originally Posted by [maTa]
    i got:

    Program received signal SIGSEGV, Segmentation fault.
    0x02593023 in QGListIterator:perator++ () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    (gdb)
    Single stepping until exit from function _ZN14QGListIteratorppEv,
    which has no line number information.
    Couldn't get registers: No such process.
    Then try (make sure you have "debug" instead of "release" in CONFIG in your .pro file):
    Qt Code:
    1. (gdb) run
    2. ...
    3. Program received signal SIGSEGV, Segmentation fault.
    4. ...
    5. (gdb) bt
    6. <post this part>
    7. (gdb) quit
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jan 2006
    Posts
    4
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Bug in Qt or Qt Designer or my mistake?

    here you go:


    Program received signal SIGSEGV, Segmentation fault.
    0x02593023 in QGListIterator:perator++ ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    (gdb) bt
    #0 0x02593023 in QGListIterator:perator++ ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #1 0x02243761 in QApplication::sendPostedEvents ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #2 0x022e418f in QWidget::show () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #3 0x02446556 in QDialog::show () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #4 0x0805b651 in Form2::qt_invoke (this=0x9207000, _id=47, _o=0xbffa5aa8)
    at .moc/moc_form2.cpp:102
    #5 0x022a6d17 in QObject::activate_signal ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #6 0x022a7274 in QObject::activate_signal ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #7 0x0262312e in QButton::clicked () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #8 0x02346a03 in QButton::mouseReleaseEvent ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #9 0x022e5127 in QWidget::event () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #10 0x0224208d in QApplication::internalNotify ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #11 0x02242fef in QApplication::notify ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #12 0x021d9706 in QETWidget::translateMouseEvent ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #13 0x021d7eb3 in QApplication::x11ProcessEvent ()
    ---Type <return> to continue, or q <return> to quit---
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #14 0x021ebfc8 in QEventLoop:rocessEvents ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #15 0x0225a74b in QEventLoop::enterLoop ()
    from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #16 0x0225a656 in QEventLoop::exec () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #17 0x02241a59 in QApplication::exec () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #18 0x080507cb in main (argc=1, argv=0x79) at .ui/../form1.ui.h:41
    (gdb)

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Bug in Qt or Qt Designer or my mistake?

    Quote Originally Posted by [maTa]
    #2 0x022e418f in QWidget::show () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #3 0x02446556 in QDialog::show () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
    #4 0x0805b651 in Form2::qt_invoke (this=0x9207000, _id=47, _o=0xbffa5aa8)
    at .moc/moc_form2.cpp:102
    It looks like it crashes when you try to show Form3 in Form2::dodaj(). I just wonder why it doesn't crash on my system (I use Qt 3.3.5).

    Did you try to run "make clean && qmake && make"? Does it still crash?

    Does it crash with this code?
    Qt Code:
    1. void Form2::dodaj()
    2. {
    3. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. designer not showing menu items ...
    By wagmare in forum Installation and Deployment
    Replies: 0
    Last Post: 24th February 2009, 10:26
  2. Threads in Designer plugins
    By hvengel in forum Qt Tools
    Replies: 2
    Last Post: 3rd January 2009, 19:19
  3. Replies: 13
    Last Post: 15th December 2006, 11:52
  4. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 13:18
  5. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28

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
  •  
Qt is a trademark of The Qt Company.