google-labs-jules[bot] 172617a523 Fix: Enhance logging for OSError and prevent AttributeError
This commit addresses two potential issues related to issue #50:

1.  Enhanced `OSError` Logging in `utils.py`:
    The `printResponse` function in `src-python/utils.py` has been modified
    to include more robust error handling around the `json.dumps()` call.
    If an `OSError` (such as `[Errno 22] Invalid argument`) occurs during
    JSON serialization, the function will now:
    - Log the full traceback of the OSError.
    - Log the specific problematic response dictionary that caused the error.
    - Print a fallback JSON error message to stdout.
    This change aims to help diagnose the root cause of the `OSError`
    reported by you by capturing the exact data that triggers it.

2.  Prevent `AttributeError` for `.close()` calls:
    Added checks in `src-python/models/osc/osc.py` and
    `src-python/models/websocket/websocket_server.py` to ensure that
    objects are not `None` before their `.close()` or `.cancel()` methods
    are called. This specifically addresses:
    - `self.browser.zc.close()` and `self.browser.browser.cancel()` in `osc.py`.
    - `self._loop.close()` in `websocket_server.py`.
    These changes prevent potential `AttributeError: 'NoneType' object
    has no attribute 'close'` errors if these objects are not fully
    initialized before cleanup.
2025-06-18 14:47:17 +00:00
2023-07-01 17:26:05 +09:00
2025-04-10 21:47:18 +09:00
2025-04-23 13:51:34 +09:00

VRCT Logo

GitHub release Downloads Licence Booth Github Sponsors

Become a VRCT Supporter on:

PIXIV FANBOX    Patreon    Ko-fi   
Supporter Section Border

| English | 日本語 | 한국어 | 繁體中文 |

VRCT is software that supports VRChat conversations with translation and transcription.

Download & Install

Download from anywhere you like.

Just download and run the exe.

What is VRCT?

VRCT is software that supports conversations between people who speak different languages by providing chat or voice translation. These features are designed for use within VRChat. *Although not supported, it is also used for other purposes such as watching movies.

VRCT supports your conversations with

  • 💬 Send chat to VRChat
  • 🌐 Translation
  • 🎙 Transcription of audio from microphone
  • 🔈 Transcription of audio from Speaker

Documents

Initial setup, basic functions, and other features are also described.

How to Use (YouTube)

Author

Thanks to our contributors


VRCT is not endorsed by VRChat and does not reflect the views or opinions of VRChat or anyone officially involved in producing or managing VRChat properties. VRChat and all associated properties are trademarks or registered trademarks of VRChat Inc. VRChat © VRChat Inc.

Description
VRCTのフォークでVRC世界旅行でスタッフの音声認識をより精度を高めるもの
Readme 62 MiB