Hi, since I assumed previously that it's another classic PEBKAC case, I had been reluctant to post about this behavior before. But now I got some good replies even from (usually very knowledgeable) stackexchange community - for this please see here:
Hence, I do no longer think I'm making this up. In particular, mind this part of a user's post:
"A very quick look around the pcmanfm's source in libfm seems to show that the program may try to copy the file contents into its internal clipboard which is obviously not the way to do it."
UH-OH. And once that clipboard can no longer breathe, these lock-ups will happen.
Again, in a nutshell:
Expected:
Actual:
Assumption:
Behavior might not be the same if you copy ext3 to ext4 or extX to extY with X equal to Y.
I often have to copy NTFS-NTFS or NTFS-ext_something or ext_something-NTFS.
So it might be cross-related to FUSE backend.
And the way out? Power-cycle the machine. No other option.
SERVER USERS: Way too critical to copy huge amounts of files currently with PCManFM. For instance, think of system images. Absolutely stay to the console and good old 'cp' to be on the safe shore. Works in 100% of cases.
Bug category: ** CRITICAL **
(Despite that, I only raised Priority by +1.)
Anonymous
Thank you very much for reporting this but unfortunately, I have to disappoint you - only clipboard operation that pcmanfm does itself is copying paths to clipboard (just a text like "/home/user/file-to-copy"), and only way libfm provides files to clipboard is their paths (as stated in general specification for "text/uri-list"), it does not support full-file or data copying at all.
As for file copying operations, PCManFM uses LibFM, and LibFM uses only GLib function g_file_copy() for it so if it hangs, pcmanfm cannot do anything with it as it never uses any own file copying functions. I'm sorry.
Last edit: Lonely Stranger 2014-11-20
Thanks anyway for your reply. Well, then probably
g_file_copy()is at fault here indeed.Rats.
Hrm. To debug this further, I'd be in need of a very verbose pcmanfm build with lots of debugging noise. (just the thing one would profoundly HATE with KDE applications starting with K, this is what I do require here ;))
Any chance I could get hold of one?
Last edit: Andreas E 2015-11-15
I'm sorry for very late answer. When I debug such things I literally just compile libfm using '--enable-debug' and '--enable-demo' switches to configure script, probably even add few extra debug lines (like g_debug("starting copy file '%s'",fm_file_info_get_disp_name(fi));) into relevant code area, then start
in the libfm sources root. The demo app is practically stripped-down version of pcmanfm (no tabs, no desktop, no per-folder config, etc.) so it does almost everything pcmanfm can do but even if it crashes it will not affect your current desktop handled with pcmanfm.
Thank you very much.
After reading your description I remembered a thing that some virtual file system emulators (like few ones that mc uses) absorb whole file into memory from the source when doing copy, and then release it to the destination. Just to illustrate that PCManFM has no problems with files copying I've copied a 14 GB file (Blu-Ray disk image) from NFS partition to local one (your mentioned case of other-filesystem-to-Ext). The resources usage of PCManFM (which also handles my desktop, of course) in middle of that process:
so you can see neither memory nor CPU is used much. I would blame FUSE for your troubles, the most probably it is what eats your memory.
Yes, me too! The culprit must be FUSE. However, when I cp these insanely large files without using PCManFM, things work perfectly.
They would be copied using FUSE as well, wouldn't they?
BTW, thanks for not forgetting about this issue from last year. :)
Last edit: Andreas E 2015-05-12
How exactly do you use cp for these files? Are they mounted somewhere? And what is a difference when you copy them using pcmanfm? Are you in exactly the same folder or in some other one like virtual mounted folder? If they are different then can you test from exactly the same folder where you execute cp? That may change everything as well, you know. Thank you.
Problem still persists...
I'm aware that you can't do much from your side, but WTH - your support is excellent. That problem does fascinate you technically in some way yourself, right? :) That'd not surprise me; you may even come across complaints from kernel's side. Alas,
tail -f /var/log/messages, though incredibly handy, has become a thing of the past in the 'Buntu world. This bugs me because sometimes splitting of messages into categories (kern,authetc.) gets clumsy. OK,dmesgworks, but never "live", lacking the ability to add messages in real-time that might give you a clue of where to look for the issue.Anyways...
Finally I could convince myself to formulate my problem for the NTFS-3G guys @
tuxera.com.Despite a rather poor response rate, frequency of users who read it has been amazingly high. Take a look at my latest post. Screenshot shows PcManFM while copying stuff, getting stuck pretty early - and a snapshot of
topat that very instant. It also contains a very detailed description of the issue.jpaassumed that PcManFM (plus some morelibfm-based file managers) would open too many file handles at the same time. Yes, perhaps that's the reason why my (admittedly low!) physical memory gets depleted in no time. Andlibfmvisibly despises my swap, just look...;)http://tuxera.com/forum/viewtopic.php?f=2&t=31007
Last edit: Andreas E 2015-11-23