[1.1.4] Capture does not always work / directory missing

Bug #1810639 reported by Michael Bvhm on 2019-01-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

temp folder is created at startup and purged with final cleanup (IDE termination).
added a sequence at startup, that folder is useable

I found the script sometimes break at:

img = capture(Region(1372,119,536,798))
print img

with the error:
java.io.FileNotFoundException: C:\Users\_badboi\AppData\Local\Temp\Sikulix_139865951\sikuliximage-1546764694493.png (Das System kann den angegebenen Pfad nicht finden)
at sikuli.Sikuli$py.capture$4(C:/Users/_badboi/AppData/Roaming/Sikulix/Lib/sikuli/Sikuli.py:58)
at sikuli.Sikuli$py.call_function(C:/Users/_badboi/AppData/Roaming/Sikulix/Lib/sikuli/Sikuli.py)
[info] Exit code: 0

at org.sikuli.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:189)
at org.sikuli.ide.SikuliIDE$ButtonRun$SubRun.run(SikuliIDE.java:2601)
at java.lang.Thread.run(Unknown Source)

To resolve it, I can either restart the IDE (1.1.4 on Win10), or simply create the directory (in this example) Sikulix_139865951.
I was not able to find out under which conditions SIKULIX failed to add that that temp-directory.

RaiMan (raimund-hocke) wrote :

ok, I will check.

Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
summary: - Capture does not always work / directory missing
+ [1.1.4] Capture does not always work / directory missing
description: updated
RaiMan (raimund-hocke) on 2019-04-14
Changed in sikuli:
status: In Progress → Opinion
description: updated
Changed in sikuli:
importance: High → Undecided
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers