Skip to content

Debugger Viewer doesn't work, can't connect to ScrollView server #3000

@ellislau

Description

@ellislau

Environment

  • Tesseract Version: 4.1.1
  • Commit Number: 4.1.1 Release
  • Platform: MacOS Catalina 10.15.5, Darwin Kernel Version 19.5.0

Current Behavior:

When using the parameter inter or interactive_display_mode, the application hangs.

Expected Behavior:

The debugger viewer window should open.

Suggested Fix:

The issue seems to be that ScrollView uses java.net.ServerSocket which always uses TCP, whereas the SVNetwork logic in svutil.cpp may look for either a TCP or UDP socket. In my case, it was looking for a UDP socket and was not able to successfully connect. Tentatively, it seems that passing an addrinfo hints object that sets ai_protocol to IPPROTO_TCP was sufficient to work around the problem (https://www.man7.org/linux/man-pages/man3/getaddrinfo.3.html).

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