Skip to content

vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) #322

Closed
@benstox

Description

@benstox

Hello,

I am getting this error when I run android-file-transfer, built at commit 5ae0221, tag continuous, version 4.3.0. I am running Ubuntu 22.04.1 LTS. It is trying to connect to a Motorola "Moto G (3rd Generation)", Android version 6.0.1.

An UI window opens with the text: "Could not open MTP session: vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)"

And I get the terminal output:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
upload worker started
current text color value:  0 , guessed theme:  "light"
scan
probing device...
probing device...
probing device...
probing device...
device found, opening session...
open session/device info failed:  "vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)"
open session/device info failed:  "vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)"
open session/device info failed:  "vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)"

Running aft-mtp-cli gives:

Device::Find failed:vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions