X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 31 Oct 2022 08:17 AM by  Ben Castellani
IDL program stops at regular intervals
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Ellen



New Member


Posts:3
New Member


--
05 Oct 2020 09:19 AM
    Hi guys,

    My IDL program stops automatically at regular intervals, about 2 hours, although it can run successfully every time after I restart it.

    The error message is:
    Failed to open image. This may be due to SELinux settings. Please see the Release Notes for ENVI, or contact your System Administrator.
    Error message: OBJ_NEW: IDLnaReaderRaster unable to connect to data
    % Unable to invoke method on NULL object reference: )>.
    The halted line is at my ENVITask('ReprojectGLT').

    I have released memory in my main function using:
    DataColl = e.Data
    DataItems = DataColl.Get()
    FOREACH Item, DataItems DO Item.close

    I cannot find the reason why it stops? Who could help me about this problem? Thanks in advance.

    Ellen

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    31 Oct 2022 08:17 AM
    It could be that SELinux is interrupting the file open calls by IDL/ENVI somehow in this case, If the image files you are opening are located on external hard drives or network mounted drives, try moving them to be local to the machine running IDL. Those can sometimes cause issues with file reads into IDL due to the slightest of latency, especially when opening a large number of large files.

    However, since you mention that resuming the program often proceeds normally, another solution here would be to just use CATCH to prevent IDL from stopping when the file is not read properly. It is possible retrying immediately after would successfully read the image file. See this help page about how to recover from errors: https://www.l3harrisgeospatial.com/docs/controlling_and_recoveri.html
    You are not authorized to post a reply.