Skip to content

Access violation stops JabWrapper #2

@jsa34

Description

@jsa34

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions