OpenGL. Crash an application



  • Hello

    I have a crash on the line: qDebug() << m_cube.vertices.size();

    Here:

    @Scene::Scene( QWidget *parent ) :
    QOpenGLWidget( parent ),
    m_isLoaded( false )
    {
    QString pathToCube = QDir::currentPath() + QString( "/Cube.observerFormat" );

    m_cube.vertices = ObjLoader::load( pathToCube.toStdString().c_str() );
    
    if ( m_cube.vertices.size() != 0 )
    {
        m_isLoaded = false;
        m_cube.initColors( m_cube.vertices.size() / 3 );
        qDebug() << m_cube.vertices.size();
        qDebug() << m_cube.colors.size();
    }
    

    }@

    https://github.com/8Observer8/CubeFromBlender_v1.0.1

    I don't understand why


  • Lifetime Qt Champion

    Hi,

    The Scene in your repository code doesn't contain what you posted.

    Did you check what happens precisely with a debugger ?


Log in to reply
 

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