Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Access violation stops JabWrapper

Open
#2 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, python

Research direction

Reproduce the test setup that creates JavaAccessBridgeWrapper, then inspect jab_wrapper.py around WindowsAccessBridge loading and jab_utils.py:53-55 around pump_background, GetMessage, and DispatchMessage. Compare the stated Windows configuration with the failure and document or verify a fix that prevents the access violation during initialization.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Python
Stars
20
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from robocorp/java-access-bridge-wrapper

All issues in robocorp/java-access-bridge-wrapper

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.