Results 1 to 6 of 6

Thread: How to Eliminate "warning: Unable to restore previously selected frame."

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default How to Eliminate "warning: Unable to restore previously selected frame."

    Hi
    i get warning message
    Qt Code:
    1. warning: Unable to restore previously selected frame.
    To copy to clipboard, switch view to plain text mode 
    when i debug the code in QtCreator ,What might be the cause of this? how to eliminate it.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to Eliminate "warning: Unable to restore previously selected frame."

    Probably an incorrectly compiled application or debuging an application built in release mode.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: How to Eliminate "warning: Unable to restore previously selected frame."

    Probably an incorrectly compiled application
    Even after the application is rebuild i get the same error.
    or debuging an application built in release mode.
    The QtCreator executes the command
    Qt Code:
    1. /usr/bin/make -f Makefile.Debug
    To copy to clipboard, switch view to plain text mode 
    I can view the qt library files when i double click the stack trace produced by qtcreator ,but the libstdc++.so and libc.so are disabled in the stacktrace so does this mean that there is no libstd* debug libraries, which would have caused these warnings.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to Eliminate "warning: Unable to restore previously selected frame."

    When exactly do you get those messages? And does it cause something to not work? It's just a warning, you know...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: How to Eliminate "warning: Unable to restore previously selected frame."

    When exactly do you get those messages?
    After the start of the program before anything is printed to console.The output looks like this.

    Qt Code:
    1. warning: Unable to restore previously selected frame.
    2. warning: Unable to restore previously selected frame.
    3. warning: Unable to restore previously selected frame.
    4. *** glibc detected *** /home/bala/svn_workspace/TT/PlotInterface: malloc(): memory corruption: 0x0852cd00 ***
    5. ======= Backtrace: =========
    6. /lib/libc.so.6[0xb6db4fc4]
    7. /lib/libc.so.6[0xb6db76aa]
    8. /lib/libc.so.6(__libc_malloc+0x9c)[0xb6db911c]
    9. /home/bala/qtsdk-2009.01/qt/lib/libQtCore.so.4(_Z7qMallocj+0x1d)[0xb70e38fd]
    10. /home/bala/qtsdk-2009.01/qt/lib/libQtCore.so.4(_ZN7QString7reallocEi+0x3b)[0xb7132d3b]
    11. /home/bala/qtsdk-2009.01/qt/lib/libQtCore.so.4(_ZN7QString6appendERKS_+0xac)[0xb713303c]
    12. /home/bala/svn_workspace/TT/PlotInterface[0x8072b24]
    13. /home/bala/svn_workspace/TT/PlotInterface[0x807453f]
    14. /home/bala/svn_workspace/TT/PlotInterface[0x80675b2]
    15. /home/bala/qtsdk-2009.01/qt/lib/libQtCore.so.4[0xb70e99fe]
    16. /lib/libpthread.so.0[0xb6fb7175]
    17. /lib/libc.so.6(clone+0x5e)[0xb6e16dce]
    18. ======= Memory map: ========
    19. 08048000-083a5000 r-xp 00000000 08:07 587267 /home/bala/svn_workspace/TT/PlotInterface
    20. 083a5000-083a6000 r--p 0035c000 08:07 587267 /home/bala/svn_workspace/TT/PlotInterface
    21. 083a6000-083a7000 rw-p 0035d000 08:07 587267 /home/bala/svn_workspace/TT/PlotInterface
    22. 083a7000-08613000 rw-p 083a7000 00:00 0 [heap]
    23. b5700000-b5756000 rw-p b5700000 00:00 0
    24. b5756000-b5800000 ---p b5756000 00:00 0
    25. b5808000-b5809000 ---p b5808000 00:00 0
    26. b5809000-b6009000 rw-p b5809000 00:00 0
    27. b6009000-b601b000 r--p 00000000 08:06 570856 /usr/share/ghostscript/fonts/n019004l.pfb
    28. b601b000-b6045000 r--p 00000000 08:06 615216 /usr/share/fonts/truetype/albwb.ttf
    29. b6045000-b606f000 r--p 00000000 08:06 615215 /usr/share/fonts/truetype/albw.ttf
    30. b606f000-b60bc000 r-xp 00000000 08:07 586429 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqtiff.so
    31. b60bc000-b60be000 rw-p 0004d000 08:07 586429 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqtiff.so
    32. b60be000-b6103000 r-xp 00000000 08:07 360459 /home/bala/qtsdk-2009.01/qt/lib/libQtXml.so.4.5.0
    33. b6103000-b6105000 rw-p 00044000 08:07 360459 /home/bala/qtsdk-2009.01/qt/lib/libQtXml.so.4.5.0
    34. b6105000-b6158000 r-xp 00000000 08:07 360451 /home/bala/qtsdk-2009.01/qt/lib/libQtSvg.so.4.5.0
    35. b6158000-b615a000 rw-p 00052000 08:07 360451 /home/bala/qtsdk-2009.01/qt/lib/libQtSvg.so.4.5.0
    36. b615a000-b61a8000 r-xp 00000000 08:07 586430 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqmng.so
    37. b61a8000-b61aa000 rw-p 0004e000 08:07 586430 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqmng.so
    38. b61aa000-b61cf000 r-xp 00000000 08:07 586431 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqjpeg.so
    To copy to clipboard, switch view to plain text mode 
    and more..(i have attached the almost(19.5 kb is the limit ) total output,)
    no ..maybe.. because the program gets crashed even when build with release mode.
    Can you guess what might be the error from the output of the error message of the program(The code is quite large ).
    Attached Files Attached Files
    Last edited by babu198649; 19th April 2009 at 13:40.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to Eliminate "warning: Unable to restore previously selected frame."

    You get a segmentation fault. The backtrace looks fine, so you can probably ignore the warning and concentrate on fixing the error.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. The following user says thank you to wysota for this useful post:

    babu198649 (19th April 2009)

Similar Threads

  1. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 06:34

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.