matteoserva / MegaFuse

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

download fallito: -5 #89

Open DavidParkin opened 7 years ago

DavidParkin commented 7 years ago

[------------------------------------------########] 2 MB, 0 KB/s, available_b/size 0/2284826 0/2284826 download fallito: -5

Thread 2 "MegaFuse" hit Breakpoint 5, MegaFuseApp::transfer_failed (this=0x818a220, td=0x0, filename=..., e=API_EFAILED) at src/MegaFuseApp.cpp:266 266 it->second.status = file_cache_row::INVALID; gdb$ p filename $7 = (std::cxx11::string &) @0x81aa2a8: {static npos = 0xffffffff, _M_dataplus = {<std::allocator> = {<gnu_cxx::new_allocator> = {}, }, _M_p = 0x81aa2b0 "4821"}, _M_string_length = 0x4, {_M_local_buf = "4821\000g\000\000\000\000\000\000\000\000\000", _M_allocated_capacity = 0x31323834}} gdb$ p filename.c_str() $8 = 0x81aa2b0 "4821" I guess from the printfs that you are aware of problems in this area but I couldn't find an issue. Finally ends Error: attempt to dereference a past-the-end iterator.

  1. Can I supply more info?
  2. Any workarounds? The data is a Borg backup and the file is recently created, the last one written and appears to be incomplete.
tomakkermans commented 6 years ago

Similar error here, with this terminal output: (.....) topen riuscito download fallito: -20 /usr/include/c++/7/debug/safe_iterator.h:283: Error: attempt to dereference a past-the-end iterator.

Objects involved in the operation: iterator "this" @ 0x0x7fe9150248b0 { type = gnu_debug::_Safe_iterator<std::detail::_Node_iterator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, file_cache_row>, false, true>, std::__debug::unordered_map<std::cxx11::basic_string<char, std::char_traits, std::allocator >, file_cache_row, std::hash<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::equal_to<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > 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, std::allocator >, file_cache_row, std::hash<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::equal_to<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, file_cache_row> > >' @ 0x0x55974e994fd0 } Aborted (core dumped)