Commit Graph

20 Commits

Author SHA1 Message Date
misyaguziya
245855d0ca [Update] Add compute type management for CTranslate2 and Whisper models 2025-09-17 10:35:34 +09:00
misyaguziya
d12c157b66 [Update] Refactor message formatting and add validation for message structure 2025-08-06 20:33:36 +09:00
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
misyaguziya
88c27a9c70 [Update] WebSocket: Implement availability check for WebSocket server and refactor related logic 2025-05-26 16:15:04 +09:00
misyaguziya
3d53652b2d [Update] Controller: Validate and handle IP address setting in setOscIpAddress method.
[Update] Utils: Implement isValidIpAddress function to check IP address validity.
2025-03-22 14:37:05 +09:00
misyaguziya
78d79f4a54 🐛[bugfix] controller: offline時の処理を追加 2025-02-06 18:29:07 +09:00
misyaguziya
ec590240c0 🐛[bugfix] Utils : loggerのファイル容量を制限(10MBまで)、ローテーションとしてxxx.logとxxx.log.1を生成するように変更 2025-01-31 13:11:45 +09:00
misyaguziya
567907fc4d 🐛[bugfix] Model : Added the ability to automatically select calculation types from GPU devices 2025-01-02 08:32:35 +09:00
misyaguziya
146da42b2d 👍️[Update] Model : loggerの形式を統一 2024-12-27 18:24:00 +09:00
misyaguziya
3fa819df3f 👍️[Update] All : 不要なprintLogを削除 / なるべくtry exceptした場合にはerrorLogを保存するように変更 2024-12-16 23:38:05 +09:00
misygauziya
030b8a9f01 👍️[Update] Main : error logのトレースバックの処理を集約 2024-12-16 14:22:49 +09:00
misyaguziya
e68cdfbf19 🐛[bugfix] typo : removeLogFiles -> removeLog 2024-11-15 11:24:08 +09:00
misyaguziya
b37d9248c3 👍️[Update] Controller : process.logの削除機能を追加 2024-11-15 11:00:06 +09:00
misyaguziya
ca7ba5ce09 👍️[Update] Optimize : Init時のconfigの取得処理を変更 2024-10-26 01:24:37 +09:00
misyaguziya
a4ac82fe7e 👍️[Update] Controller : callbackSetUiLanguageの処理を修正
utils.getKeyByValueを削除
2024-09-13 16:08:58 +09:00
misyaguziya
9d7819b186 👍️[Update] Model : モデルのダウンロード処理をスレッドで進行するように変更 2024-09-04 14:19:21 +09:00
misyaguziya
7ae86268a9 👍️[Update] Model : tauri -> python のencode処理を整理 2024-09-03 18:18:58 +09:00
misyaguziya
fb0a4a8f26 👍️[Update] Model : tauri -> python のデータ部分をbase64でencodeするように修正 2024-09-03 14:47:22 +09:00
misyaguziya
4c2e4a6e04 👍️[Update] Model : status 348のlog を printLog関数に集約 2024-09-01 17:33:22 +09:00
misyaguziya
1be04cb571 👍️ [Update] pythonのメイン処理部分を移動/webui_mainloop.pyをビルドできるように修正 2024-07-27 01:30:36 +09:00