[1.0.1] Intermittent Problem with Paste Function in SIkuli
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
Undecided
|
RaiMan |
Bug Description
Hello,
If I run a script that loads data from a CSV, assigns text from the rows to variables and pastes the variables into certain cells of an application that I am automating , I experience an intermittent error, where the application forgets to paste the data:
it however over the field and pastes nothing into it.
I tried it in two ways.
Manually howering, clicking and pasting it all separately.
I also tried to do Region.paste.
Both work, however in certain points the application does not paste anything into the cell.
I have sufficient time outs set up, which indicates to me that it might not be related to a time out.
Also I have set up the IDE to print the data in the variables to console to make sure that python is assigning the data correctly and it seems that python is fine.
Therefore I think there might be some issue with the paste function when using it to paste multiple chunks of data, from different variables over a long period of time.
Sometimes it also mixes up data which it is pasting and pastes a value of a previously called variable over the value of a currently called variable.
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.0 |
tags: | added: fkt-paste |
summary: |
- Intermittent Problem with Paste Function in SIkuli + [1.0] Intermittent Problem with Paste Function in SIkuli |
Changed in sikuli: | |
status: | In Progress → Fix Committed |
Changed in sikuli: | |
milestone: | 1.1.0 → 2.0.0 |
importance: | High → Medium |
Changed in sikuli: | |
status: | Fix Committed → Fix Released |
importance: | Medium → Undecided |
milestone: | 2.0.0 → none |
Hello,
We have resolved this bug by implementing a custom paste class.
The root cause of the problem here is the Windows clipboard locking as windows locks clipboard after too many consequential uses.
A way to reproduce this error is load a csv file with 1000 variables
Do a simple script to open notepad
and paste all of those variables using for each option in row
You will see that once over 30 variables have been pasted the tool will experience problems where it will miss the paste, because the memory will clear but since clipboard is locked it will prevent a new object from entering into it thus breaking paste function.
Hope this is of help.
Regards.
P.T.