android-file-transfer-linux icon indicating copy to clipboard operation
android-file-transfer-linux copied to clipboard

4.2 crashes when starting to download

Open jonasmalacofilho opened this issue 3 years ago • 0 comments

When starting to download a particular directory with 4.2 (from the Arch repository), the GUI crashes. In the console:

device found, opening session...
device info "samsung"   "SM-G991B"
mtpz-data path:  "/home/jonas/.mtpz-data"
switching to storage id  65537
session opened, starting
downloading to  "/tmp/test"
found  1  objects in  "/tmp/test/com.whatsapp"
found  7  objects in  "/tmp/test/com.whatsapp/WhatsApp"
found  8  objects in  "/tmp/test/com.whatsapp/WhatsApp/Databases"
found  8  objects in  "/tmp/test/com.whatsapp/WhatsApp/Backups"
found  11  objects in  "/tmp/test/com.whatsapp/WhatsApp/Media"
found  18  objects in  "/tmp/test/com.whatsapp/WhatsApp/.Shared"
found  0  objects in  "/tmp/test/com.whatsapp/WhatsApp/.StickerThumbs"
found  0  objects in  "/tmp/test/com.whatsapp/WhatsApp/.trash"
found  0  objects in  "/tmp/test/com.whatsapp/WhatsApp/.Thumbs"
found  121  objects in  "/tmp/test/com.whatsapp/WhatsApp/Media/WhatsApp Voice Notes"
found  1  objects in  "/tmp/test/com.whatsapp/WhatsApp/Media/.Statuses"
found  2  objects in  "/tmp/test/com.whatsapp/WhatsApp/Media/WhatsApp Video"
found  28  objects in  "/tmp/test/com.whatsapp/WhatsApp/Media/WhatsApp Audio"
found  23  objects in  "/tmp/test/com.whatsapp/WhatsApp/Media/.Links"
found  0  objects in  "/tmp/test/com.whatsapp/WhatsApp/Media/WallPaper"
10010 ms since the last poll call
terminate called after throwing an instance of 'mtp::usb::TimeoutException'
  what():  timeout reaping usb urb
[1]    128170 abort (core dumped)  android-file-transfer

I haven't been able to look into it in more detail yet, but here's the backtrace from the coredump:

