Comments (6)
thanks for the report. the topen error -20 means that you are trying to write a non writable file. I suspect that your application is trying to write a temporary file with some strange permissions.
I'll fix the bug.
I added the printf for quick debugging, they will be removed in future releases.
there's already a log() function that will replace every printf and cout :)
from megafuse.
Thank you for the rather instant reply. C++11 didn't fix anything though :(
And as far as I know of, cmus shouldn't write anything to the files or directories. In fact, if I set the mountpoint to be read only after I've mounted it, it still crashes, even though Cmus should crash or at least stop scanning if it encountered a read problem due to a permission check. It always happens with the same file. I renamed the parent directory, and it turns out that you shouldn't use whitespaces. Messes everything up. So it's a problem with dealing with paths. Why don't you try and use boost path/IO libraries ?
from megafuse.
the paths are handled directly by MEGA, it's probably a bug in their API.
I'll check and open a ticket with them.
Thanks for finding the source of the issue.
The code is written in C++11, so you were already using it even if not specified explicitly.
from megafuse.
I did a bulk rename for the whole "drive", and I still get the same error every time I try to add the drive to my cmus library. Maybe it's just my files that have problems. Would you care enough to test it ?
from megafuse.
I'm not sure if this is related, but I get a similar error when I try to open the folder in gnome's file viewer. The drive is fully interactive from the command line, but gnome's file manager kills it with this error:
/usr/include/c++/4.8/debug/vector:346:error: attempt to subscript container
with out-of-bounds index 0, but container only holds 0 elements.
Objects involved in the operation:
sequence "this" @ 0x0x7ff3b4000f48 {
type = NSt7__debug6vectorIbSaIbEEE;
}
Aborted (core dumped)
from megafuse.
I get a similar
topen riuscito
download fallito: -20
/usr/include/c++/6.1.1/debug/safe_iterator.h:284:
Error: attempt to dereference a past-the-end iterator.
Objects involved in the operation:
iterator "this" @ 0x0x7f207c81f970 {
type = __gnu_debug::_Safe_iterator<std::__detail::_Node_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, file_cache_row>, false, true>, std::__debug::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, file_cache_row, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, file_cache_row> > > > (mutable iterator);
state = past-the-end;
references sequence with type 'std::__debug::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, file_cache_row, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, file_cache_row> > >' @ 0x0x2426aa0
}
fish: “MegaFuse” terminated by signal SIGABRT (Abort)
error while using cmus to add the music in mega.
from megafuse.
Related Issues (20)
- Fix for compile in Debian 9
- mount directory disapears
- canot build for debain 64
- Compilation error on Debian 10 x86 HOT 1
- FATAL: Request failed (Expired) HOT 5
- instruction to compile?
- Bulid error in Ubuntu Server 16.04
- error in row cpp HOT 3
- libfreeimage.dylib when using the bin file for OSX
- 'fuse' not found so compiling cannot continue HOT 1
- Compile how to HOT 1
- download fallito: -5 HOT 1
- Is this repo dead? HOT 11
- MegaFuse arguments HOT 3
- megafuse_symlink
- Inconsistent behavior when removing and possibly modifying symlinks
- Needs additional tools and an include to build on Ubuntu 18.04 HOT 3
- Attribute to upldaed files is -555 & samba issue HOT 1
- installation failed HOT 1
- error when open remote folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megafuse.