When running setup for tests to init the JabWrapper, I am getting:
DEBUG root:jab_wrapper.py:112 Loading WindowsAccessBridge
DEBUG root:jab_wrapper.py:118 WindowsAccessBridge loaded succesfully
DEBUG root:jab_utils.py:55 Dispatching msg=<cparam 'P' (0x0000018D35679CF0)>
DEBUG root:jab_utils.py:55 Dispatching msg=<cparam 'P' (0x0000018D35679CF0)>
DEBUG root:jab_utils.py:55 Dispatching msg=<cparam 'P' (0x0000018D35679CF0)>
DEBUG root:jab_utils.py:55 Dispatching msg=<cparam 'P' (0x0000018D35679CF0)>
Windows fatal exception: access violation
Current thread 0x0000030c (most recent call first):
File "C:\Users\Me\PycharmProjects\test_proj\utils\jab_utils.py", line 53 in pump_background
The offending line is "while GetMessage(message, 0, 0, 0) > 0" at:
try:
jab_wrapper = JavaAccessBridgeWrapper()
pipe.put(jab_wrapper)
message = byref(wintypes.MSG())
while GetMessage(message, 0, 0, 0) > 0:
TranslateMessage(message)
logging.debug("Dispatching msg={}".format(repr(message)))
DispatchMessage(message)
I have enabled Access Bridge for Windows, referenced the dll as an env var, removed user prefs for accessibility at .accessibility.properties and made sure that jabswitch is enabled.
Any ideas?