[1.0.1] IDE: open script crashes when it contains an image with same name as script --- fixed in 1.1.0

Bug #1248189 reported by RaiMan
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

Hello!

I've got both Sikuli-IDE and .jar are failing when trying to open a script, if there is another file in the folder with the same filename (minus extension):
1) in IDE create new script, save it as say "testscript"
the following are created:
testscript.sikuli\
testscript.sikuli\testscript.py
2) make a screenshot and save it in the directory, rename to "testscript.png"
we have now:
testscript.sikuli\
testscript.sikuli\testscript.py
testscript.sikuli\testscript.png
3) close script tab in IDE, close IDE
4) open IDE then open the script

Actual: the program is terminated. Running with -d returns:
(...a number of info lines here without anything suspicious...)
[debug] MenuAction.doLoad
[error] Fatal error 120: Could not load script runner for ending: png
[error] Terminating SikuliX after a fatal error(120)! Sorry, but it makes no sen
se to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.
[debug] SikuliXFinal: cleanUp: 0

A workaround is to keep the script filename unique through the folder, works fine.

I'm not sure but it seems that these scripts were opened normally before. Can you please advise if there's a new restriction on naming files?

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
summary: [1.0.1] IDE: open script crashes when it contains an image with same
- name as script
+ name as script --- workaround: avoid ;-)
RaiMan (raimund-hocke)
summary: [1.0.1] IDE: open script crashes when it contains an image with same
- name as script --- workaround: avoid ;-)
+ name as script --- fixed in 1.1.0
Changed in sikuli:
importance: High → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.