Results 1 to 9 of 9

Thread: Getting a SIGSEGV error when loading a pixmap

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Nov 2016
    Location
    Ridgecrest California
    Posts
    33
    Thanks
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Windows Android

    Default Re: Getting a SIGSEGV error when loading a pixmap

    Yeah, assigning a pixmap to another pixmap is the result of having tried a bunch of different things and that just kinda hung on for a bit. I believe I have tried your suggestion (note the commented out sections). Seeing as how I had read that a static pixmap might help, I have also tried making the pixmap static within the function that I'm trying to load it in using the following lines of code...
    Qt Code:
    1. QPixmap static rangePic;
    2. if(!rangePic.load(sRangeFileNm))
    3. qDebug() << "Failed to load the image";
    To copy to clipboard, switch view to plain text mode 

    In any event, I am running it in a debugger, and it blows up at whatever line that has the load statement in it. The code never has the opportunity to reach the qDebug() statement. The "locals and expressions" window in the debugger, shows that rangePic (the name of the pixmap), has a size of 2000 x 2000 which is the size of the image I'm trying to load. So I am assuming that the image is at least getting loaded, and that the problem occurs at some point between the load and the qDebug() statement. That would indicate that the error doesn't occur at one of my lines of code, so you can see why I'm tempted to say that it's not a problem with what I've written. However, my experience with SIGSEGV errors is that the problem could be in the code at an earlier point than where the error is indicated. I'm still unsure what is causing it though.
    Last edited by Corny; 18th May 2017 at 17:29. Reason: updated contents

Similar Threads

  1. Replies: 2
    Last Post: 11th October 2013, 11:16
  2. SIGSEGV Error when debugging with Qt creator.
    By jiapei100 in forum Qt Programming
    Replies: 5
    Last Post: 22nd July 2012, 12:19
  3. SIGSEGV Error: Very Strange
    By grayfox in forum Qt Programming
    Replies: 18
    Last Post: 16th January 2012, 14:50
  4. Qt OpenCV SIGSEGV error help
    By bobo in forum Newbie
    Replies: 3
    Last Post: 13th June 2011, 20:03
  5. Pixmap height / width without loading it
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2007, 07:10

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.