[1.1.0-Beta1] IDE: Sikuli might delete used images on save --- workaround: switch of pref option until fixed --- fixed in Beta2

Bug #1331924 reported by Ben Stanley on 2014-06-19
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Critical
RaiMan

Bug Description

**** workaround until fixed

switch of the option "delete not used images on save"
in IDE -> Preferences -> more options

------------------------------------------------------

**** this bug is related to bug 1324324

---------------------------------------------------

Using Sikuli 1.1.0 Beta1 on RHEL6.4 x86_64

I have a 400 line proprietary script, containing the order of 50 images.

When I save the script, Sikuli deletes all but 10 of the images.

I have been working with 3 scripts open simultaneously. I don't know if this is a contributing factor.

I have taken to running a background backup. When Sikuli deletes the images, I copy them back from the backup, and all is well.

I have lost many images and it is difficult to re-generate them to put back in the script folder!

I am sorry I am not able to send you a reproduction.

I ran sikuli with -d 3 and obtained the following log information during a save:

[debug] JythonScriptRunner: Convert Sikuli source code /home/user/Testing/Test2.sikuli/ to HTML

[debug] IDE: save: used image: 1403056258247.png
[debug] IDE: save: used image: 1403056290127.png
[debug] IDE: save: used image: 1403050468739.png
[debug] IDE: save: used image: 1403061243112.png
[debug] IDE: save: used image: 1403050284708.png
[debug] IDE: save: used image: 1403136266208.png
[debug] IDE: save: used image: 1403136266208.png
[debug] IDE: save: used image: 1403136618390.png
[debug] IDE: save: used image: 1403136652270.png
[debug] IDE: save: used image: 1403050468739.png
[debug] IDE: save: used image: 1403050393540.png
[debug] IDE: save: used image: 1403050468739.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152455426.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152475762.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152497537.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152591105.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152605569.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152615849.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152633025.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152691144.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152730344.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152820808.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152849544.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152864391.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403152906455.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403153044783.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403153081414.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403154274008.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403154288784.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403154746509.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403154877285.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403155015060.png
[debug] FileManager: delete not used: /home/user/Testing/Test2.sikuli/1403155506674.png

Many of those images are used, so it seems that there is a defect in deciding that an image is not used.

Ben Stanley (ben-stanley) wrote :

Please note that Sikuli also deletes images that are referenced by commented out code.

RaiMan (raimund-hocke) wrote :

Is this the folder of the saved script?
/home/user/Testing/Test2.sikuli

summary: - Sikuli deletes images on save
+ [1.1.0-Beta1] IDE: Sikuli might delete used images on save --- switch of
+ pref option until fixed
summary: - [1.1.0-Beta1] IDE: Sikuli might delete used images on save --- switch of
- pref option until fixed
+ [1.1.0-Beta1] IDE: Sikuli might delete used images on save ---
+ workaround: switch of pref option until fixed
description: updated
RaiMan (raimund-hocke) on 2014-06-19
description: updated
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
Download full text (8.8 KiB)

Yes, the python script and all the images are in that directory.

On 19 June 2014 7:50:54 PM RaiMan <email address hidden> wrote:

> Is this the folder of the saved script?
> /home/user/Testing/Test2.sikuli
>
> ** Summary changed:
>
> - Sikuli deletes images on save
> + [1.1.0-Beta1] IDE: Sikuli might delete used images on save --- switch of
> pref option until fixed
>
> ** Summary changed:
>
> - [1.1.0-Beta1] IDE: Sikuli might delete used images on save --- switch of
> pref option until fixed
> + [1.1.0-Beta1] IDE: Sikuli might delete used images on save ---
> workaround: switch of pref option until fixed
>
> ** Description changed:
>
> + **** workaround
> +
> + switch of the option "delete not used images on save"
> + in Prferences -> more options
> Using Sikuli 1.1.0 Beta1 on RHEL6.4 x86_64
>
> I have a 400 line proprietary script, containing the order of 50 images.
>
> When I save the script, Sikuli deletes all but 10 of the images.
>
> I have been working with 3 scripts open simultaneously. I don't know if
> this is a contributing factor.
>
> I have taken to running a background backup. When Sikuli deletes the
> images, I copy them back from the backup, and all is well.
>
> I have lost many images and it is difficult to re-generate them to put
> back in the script folder!
>
> I am sorry I am not able to send you a reproduction.
>
> I ran sikuli with -d 3 and obtained the following log information during
> a save:
>
> [debug] JythonScriptRunner: Convert Sikuli source code
> /home/user/Testing/Test2.sikuli/ to HTML
>
> [debug] IDE: save: used image: 1403056258247.png
> [debug] IDE: save: used image: 1403056290127.png
> [debug] IDE: save: used image: 1403050468739.png
> [debug] IDE: save: used image: 1403061243112.png
> [debug] IDE: save: used image: 1403050284708.png
> [debug] IDE: save: used image: 1403136266208.png
> [debug] IDE: save: used image: 1403136266208.png
> [debug] IDE: save: used image: 1403136618390.png
> [debug] IDE: save: used image: 1403136652270.png
> [debug] IDE: save: used image: 1403050468739.png
> [debug] IDE: save: used image: 1403050393540.png
> [debug] IDE: save: used image: 1403050468739.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152455426.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152475762.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152497537.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152591105.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152605569.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152615849.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152633025.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152691144.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152730344.png
> [debug] FileManager: delete not used:
> /home/user/Testing/Test2.sikuli/1403152820808.png
> [debug] FileMan...

Read more...

RaiMan (raimund-hocke) on 2014-06-27
Changed in sikuli:
status: In Progress → Fix Committed
importance: High → Critical
summary: [1.1.0-Beta1] IDE: Sikuli might delete used images on save ---
- workaround: switch of pref option until fixed
+ workaround: switch of pref option until fixed --- fixed in Beta2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers