Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kensoh opened this issue Jul 4, 2018 · 1 comment
Labels

Comments

@kensoh
Copy link
Member

kensoh commented Jul 4, 2018

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
@kensoh kensoh added the query label Jul 4, 2018
@kensoh
Copy link
Member Author

kensoh commented Jul 4, 2018

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. 😄'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant