Sending a large file turns the window black #113

Open
opened 2026-11-13 00:42:06 +00:00 by bmt · 1 comment
Member

build: anotherim-js 0.8.5

A file of about 720 MB sent from an XMPP account to an XMPP account with Send files directly on. The sender's app window turns black. The recipient gets nothing, no file and no transfer offer.

steps:

  1. Turn on Send files directly
  2. Send a file of about 700 MB to an XMPP contact

expected: the file is sent, the sender's window keeps working and the recipient gets the file
actual: the sender's window turns black, the recipient gets nothing

build: anotherim-js 0.8.5 A file of about 720 MB sent from an XMPP account to an XMPP account with Send files directly on. The sender's app window turns black. The recipient gets nothing, no file and no transfer offer. steps: 1. Turn on Send files directly 2. Send a file of about 700 MB to an XMPP contact expected: the file is sent, the sender's window keeps working and the recipient gets the file actual: the sender's window turns black, the recipient gets nothing
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 (with libtacky 1.2.14). The file is handed to the engine a piece at a time instead
of all at once, so the window stays up and the transfer offer reaches the contact; the engine also
encrypts and decrypts direct and OMEMO files piece by piece now, so memory stays flat.

Fixed in [0.8.6](https://dev.another.im/another-im/anotherim-js/releases/tag/v0.8.6) (with libtacky 1.2.14). The file is handed to the engine a piece at a time instead of all at once, so the window stays up and the transfer offer reaches the contact; the engine also encrypts and decrypts direct and OMEMO files piece by piece now, so memory stays flat.
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#113
No description provided.