aisingapore / TagUI

Free RPA tool by AI Singapore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sikuli visual automation hangs with this error in src\tagui.sikuli\tagui_windows.log

kensoh opened this issue · comments

from user - visual automation hangs simply there with following error message in tagui\src\tagui.sikuli\tagui_windows.log

WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

full log details for reference

+++ running this Java
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar c:\tagui\src\tagui.sikuli\sikulix.jar -r tagui.sikuli
Jul 03, 2018 11:40:41 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
[tagui] START  - listening for inputs

[tagui] FINISH - stopped listening

It looks like a Java issue.

I found 2 possible solutions online which you can try and let me know how it goes.

First way

Go to the folder tagui\src\tagui.sikuli, right-click on runsikulix.cmd and run as administrator. After that try to run again your automation script to see if it works (for example tagui demo.txt chrome)

Second way

  1. Go into your Start Menu and type regedit into the search field.
  2. Navigate to path HKEY_LOCAL_MACHINE\Software\JavaSoft (Windows 10 seems to now have this here: HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft)
  3. Right click on the JavaSoft folder and click on New -> Key
  4. Name the new Key Prefs and everything should work."

reference for #1 - http://dejavuqa.tistory.com/160
reference for #2 - julienvollering/MIAmaxent#1


confirmation from user that it works - 'The solutions you recommended works. 😄'