[1.0.1] - Java exception when terminating script using sys.exit() --- fixed in 1.1.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
--- fixed in 1.1.0
usage is not recommended - use Debug.user() and exit() instead.
... but on usage a crash is triggered saying:
[error] script [ Unbenannt ] stopped with error in line xxx
[error] SystemExit ( message )
-------
Hi,
I have a loop which attempted to detect an image for defined number of times.
If the image is not detected after all the attempts - it will exit:
sys.exit("%s test step FAILED!" %(testName))
This approach was working fine in 1.0.0 (example below) however after I have started using 1.0.1, I started experiencing the following java exception:
Exception in thread "MainThread" java.lang.
at java.util.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
The overall logic still works but I guess I'm doing something wrong if it results with an exception?
In 1.0.0 version, if I was terminating a script with "sys.exit()", I was getting the following error instead:
[error] Script aborted with some error:
Which looks much more harmless.
Thanks!
Eugene
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.0 |
Changed in sikuli: | |
status: | In Progress → Fix Committed |
Changed in sikuli: | |
importance: | High → Critical |
summary: |
- [1.0.1] - Java exception when terminating script using sys.exit() + [1.0.1] - Java exception when terminating script using sys.exit() --- + fixed in 1.1.0 |
description: | updated |