matteoserva / MegaFuse

MEGA client for linux, based on FUSE
Other
249 stars 79 forks source link

File list is obtained by using a File Manager of Debian 7.5 32bit causes abort. #14

Open wiserweb opened 10 years ago

wiserweb commented 10 years ago

The abort appears to occurs due to listing the mount point files with the GUI File Manager. If the ls command is issued from a Terminal then the list of files causes no issues and MegaFuse operates as expected.

Sample .mp4 file utilized for testing.

Terminal Displays:

searching node by path: /2014 BMW M4 Coupe - INTERIOR.mp4 node found in MEGA: /2014 BMW M4 Coupe - INTERIOR.mp4 resuming paused download11 resuming paused download searching node by path: /2014 BMW M4 Coupe - INTERIOR.mp4 node found in MEGA: /2014 BMW M4 Coupe - INTERIOR.mp4 topen riuscito download fallito: -20 /usr/include/c++/4.7/debug/safe_iterator.h:278:error: attempt to dereference a past-the-end iterator.

Objects involved in the operation: iterator "this" @ 0x0xb6339e38 { type = N11gnu_debug14_Safe_iteratorINSt8detail14_Node_iteratorISt4pairIKSs14file_cache_rowELb0ELb1EEENSt7debug13unordered_mapISsS5_St4hashISsESt8equal_toISsESaISsEEEEE (mutable iterator); state = past-the-end; references sequence with type `NSt7debug13unordered_mapISs14file_cache_rowSt4hashISsESt8equal_toISsESaISsEEE' @ 0x0xb6339e38 } Aborted

kurremkrarmerruk commented 10 years ago

Same problem in raspbmc. File listing in cli works fine but in gui i have exact the same error.

matteoserva commented 10 years ago

what happens if you disable the preview of the files? there should be an option in the gui. if you disabled the preview succesfully, megafuse should not show calls to topen()

kurremkrarmerruk commented 10 years ago

That's it! Thank you for help :)

Saoneth commented 9 years ago

I don't think that disabling previews will fix anything. topen will be called sooner on later on file which causes crash. @wiserweb could you specify some more info about file from your log? E.g. file size.

matteoserva commented 9 years ago

the problem is that the previews system that will cause a lot of topens() in a short time. MEGA will refuse to serve you if you make too many requests and megafuse hangs.

Saoneth commented 9 years ago

You're right. I tried 'touch' 300 files in bash script and it died on ~ 180th. I couldn't reproduce it on my fork though. I guess I fixed it somewhere?