Segmentation fault when trying to creatScreenImage with a bad path

Feedback
Jake
2014-02-05
2014-02-05
  • Jake
    Jake
    2014-02-05

    Hi all,

    In a script I will occasionally try to load an image which isn't there or I have the wrong pathname. When I call ScreenImageMgr.createScreenImage() with this bad path Stellarium will crash with

    Segmentation fault (core dumped)

    and an error message

    Failed to create ScreenImage: file not found: scripts/path/to/image.png

    Even when I try to surround it with a try and catch statement, Stellarium will still crash.
    Is there a way to catch this error? Or a way to check if a file exists before trying to use it?

    Thanks
    Jake

     
  • Jake
    Jake
    2014-02-05

    Reported Bug #1276737

    Thanks
    Jake

     


Anonymous


Cancel   Add attachments