Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys-fs/jmtpfs-0.5-r1::gentoo - LIBMTP PANIC: Unable to initialize device terminate called after throwing an instance of MtpErrorCantOpenDevice #26

Open
mmokrejs opened this issue Jun 1, 2021 · 0 comments

Comments

@mmokrejs
Copy link

mmokrejs commented Jun 1, 2021

Hi,
this is maybe already reported by others, but I ran jmtpfs for the second time. I actually thought jmtpfs -u $DIR will unmount it. It does not but moreover, jtmpfs crashes.

$ jmtpfs -u /mnt/android/
Device 0 (VID=0b05 and PID=7772) is a Asus MemoPad 7 (ME572CL).
libusb_claim_interface() reports device is busy, likely in use by GVFS or KDE MTP device handling alreadyLIBMTP PANIC: Unable to initialize device
terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
  what():  Can't open device
Neúspěšně ukončen (SIGABRT) (core dumped [obraz paměti uložen])

...
Core was generated by `jmtpfs -u /mnt/android/'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007ff45c5de711 in raise () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7ff45c26b780 (LWP 20054))]
(gdb) where
#0  0x00007ff45c5de711 in raise () from /lib64/libc.so.6
#1  0x00007ff45c5c8536 in abort () from /lib64/libc.so.6
#2  0x00007ff45c846920 in __gnu_cxx::__verbose_terminate_handler () at /mnt/external/var/tmp/portage/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00007ff45c852e1a in __cxxabiv1::__terminate (handler=<optimized out>) at /mnt/external/var/tmp/portage/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/libsupc++/eh_terminate.cc:48
#4  0x00007ff45c852e85 in std::terminate () at /mnt/external/var/tmp/portage/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/libsupc++/eh_terminate.cc:58
#5  0x00007ff45c853118 in __cxxabiv1::__cxa_throw (obj=<optimized out>, tinfo=0x5607b4a13628 <typeinfo for MtpErrorCantOpenDevice>, dest=0x5607b49f7748 <MtpErrorCantOpenDevice::~MtpErrorCantOpenDevice()>)
    at /mnt/external/var/tmp/portage/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/libsupc++/eh_throw.cc:95
#6  0x00005607b49f3c80 in MtpDevice::MtpDevice (this=0x5607b5e81ca0, rawDevice=...) at MtpDevice.cpp:67
#7  0x00005607b49f7a0e in ConnectedMtpDevices::GetDevice (this=0x7fffea1abb60, index=0) at ConnectedMtpDevices.cpp:56
#8  0x00005607b49ef525 in main (argc=3, argv=0x7fffea1abfe8) at jmtpfs.cpp:447
(gdb) bt full
#0  0x00007ff45c5de711 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007ff45c5c8536 in abort () from /lib64/libc.so.6
No symbol table info available.
#2  0x00007ff45c846920 in __gnu_cxx::__verbose_terminate_handler () at /mnt/external/var/tmp/portage/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/libsupc++/vterminate.cc:95
        terminating = true
        t = <optimized out>
#3  0x00007ff45c852e1a in __cxxabiv1::__terminate (handler=<optimized out>) at /mnt/external/var/tmp/portage/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/libsupc++/eh_terminate.cc:48
No locals.
#4  0x00007ff45c852e85 in std::terminate () at /mnt/external/var/tmp/portage/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/libsupc++/eh_terminate.cc:58
No locals.
#5  0x00007ff45c853118 in __cxxabiv1::__cxa_throw (obj=<optimized out>, tinfo=0x5607b4a13628 <typeinfo for MtpErrorCantOpenDevice>, dest=0x5607b49f7748 <MtpErrorCantOpenDevice::~MtpErrorCantOpenDevice()>)
    at /mnt/external/var/tmp/portage/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/libsupc++/eh_throw.cc:95
        globals = <optimized out>
        header = 0x5607b5e6f500
#6  0x00005607b49f3c80 in MtpDevice::MtpDevice (this=0x5607b5e81ca0, rawDevice=...) at MtpDevice.cpp:67
        lock = {static m_mutex = {m_mutex = {__data = {__lock = 1, __count = 2, __owner = 20054, __nusers = 1, __kind = 1, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, 
              __size = "\001\000\000\000\002\000\000\000VN\000\000\001\000\000\000\001", '\000' <repeats 22 times>, __align = 8589934593}}}
        lock = {static m_mutex = {m_mutex = {__data = {__lock = 1, __count = 2, __owner = 20054, __nusers = 1, __kind = 1, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, 
              __size = "\001\000\000\000\002\000\000\000VN\000\000\001\000\000\000\001", '\000' <repeats 22 times>, __align = 8589934593}}}
#7  0x00005607b49f7a0e in ConnectedMtpDevices::GetDevice (this=0x7fffea1abb60, index=0) at ConnectedMtpDevices.cpp:56
        lock = {static m_mutex = {m_mutex = {__data = {__lock = 1, __count = 2, __owner = 20054, __nusers = 1, __kind = 1, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, 
              __size = "\001\000\000\000\002\000\000\000VN\000\000\001\000\000\000\001", '\000' <repeats 22 times>, __align = 8589934593}}}
#8  0x00005607b49ef525 in main (argc=3, argv=0x7fffea1abfe8) at jmtpfs.cpp:447
        device = {_M_t = {<std::__uniq_ptr_impl<MtpDevice, std::default_delete<MtpDevice> >> = {
              _M_t = {<std::_Tuple_impl<0, MtpDevice*, std::default_delete<MtpDevice> >> = {<std::_Tuple_impl<1, std::default_delete<MtpDevice> >> = {<std::_Head_base<1, std::default_delete<MtpDevice>, true>> = {<std::default_delete<MtpDevice>> = {<No data fields>}, <No data fields>}, <No data fields>}, <std::_Head_base<0, MtpDevice*, false>> = {_M_head_impl = 0x0}, <No data fields>}, <No data fields>}}, <No data fields>}}
        devices = {static m_instantiated = true, m_devs = 0x5607b5e54250, m_numDevs = 1}
        options = {listDevices = 0, displayHelp = 0, showVersion = 0, listStorage = 0, device = 0x0}
        args = {argc = 3, argv = 0x5607b5e4ef60, allocated = 1}
        requestedBusLocation = -1
        requestedDevnum = -1
        context = {_M_t = {<std::__uniq_ptr_impl<MtpFuseContext, std::default_delete<MtpFuseContext> >> = {
              _M_t = {<std::_Tuple_impl<0, MtpFuseContext*, std::default_delete<MtpFuseContext> >> = {<std::_Tuple_impl<1, std::default_delete<MtpFuseContext> >> = {<std::_Head_base<1, std::default_delete<MtpFuseContext>, true>> = {<std::default_delete<MtpFuseContext>> = {<No data fields>}, <No data fields>}, <No data fields>}, <std::_Head_base<0, MtpFuseContext*, false>> = {_M_head_impl = 0x0}, <No data fields>}, <No data fields>}}, <No data fields>}}
        result = 32767
(gdb) 

Maybe this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant