Saving a large file turns the window black #112

Open
opened 2026-11-13 00:38:18 +00:00 by bmt · 1 comment
Member

build: anotherim-js 0.8.5

A file of about 720 MB from a Telegram contact. Save turns the app window black and the file is not saved

steps:

  1. Receive a file of about 700 MB, for example from a Telegram contact
  2. Press Save on the file card

expected: the save dialog opens, the file is written to disk and the window keeps working.
actual: the window turns black and nothing is saved.=

build: anotherim-js 0.8.5 A file of about 720 MB from a Telegram contact. Save turns the app window black and the file is not saved steps: 1. Receive a file of about 700 MB, for example from a Telegram contact 2. Press Save on the file card expected: the save dialog opens, the file is written to disk and the window keeps working. actual: the window turns black and nothing is saved.=
ann referenced this issue from a commit 2026-11-16 15:17:09 +00:00
A large file no longer passes through the page (forge #112, #113): a 720 MB file picked to send was read whole into the webview and handed to the shell as one IPC body (`file_keep`), which turned the sender's window black before the backend ever had the path, so the contact got no offer; a received one was fetched into the page (`file_take` as one IPC answer, the Cache API, a Blob) and Save read it again and handed it back whole (`file_save`), and the window turned black with nothing saved. Now a file to send goes to the shell a piece at a time (files.rs `file_begin`/`file_append`, 8 MiB a piece, 1 MiB on Android whose IPC makes numbers of it; `TransportFiles.write`, `writeFile`) for a send by path, an album, a direct send, the page's HTTP PUT and a backup to restore; a dropped file past 32 MiB on Linux is copied by the shell beside the shared files and held by its path (`file_dropped_hold`, the drop event's new `sizes`). A file drawn as a card is the backend's on the shells: its Download is `file download`, it shows as here by `file describe`, and Save, Open and Share write it out by path (`Attachments.toFile`: the page's own copy streamed piecewise when it holds one, else `file export`) and move it where the reader says (`file_save_from`, or quietly into Downloads by a hard link or a copy, never over a file there; on Android `fileAdopt` stages it for Downloads or the share sheet with no cap, the 512 MB bridge bound being about bytes in the page); a backup export is moved the same way. A browser keeps its files as before. Measured in the UI's tests (LF_MEASURE=1): the page held 1500 MiB to hand over a 750 MB file the old way and 48 MiB piecewise.
Owner

Fixed in 0.8.6. A large file is no longer brought into the app's window: the file card's Download
keeps it on disk, and Save moves it where you choose without reading it into the page. A 720 MB
file saves and the window keeps working.

Fixed in [0.8.6](https://dev.another.im/another-im/anotherim-js/releases/tag/v0.8.6). A large file is no longer brought into the app's window: the file card's Download keeps it on disk, and Save moves it where you choose without reading it into the page. A 720 MB file saves and the window keeps working.
ann referenced this issue from a commit 2026-11-16 16:21:53 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
another-im/anotherim-js#112
No description provided.