Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OpenGL. Crash an application
Forum Updated to NodeBB v4.3 + New Features

OpenGL. Crash an application

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 573 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 8Observer88 Offline
    8Observer88 Offline
    8Observer8
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Did you check what happens precisely with a debugger ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved