Hello!

I'm having a problem with my software that I simply can't understand. Essentially what is does is to create a "false" buffer with a vector and each time the socket client receives a data, a task reads the vector-buffer, divide the data into three data and plot each of them as the Y of a graph. The softwares compiles O.K. and it runs perfectly till the moment when it says the graphs to "replot()" just after putting the code that will draw the new part of the line. When that command is called, this error message appears:

(here comes the entire qDebug() data, so you can see the entire process)

Qt Code:
  1. Server started
  2. Client connected
  3. Task Start
  4. Escrito no buffer, inicio.
  5. Nada foi passado ainda. Nada sendo plotado.
  6. Valor lido no task: "45 45 45
  7. "
  8. Fez as divisoes.
  9. Dado a ser partido: "45 45 45
  10. "
  11. QObject::connect: Cannot queue arguments of type 'QTextCursor'
  12. (Make sure 'QTextCursor' is registered using qRegisterMetaType().)
  13. 1 col: 45
  14.  
  15. 2 col: 45
  16.  
  17. 3 col: 45
  18.  
  19. QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
  20. QPixmap: It is not safe to use pixmaps outside the GUI thread
  21. QPixmap: It is not safe to use pixmaps outside the GUI thread
  22. QPainter::begin: Paint device returned engine == 0, type: 2
  23. QPainter::setPen: Painter not active
  24. QPainter::setBrush: Painter not active
  25. QPainter::drawRects: Painter not active
  26. QPainter::begin: Paint device returned engine == 0, type: 2
  27. QPainter::translate: Painter not active
  28. QPainter::save: Painter not active
  29. QPainter::setRenderHint: Painter must be active to set rendering hints
  30. QPainter::save: Painter not active
  31. QPainter::setPen: Painter not active
  32. QPainter::restore: Unbalanced save/restore
  33. QPainter::restore: Unbalanced save/restore
  34. QPainter::save: Painter not active
  35. QPainter::setRenderHint: Painter must be active to set rendering hints
  36. QPainter::restore: Unbalanced save/restore
  37. QPainter::end: Painter not active, aborted
  38. QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
  39. QPixmap: It is not safe to use pixmaps outside the GUI thread
  40. QPixmap: It is not safe to use pixmaps outside the GUI thread
  41. QPainter::begin: Paint device returned engine == 0, type: 2
  42. QPainter::setPen: Painter not active
  43. QPainter::setBrush: Painter not active
  44. QPainter::drawRects: Painter not active
  45. QPainter::begin: Paint device returned engine == 0, type: 2
  46. QPainter::translate: Painter not active
  47. QPainter::save: Painter not active
  48. QPainter::setRenderHint: Painter must be active to set rendering hints
  49. QPainter::save: Painter not active
  50. QPainter::setPen: Painter not active
  51. QPainter::restore: Unbalanced save/restore
  52. QPainter::restore: Unbalanced save/restore
  53. QPainter::save: Painter not active
  54. QPainter::setRenderHint: Painter must be active to set rendering hints
  55. QPainter::restore: Unbalanced save/restore
  56. QPainter::end: Painter not active, aborted
  57. The program has unexpectedly finished.
To copy to clipboard, switch view to plain text mode 

I try to run with the debugger, but it showed nothing and the software got "stumped".

I simply don't know where the problem can be. Does somebody knows? If necessary, I put the codes.



Thanks!