Results 1 to 5 of 5

Thread: Getting error: ‘unavailable synchroneous data’ in Qt Creator during debugging

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    26
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Getting error: ‘unavailable synchroneous data’ in Qt Creator during debugging

    Hey guys, I'm getting this strange error in Qt while debugging .. Here's whats happening: I am debugging inside this function/method which is part of a class named Canvas. Now within this function, I should be able to access all of this class's variables, etc .. since the access request is coming from within the same class. However, when I'm halted at a specific line within this function and I look at the Local Watch, I see all the variables of this class object listed, however next to all of them it says: 'unavailable synchroneous data' (spelled exactly like this). When I try to access any such variable within this function, the program crashes ... Can someone tell me what is happening here ?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Getting error: ‘unavailable synchroneous data’ in Qt Creator during debugging

    Can you post your code?

  3. #3
    Join Date
    Sep 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting error: ‘unavailable synchroneous data’ in Qt Creator during debugging

    I have the same problem as ahmadka. When I try to access any such variable "aktualnyGracz" or another variable within this function, the program crashes.
    In the constructor variables are displayed good.
    This is my code:

    server.h
    Qt Code:
    1. class Server : public QObject
    2. {
    3. Q_OBJECT
    4. public:
    5. ...
    6. Table *zwrocTable()
    7. { return table; }
    8. QList<Gracz *> listaGracz;
    9. qint16 naszIndex;
    10. ...
    11.  
    12. public slots:
    13. ...
    14. void startGame();
    15. ...
    16.  
    17. private:
    18. QWidget *parentWindow;
    19. Table *table;
    20.  
    21. };
    To copy to clipboard, switch view to plain text mode 

    server.cpp
    Qt Code:
    1. void Server::startGame()
    2. {
    3. table = new Table(parentWindow, listaGracz, naszIndex);
    4. connect(table, SIGNAL(closeTable()), this, SLOT(closeServer()), Qt::DirectConnection);
    5. connect(table, SIGNAL(podbij(quint16)), this, SLOT(podbij(quint16)), Qt::DirectConnection);
    6. connect(table, SIGNAL(spasuj()), this, SLOT(spasuj()));
    7. table->ustawGracza(0);
    8. }
    To copy to clipboard, switch view to plain text mode 

    table.h
    Qt Code:
    1. class Table : public QMainWindow, public Ui::TableWindow
    2. {
    3. Q_OBJECT
    4. public:
    5. Table(QWidget *parent, QList<Gracz *> &l, qint16 &n);
    6. void ustawGracza(qint16 index);
    7.  
    8. private:
    9. ...
    10. qint16 naszIndex;
    11. QList<Gracz *> listaWskaz;
    12. };
    To copy to clipboard, switch view to plain text mode 

    table.cpp
    Qt Code:
    1. Table::Table(QWidget *parent, QList<Gracz *> &l, qint16 &n) :
    2. QMainWindow(parent), listaWskaz(l), naszIndex(n)
    3. {}
    4.  
    5. void Table::ustawGracza(qint16 index)
    6. {
    7.  
    8. qDebug() << "something " << index;
    9. qDebug() << aktualnyGracz;
    10. uaktualnij();
    11. }
    To copy to clipboard, switch view to plain text mode 

    Can you help me?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Getting error: ‘unavailable synchroneous data’ in Qt Creator during debugging

    I have the same problem as ahmadka. When I try to access any such variable "aktualnyGracz" or another variable within this function, the program crashes.
    This might be of interest:
    http://stackoverflow.com/questions/5...-in-qt-creator

  5. #5
    Join Date
    Aug 2010
    Posts
    107
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting error: ‘unavailable synchroneous data’ in Qt Creator during debugging

    I don't see anywhere in your code where you declare or define aktualnyGracz

Similar Threads

  1. Remote debugging with Qt Creator
    By rodrigotavares in forum Qt Tools
    Replies: 4
    Last Post: 3rd February 2010, 18:15
  2. qt creator debugging problem
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2009, 21:10
  3. Debugging in QT Creator
    By cae in forum Qt Tools
    Replies: 6
    Last Post: 16th November 2009, 12:45
  4. Qt Creator debugging trouble on Mac OS
    By johnmidd in forum Qt Tools
    Replies: 5
    Last Post: 6th November 2009, 12:34
  5. debugging in QT Creator
    By talk2amulya in forum Qt Tools
    Replies: 3
    Last Post: 22nd February 2009, 06:50

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.