Skip to content

Got fatal error during frame processing #1369

Closed as not planned
Closed as not planned

Description

@HePingLaoSan

Describe the bug
I'm using version 1.5.3 of this library, and while troubleshooting through the logs, I came across the error message org.java_websocket.WebSocketImpl.414: Got fatal error during frame processing. However, this error log did not trigger the onError callback or the onClose callback. I'm not sure why this is happening.

*To Reproduce
An occasional case, no idea how to reproduce

Expected behavior
trigger onError or onClose

Debug log
org.java_websocket.WebSocketImpl.414: Got fatal error during frame processing.

Version used: 1.5.3
Java version: 17
Operating System and version: Ubuntu 20.04

Activity

  1. marci4 commented on Jan 15, 2024

    @marci4
    Collaborator

    This message is printed out when one of the following exceptions are triggered.
    VirtualMachineError | ThreadDeath | LinkageError

    As I cannot reproduce the issue, I cannot improve the error handling here.

  2. HePingLaoSan commented on Jan 29, 2024

    @HePingLaoSan
    Author

    This message is printed out when one of the following exceptions are triggered. VirtualMachineError | ThreadDeath | LinkageError

    As I cannot reproduce the issue, I cannot improve the error handling here.

    Thank you for your response. As a developer, what is the usual way for us to correctly handle this kind of error?

  3. evoisard commented on Feb 21, 2025

    @evoisard

    This has been fixed in 2022 for WebSocketServer: #1223, WebSocketClient should get the fix too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions