Qt + QGLWidget Debug problem



  • Hello guys,

    I'm newbie in QT an OpengGL and I have faced with a little problem. I want to create 3D simulation software for my stereovision project under Windows Xp. I'm using QT 4.7.

    So what I did?... I have created new GLWidget class which inherit QGLWidget. This class promoted to Qt Widget object.

    @class glwidget : public QGLWidget
    {
    Q_OBJECT
    public:
    explicit glwidget(QWidget *parent = 0);

    public:
    Global *glob; // Global variable object

    // Methods
    protected:
    void initializeGL();
    void resizeGL( int width, int height );
    void paintGL();

    signals:

    public slots:
    }
    @

    Everything works fine, but when I start debuging I get a pop message:
    The inferior stopped because it received a signal from the operating system.
    signal name:?
    signal meaning: Unknown signal

    What is wrong? Did I miss something? Any ideas? Thank you for your help in advance!

    If you need more details just say

    megas_mg





  • QtK: Hmm but this one doesn't say Seg Fault.

    Can you backtrace the crash?

    It's only happening in debug mode (not release) right?



  • [quote author="xsacha" date="1292160883"]QtK: Hmm but this one doesn't say Seg Fault.

    Can you backtrace the crash?

    It's only happening in debug mode (not release) right?[/quote]

    Yes initially I had also faced this issue. But don't remember what I did to fix it. But am sure it was not an issue with my code(in my case it was seg fault).



  • When I see strange behavior like this, I do a full clean build and see if it happens with the clean build. Sometimes build dependency problems cause partial build problems which cause odd behavior like this. Does it still happen after a clean build?



  • [quote author="QtK" date="1292157090"]Similar issue is discussed "here":http://www.qtcentre.org/threads/26710-Got-quot-the-inferior-stopped-...-quot-when-debug and "here":http://www.qtforum.org/article/31937/error-when-debugging-with-qt-creator.html.[/quote]

    Thanks! But I have already read first discussion before. No luck.
    [quote author="xsacha" date="1292160883"]QtK: Hmm but this one doesn't say Seg Fault.

    Can you backtrace the crash?

    It's only happening in debug mode (not release) right?[/quote]

    The message pops up only when I try to debug my code. I thought that maybe my code is wrong. So I have created new empty project with mentioned GLWidget class.

    I gets a crash on tdll!RtlReAllocateHeap C:\WINDOWS\system32\ntdll.dll 0x7c96478e thread



  • [quote author="Bradley" date="1292172527"]When I see strange behavior like this, I do a full clean build and see if it happens with the clean build. Sometimes build dependency problems cause partial build problems which cause odd behavior like this. Does it still happen after a clean build?[/quote]

    Yes it does :(



  • Graphics driver issue? Do you have the latest drivers for the system?



  • [quote author="Bradley" date="1292183130"]Graphics driver issue? Do you have the latest drivers for the system?[/quote]

    Thank you Bradley!!!! I think you are right!
    I have moved the project to my DELL laptop with ATI Radeon™ HD 3670 graphic card. And it's works fine. Yeah :) Now I remembered this issue occured after moment when I started working with my PC. My PC armed GeForce 9600 GT. I have updated newest drivers, but it doesn't helped. :(

    So I guess I'll back to my DELL



  • Very welcome. If you have time, please update this topic after the upgrade and let us know if it did indeed solve the problem. Thanks.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.