Giter Site home page Giter Site logo

Comments (6)

matteoserva avatar matteoserva commented on August 20, 2024

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.

pinkisemils avatar pinkisemils commented on August 20, 2024

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.

matteoserva avatar matteoserva commented on August 20, 2024

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.

pinkisemils avatar pinkisemils commented on August 20, 2024

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.

SecareLupus avatar SecareLupus commented on August 20, 2024

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.

NOBLES5E avatar NOBLES5E commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.