Bug 227839 - /tmp full: remote files are not opened, local files are unpacked locally
Summary: /tmp full: remote files are not opened, local files are unpacked locally
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: Comicbook backend (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-20 19:07 UTC by Maciej Pilichowski
Modified: 2010-02-24 19:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Pilichowski 2010-02-20 19:07:42 UTC
Version:            (using KDE 4.4.0)
Installed from:    SuSE RPMs

In case of /tmp is full okular reports for remote files, that it cannot open a file (and no more info why), in case of local files, they are unpacked in place and then the unpacked files are not deleted.

Thus opening big comicbook (in case of local file) leads to mess in the directory.

When /tmp directory is full, with current design, okular should not continue with opening the file. However -- the wish for the bug -- it would be great if okular didn't use hard disk at all, and just read the file directly from the archive (after all comic book files are just archives).

Btw. with current design there is also a double bug in Okular settings -- aggressive mode says "keeps everything in memory". Unpacking files to disk is for sure not keeping everything in memory.
Comment 1 Pino Toscano 2010-02-20 19:31:48 UTC
I presume you are talking about CBR, right (please do specify it)?
In such case, the temporary files are deleted when the document is closed.
Comment 2 Maciej Pilichowski 2010-02-21 08:53:26 UTC
Yes, cbr.

Temporary files in /tmp are deleted, but temporary files in local directory are not. It is really double bug, not a wish (unless we count "please fix a bug" as wishes).

Please also note that running several okular instances leads to populating /tmp directory, and thus increasing chance to getting it full, and this to the bug I described above.
Comment 3 Pino Toscano 2010-02-21 10:15:20 UTC
(In reply to comment #2)
> Temporary files in /tmp are deleted, but temporary files in local directory are
> not. It is really double bug, not a wish (unless we count "please fix a bug" as
> wishes).

Okular creates a local temporary directory, extracts the cbr there and when closing it the temporary directory is removed as a whole.
I don't see any condition, even error one, do the temporary directory is not removed.

> Please also note that running several okular instances leads to populating /tmp
> directory, and thus increasing chance to getting it full, and this to the bug I
> described above.

Behaviour change -> wish.
Comment 4 Maciej Pilichowski 2010-02-21 14:26:40 UTC
> Okular creates a local temporary directory, extracts the cbr there and when
> closing it the temporary directory is removed as a whole.

I cannot confirm this. I have latest (KDE4.4) version and it unpacks files directly to the directory cbr exists and later (after closing) does _not_ delete any files.

I can only guess it has to do with content of cbr -- if it has directory inside or not.
Comment 5 Albert Astals Cid 2010-02-21 16:10:14 UTC
Maciej, can you stop guessing and describing the exact steps you do and the exact files you use so we can try to reproduce it?
Comment 6 Maciej Pilichowski 2010-02-21 16:43:58 UTC
1. /tmp full
2. cbr file with one subdirectory and files (*.jpg) placed in this subdirectory
3. execute: okular myfile.cbr
4. quit okular
5. the current directory is populated with files from the .cbr archive
Comment 7 Albert Astals Cid 2010-02-21 17:17:17 UTC
Please attach such cbr file
Comment 8 Maciej Pilichowski 2010-02-24 19:40:44 UTC
I cannot do this right now, so for now let's say with the wish part -- accessing the archive directly.