Core was generated by `android-file-transfer'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f620b538d22 in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f62084bc840 (LWP 128170))]
(gdb) bt
#0  0x00007f620b538d22 in raise () at /usr/lib/libc.so.6
#1  0x00007f620b522862 in abort () at /usr/lib/libc.so.6
#2  0x00007f620b77c802 in __gnu_cxx::__verbose_terminate_handler() () at /build/gcc/src/gcc/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00007f620b788c8a in __cxxabiv1::__terminate(void (*)()) (handler=<optimized out>) at /build/gcc/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48
#4  0x00007f620b788cf7 in std::terminate() () at /build/gcc/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:58
#5  0x00007f620b788fe1 in __cxxabiv1::__cxa_rethrow() () at /build/gcc/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:133
#6  0x000055f162b190d8 in  ()
#7  0x000055f162b8a1b5 in mtp::usb::Device::ReadBulk(std::shared_ptr<mtp::usb::Endpoint> const&, std::shared_ptr<mtp::IObjectOutputStream> const&, int) ()
#8  0x000055f162b7192b in mtp::usb::BulkPipe::Read(std::shared_ptr<mtp::IObjectOutputStream> const&, int) ()
#9  0x000055f162b5bf54 in mtp::PipePacketer::Read(unsigned int, std::shared_ptr<mtp::IObjectOutputStream> const&, mtp::ResponseType&, std::vector<unsigned char, std::allocator<unsigned char> >&, int) ()
#10 0x000055f162b5c995 in mtp::PipePacketer::Read(unsigned int, std::vector<unsigned char, std::allocator<unsigned char> >&, mtp::ResponseType&, std::vector<unsigned char, std::allocator<unsigned char> >&, int) ()
#11 0x000055f162b5f5d8 in mtp::Session::Get(mtp::PipePacketer&, unsigned int, std::vector<unsigned char, std::allocator<unsigned char> >&, int) ()
#12 0x000055f162b699fc in std::vector<unsigned char, std::allocator<unsigned char> > mtp::Session::RunTransactionWithDataRequest<unsigned int&, unsigned int, unsigned int&>(int, mtp::OperationCode, std::vector<unsigned char, std::allocator<unsigned char> >&, std::shared_ptr<mtp::IObjectInputStream> const&, unsigned int&, unsigned int&&, unsigned int&) ()
#13 0x000055f162b65759 in mtp::Session::GetObjectHandles(mtp::StorageId, mtp::ObjectFormat, mtp::ObjectId, int) ()
#14 0x000055f162b2b971 in FileUploader::download(QString const&, QVector<mtp::ObjectId> const&) ()
#15 0x000055f162b220ef in MainWindow::downloadFiles(QString const&, QVector<mtp::ObjectId> const&) ()
#16 0x000055f162b233f2 in MainWindow::downloadFiles(QVector<mtp::ObjectId> const&) ()
#17 0x000055f162b235dd in MainWindow::downloadFiles() ()
#18 0x00007f620bbeb800 in  () at /usr/lib/libQt5Core.so.5
#19 0x00007f620cb35203 in QAction::triggered(bool) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007f620cb37f18 in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt5Widgets.so.5
#21 0x00007f620ccc5103 in  () at /usr/lib/libQt5Widgets.so.5
#22 0x00007f620cccce39 in  () at /usr/lib/libQt5Widgets.so.5
#23 0x00007f620cb7f0be in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#24 0x00007f620cb3bd62 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#25 0x00007f620cb43ac9 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#26 0x00007f620bbb441a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#27 0x00007f620cb4257b in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /usr/lib/libQt5Widgets.so.5
#28 0x00007f620cb99593 in  () at /usr/lib/libQt5Widgets.so.5
#29 0x00007f620cb9bdb5 in  () at /usr/lib/libQt5Widgets.so.5
#30 0x00007f620cb3bd62 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#31 0x00007f620bbb441a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#32 0x00007f620bf8d1f0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#33 0x00007f620bf627d5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#34 0x00007f62080bafcc in  () at /usr/lib/libQt5XcbQpa.so.5
#35 0x00007f620a82652c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#36 0x00007f620a87a7b9 in  () at /usr/lib/libglib-2.0.so.0
#37 0x00007f620a823c11 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#38 0x00007f620bc0d046 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#39 0x00007f620bbb2d8c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#40 0x00007f620ccca869 in  () at /usr/lib/libQt5Widgets.so.5
#41 0x00007f620ccca98f in QMenu::exec(QPoint const&, QAction*) () at /usr/lib/libQt5Widgets.so.5
#42 0x000055f162b22b67 in MainWindow::showContextMenu(QPoint const&) ()
#43 0x00007f620bbeb800 in  () at /usr/lib/libQt5Core.so.5
#44 0x00007f620cb63a76 in QWidget::customContextMenuRequested(QPoint const&) () at /usr/lib/libQt5Widgets.so.5
#45 0x00007f620cb7ff64 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#46 0x00007f620cc2e94f in QFrame::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#47 0x00007f620bbb4172 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#48 0x00007f620cb3bd51 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#49 0x00007f620cb433e5 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#50 0x00007f620bbb441a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#51 0x00007f620cb991ef in  () at /usr/lib/libQt5Widgets.so.5
#52 0x00007f620cb9bdb5 in  () at /usr/lib/libQt5Widgets.so.5
#53 0x00007f620cb3bd62 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#54 0x00007f620bbb441a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#55 0x00007f620bf8d1f0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#56 0x00007f620bf627d5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#57 0x00007f62080bafcc in  () at /usr/lib/libQt5XcbQpa.so.5
#58 0x00007f620a82652c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#59 0x00007f620a87a7b9 in  () at /usr/lib/libglib-2.0.so.0
#60 0x00007f620a823c11 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#61 0x00007f620bc0d046 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#62 0x00007f620bbb2d8c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#63 0x00007f620bbbb2f4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#64 0x000055f162b1b0eb in main ()

jonasmalacofilho avatar Dec 20 '21 05:12 jonasmalacofilho