Results 1 to 6 of 6

Thread: Segmentation error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2012
    Posts
    232
    Thanks
    118
    Thanked 18 Times in 10 Posts
    Platforms
    Windows Android

    Default Segmentation error

    Hello

    I have the Segmentation error on the line: m_textures.push_back( new QOpenGLTexture( frame ) );

    When I press "the Space key":

    Qt Code:
    1. void ExplosionOfProjectile::genTextures()
    2. {
    3. QImage image( ":/Texture/TankSpriteSheet.png" );
    4. image = image.mirrored( false, true );
    5.  
    6. QImage frame;
    7.  
    8. frame = image.copy( 257, 112, 15, 15 );
    9. m_textures.push_back( new QOpenGLTexture( frame ) );
    10.  
    11. frame = image.copy( 272, 112, 16, 16 );
    12. m_textures.push_back( new QOpenGLTexture( frame ) );
    13.  
    14. frame = image.copy( 287, 111, 18, 18 );
    15. m_textures.push_back( new QOpenGLTexture( frame ) );
    16. }
    To copy to clipboard, switch view to plain text mode 

    Source: https://github.com/8Observer8/Tanks
    Last edited by 8Observer8; 12th January 2015 at 20:21.

Similar Threads

  1. Segmentation fault error
    By Niamita in forum Qt Programming
    Replies: 5
    Last Post: 23rd April 2012, 17:00
  2. Segmentation error
    By dacron.goku in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2012, 13:07
  3. Segmentation error! Please help!!!
    By phapha in forum Newbie
    Replies: 4
    Last Post: 26th October 2011, 17:01
  4. Segmentation error in run
    By kurrachow in forum Newbie
    Replies: 1
    Last Post: 21st April 2011, 13:13
  5. QT 4.6.0 with threads - UIC segmentation error
    By edmondo1984 in forum Installation and Deployment
    Replies: 5
    Last Post: 15th November 2010, 18:56

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.