PDA

View Full Version : Fatal IO error with QGLWidget and reading a file



mcn
14th March 2010, 21:19
Hello,

I'm facing a rather strange problem. I only recently started working with Qt and OpenGL. :D

I'm programming an application in which I got a QStackedWidget as main widget. In it there's my QGLWidget derived class and some non-opengl widgets. OpenGL is used for rendering a terrain map read from a file. Whenever i open QDialog and start reading from the chosen file the application crashes with only this error message:
Fatal IO error: client killed

What's even more strange when QGLWidget is hidden (other widget from QStackedWidget is selected) I can read from file without any problems, then switch to QGLWidget and it works great.

Best regards,
mcn

JohannesMunk
16th March 2010, 15:21
Maybe some objects have the wrong lifetime? Try to build a minimal-compilable-program that still shows the error and post the code here.

Johannes