deleteOnExit() method not working after *.skl file execution --- completely revised in 1.1.0

Bug #1046251 reported by Sairam Pooraj on 2012-09-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

*.sikuli folder extracted to "tmp -- *" folder in java tmp path , from *.skl file during execution, is not removed at the end of the JVM termination . Accumulation of these "tmp -- *" folders may create space issue.

1. The version of Sikuli you were using.
     => sikuli X-1.0rc3 ( r905 )
2. Your operating system, 32-bit or 64-bit, and its version.
     => Windows XP SP3 - ( 32 bit OS )
3. The procedure to reproduce the bug.
     => run any sikuli executable ( *.skl ) file using "Sikuli-IDE.bat"
4. Any information that might help us to locate the bug.
     => tempDir.deleteOnExit() method is not working as expected. [ method createTempDir() in file ]
          There are lot of discussion about why deleteOnExit() not working. Bug reported and never arrived solution . Please refer

           I would suggest to use tmpDir.delete() in runSkl method in ,

           public static int runSkl(String filename, String[] args) throws IOException{
              _runningSkl = true;
              File file = new File(filename);
                 throw new IOException(filename + ": No such file");
              String name = file.getName();
              name = name.substring(0, name.lastIndexOf('.'));
              File tmpDir = Utils.createTempDir();
              File sikuliDir = new File(tmpDir + File.separator + name + ".sikuli");
              Utils.unzip(filename, sikuliDir.getAbsolutePath());
              int returnCode = runSikuli(sikuliDir.getAbsolutePath(), args);
              return returnCode ;

RaiMan (raimund-hocke) on 2012-11-02
Changed in sikuli:
status: New → In Progress
milestone: none → x1.0
assignee: nobody → RaiMan (raimund-hocke)
RaiMan (raimund-hocke) on 2012-11-02
tags: added: general
RaiMan (raimund-hocke) on 2013-02-21
tags: added: deleteonexit
RaiMan (raimund-hocke) on 2013-02-21
tags: removed: general
RaiMan (raimund-hocke) on 2013-02-21
Changed in sikuli:
importance: Undecided → High
RaiMan (raimund-hocke) on 2013-05-07
Changed in sikuli:
importance: High → Low
milestone: x1.0 → x1.1
RaiMan (raimund-hocke) on 2014-01-12
Changed in sikuli:
status: In Progress → Fix Committed
importance: Low → High
RaiMan (raimund-hocke) on 2015-05-15
Changed in sikuli:
importance: High → Critical
summary: - deleteOnExit() method not working after *.skl file execution
+ deleteOnExit() method not working after *.skl file execution ---
+ completely revised in 1.1.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers