Repository navigation
fix(voice): report unpack progress separately and precheck free space… - #217
Merged
Merged
Conversation
… for GigaAM download Unpacking the ~226 MB GigaAM archive takes minutes on DiLink 3 with zero network activity, but the UI kept showing "Downloading" frozen at 99%, reading as a hang. Progress now tracks archive read position through the unpack and the UI labels that phase "Распаковка…". Also precheck free space before pulling the first byte: the download previously died ~450 MB and several minutes in with an opaque "unpack produced incomplete model dir" error when storage ran out mid-stream. Now it fails fast with the required/available MB shown to the user. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Owner
|
Спасибо, влил в v3.17.4. Одну вещь поправил сверху: если машина выключилась посреди загрузки, в кэше оставались архив и staging-каталог, и проверка места отказывала на каждой следующей попытке, хотя после их удаления места хватало. Теперь остатки чистятся до замера. Плюс разбил untarFlatten на две функции, чтобы прошёл detekt. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… для загрузки GigaAM
Распаковка архива GigaAM (около 226 МБ) на DiLink 3 занимает несколько минут, однако интерфейс «зависал» на статусе «Downloading» (Загрузка) при достижении 99%, создавая впечатление сбоя. Теперь прогресс отслеживается по ходу распаковки, а этот этап отображается в интерфейсе как «Распаковка…».
Также добавлена предварительная проверка свободного места перед началом загрузки: ранее процесс прерывался примерно через 450 МБ и несколько минут работы с невнятной ошибкой «unpack produced incomplete model dir» (распаковка привела к созданию неполной директории модели), если память заканчивалась в процессе скачивания. Теперь система сразу сообщает об ошибке, отображая пользователю требуемый и доступный объем памяти (в МБ).
Протестировано на Song Plus Dm-i 2022 DiLink 3 13 чипсет.