[2.0.5] script doesn't close after VNC (Java) --- no solution

Asked by Davy Verbogt

I am using Sikulix to make some automated tests.
I am using version 2.0.5 the latest api

I need to connect to a pc with VNC to test there.
That all works but when the script reaches the end it never stops running.
Also if i call System.exit(0) it never stops.

At the moment i use Intelij and have to stop the scripts by hand.
If i dont run any click of wait methodes and only connect. the System.exit does actualy close the script.

Am i doing something wrong?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Do you close the VNC session before ending the script?

--- At the moment i use Intelij
I do not understand what that means.

Can you give an example flow with the substantial API calls?

Revision history for this message
Davy Verbogt (aligatetcolt) said :
#2

With at the moment i use intelij i meant that i use intelij as my ide.

what i do is.

i connect to the VNC

VNCScreen vnc= VNCScreen.start(IP, Port, Pass, 10, 10000);

vnc.wait(thing); i wait so see a certain screen

vnc.write(user);
vnc.type(Key.ENTER); it selects a user

vnc.wait(thing2); waits to be logged it

vnc.click(thing3); clicks on a button

vnc.stop();

System.exit(0);

and it doesnt close. the IDE keeps the script runinng.
if i dont use click. the script does close. as i had moment where it couldn't find the first thing and the script did exit.

Revision history for this message
Davy Verbogt (aligatetcolt) said :
#3

For what i have seen it seems to have to do with the mouse event.

If i dont use the Click command it does close.

When i look at the debugger. then it seems to hang on the ReferenceHandler to be more precises, the processPendingReferences(); function.

https://prnt.sc/g2zgGNY_wCd7

In the link above it shows what is there for the debugger. and in the last of that list called THREAD. in that one i can find things from Sikulix.

https://prnt.sc/NZoFc7UicJza

As you can see in the link above

I hope the screenshots make it a bit more clear

Revision history for this message
RaiMan (raimund-hocke) said :
#4

ok, thanks for the additional info.

I have to check.
may take some days. sorry.

Revision history for this message
Davy Verbogt (aligatetcolt) said :
#5

Apsolutly no problem. i can understand that you're realy busy.

I am already glad that you want to help

Revision history for this message
RaiMan (raimund-hocke) said :
#6

I am sorry, but I did not get VNC to work at all in my environment (Windows, macOS).

Since VNC is currently switched off in 2.0.6, I put on the list vor 2024 to make it ready again.

Revision history for this message
Davy Verbogt (aligatetcolt) said :
#7

No problem, I will just keep testing the way i test at te moment.

It will probebly only be a real problem when i build the program and at the moment i am just running it through the IDE.

Revision history for this message
Davy Verbogt (aligatetcolt) said :
#8

They decided to change what VNC server they were using so i can't connect to the system anymore. i now keep getting the error No matching security types.

So for anyone that was also sruggeling with this. (I dont think that alot of poeple are) I haven't been able to find a solution

Can you help with this problem?

Provide an answer of your own, or ask Davy Verbogt for more information if necessary.

To post a message you must log in.