Problems with MTP device
  • I am just switching from Windows 10 to Linux Mint and are looking for a replacement of the powerful program MediaMonkey. Guayadeque looks very promsing. From all Linux players I tested it was the only one in which I can (in principle) transcode my flac files stored on my music server to my Android phone thereby defining a target folder on the device. So I thought this is great. However, I have the following problems:

    1. When I selected "copy to device" no files were in fact copied to my device. I finally found that the Android phone (which is connected as MTP device) is accessable in Linux mint under /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C004%5D/ (the 1000 is the current user ID).
    While Guayadeque finds the music under this path, when copying to this path it replaces the ":" between "mtp" and "host" with "_" since ":" is usually not allowed for folder/file names. Since the ":" is replaced the copy process does not work.
    The replacement takes place in "CopyTo.cpp" line 401. In my opinion the replacement of the special characters should only take place on the part of the path which is created from tags (which could contain illegal characters). The front part which represents the mounting point should not be amended.

    2. When I first start Guayadeque it finds the MTP mounted phone and I can define the music folder, the supported file formats and so in in the properties. When I then exit Guayadeque and restart it then the just found phone is displayed in grey and I cannot change its properties or use it. I find then unter the menu "Sources" a second version of my phone with the same name as before. I can then define the properties of this "new" player and use it until I exit Guayadeque. Each time I exit and restart Guayadeque the previous MTP devices are no longer accesible and a new copy is displayed which must be newly configured.

    3. When I start Guayadeque in an terminal I have some error messages. I don't know if they are critical but some say e.g. "Failed to create a temporary file name" or "can't open user configuration file". I post a part of the output in a further posting.

    At the moment I am running Linux Mint 17.3 and are waiting for the package upgrade to Linux Mint 18. Unfortunately, compiling fails in 17.3. However, I installed Linux Mint 18 in a virtual machine and could sucessfully build Guayadeque. By deleting the ":" from line 401 in CopyTo.cpp" I could avoid the problem mentioned in item 1 (although this is of course not the desired solution since then ":" in tags would also not replaced).

    Please look into the above problems since Guayadeque is really a great player and I would like to use it. I would like to do some testing if this would help you.

    Thanks a lot for your great program.
    Dieter
  • The output with the error messages is too long to be posted. I enclose it as separate file.
  • The Upload does not work, so I split and shortend the output a bit:

    00:40:23: Created the default equalizers file
    00:40:23: Created the default lyrics sources file
    00:40:23: Initialized locale ( de_DE )
    00:40:23: Error: The lyrics source configuration file was not found
    00:40:23: MediaViewer 'My Music' => '577850A6'
    00:40:23: Library Db Version 21
    00:40:23: SetViewMode -1 => 0

    (guayadeque:11266): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'height >= -1' failed

    (guayadeque:11266): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'height >= -1' failed
    00:40:23: guLibPanel::IniPanelData( 13101 )
    00:40:23: guLibPanel::DoTextSearch( '' )

    (guayadeque:11266): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed

    (guayadeque:11266): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed
  • 00:40:23: Updating the podcasts...
    00:40:36: Show Location for collection 0
    00:47:31: OnCollectionCommand 13115 0 15 1
    00:47:31: Error: No library directories to scan
    00:47:37: Indicators_Sound_Available() => 0
    00:47:45: guPrefDialog::OnLibCollectSelected( 0 )
    00:47:50: guPrefDialog::OnLibAddPathBtnClick( -1 )
    00:47:59: Setting new collection to 'My Music' => 'My Music'
    00:48:03: Show Location for collection 0
    00:48:06: OnCollectionCommand 13115 0 15 1
    00:48:06: Doing Library Update in /home/dieter/Musik/
    00:48:08: SOListBox::GetSelectedTracks <- 1<br />00:48:08: Track starts at 0 with length 287000
    00:48:08: StatusChanged( 0, 0, 0, 0 )
    00:48:11: Delete expired Cache elements done
    00:48:39: SOListBox::GetSelectedTracks <- 1<br />00:48:42: Track starts at 0 with length 289000
    00:49:26: StatusChanged( 1, 0, 0, 0 )
    00:50:00: Volume Added...
    00:50:00: Uri: mtp://[usb:001,004]/
    00:50:01: Mount Added...
    00:50:01: mount without volume?
    00:50:01: Mount Added...
    00:50:01: Mount Path: /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C004%5D/
    00:50:01: IconStr: 'phone'
    00:50:01: guMainFrame::OnMountMonitorUpdated
    00:50:01: Mount: 'D5803' => '/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C004%5D/'
    00:50:44: Sent Event to open collection
    00:50:44: OnCollectionCommand 13163 3 0 1
    00:50:44: MediaViewer Not Found for '57785329'
    00:50:44: MediaViewer 'D5803' => '57785329'
    00:50:44: Created collection folder '/home/dieter/.guayadeque/Collections/57785329'
    00:50:44: Unknown audio mime type : 'mp3'
    00:50:44: Unknown playlist mime type : 'jpeg'
    00:50:44: Error: Failed to create a temporary file name (error 13: Keine Berechtigung)
    00:50:44: Error: can't open user configuration file.
    00:50:44: Error: Failed to create a temporary file name (error 13: Keine Berechtigung)
    00:50:44: Error: can't open user configuration file.
    00:50:44: Library Db Version 0
    00:50:44: Updating database version to 21
    00:50:44: SetViewMode -1 => 0

    (guayadeque:11266): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'height >= -1' failed

    (guayadeque:11266): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'height >= -1' failed
    00:50:44: guLibPanel::IniPanelData( 13164 )
    00:50:44: guLibPanel::DoTextSearch( '' )

    (guayadeque:11266): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed

    (guayadeque:11266): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed

    (guayadeque:11266): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'height >= -1' failed
    00:50:44: Mount: 'D5803' => '/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C004%5D/'
    00:50:44: OnCollectionCommand 13177 3 14 0
    00:50:44: Error: No library directories to scan
    00:50:49: Show Location for collection 3
    00:50:51: OnCollectionCommand 13181 3 18 1
    00:51:16: MountPath: '/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C004%5D/'
    Folder: '/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C004%5D/SD-Karte/Music/'
    00:51:47: Error: Failed to create a temporary file name (error 13: Keine Berechtigung)
    00:51:47: Error: can't open user configuration file.
    00:51:47: Error: Failed to create a temporary file name (error 13: Keine Berechtigung)
    00:51:47: Error: can't open user configuration file.
    00:52:06: SOListBox::GetSelectedTracks <- 1<br />00:52:06: guMainFrame::OnCopyTracksToDevice... 1
    00:52:06: MediaViewer with collection id 'Jamendo' for CopyTracks found
    00:52:06: OnCollectionCommand 13177 3 14 0
    00:52:06: Error: Directory '/run/user/1000/gvfs/mtp_host=%5Busb%3A001%2C004%5D' couldn't be created (error 2: Datei oder Verzeichnis nicht gefunden)
    00:52:06: Error: can't open file '' (error 2: Datei oder Verzeichnis nicht gefunden)
    00:52:06: Error: Failed to load image from file "".
    00:52:06: Doing Library Update in /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C004%5D/SD-Karte/Music/
  • MTP device support is being worked on right now... I will need some help testing it soon so your help is very welcome...

    Thanks
  • The mtp device support is taking a bit longer than I expected...
    A fix for this have been uploaded... Please try it and let me know...

    Thank you for reporting this...
  • Hi
    Any advance on this?
    I am having similar problems (sansa clip+ mp3 with raspbian and samsung A3 with ubuntu 16.04)
    Thanks
  • I upgraded from Linux Mint 17.3 to 18 and am now able to compile Guayadeque from git. While the problem mentioned in item 1. of my previous post is solved in the current version (the ":" in the path is no longer replaced by an "_") the problem mentioned in item 2. is not solved.

    Further, if I try to transcode a flac or ogg file from my music library to an mp3 file on my phone (with copy to device and set the option to always convert to mp3) Guayadeque hangs and I have to kill it. If I choose an mp3 file of my library rather than a flac or ogg file which does not need transcoding copying works.
  • dip said:

    I upgraded from Linux Mint 17.3 to 18 and am now able to compile Guayadeque from git. While the problem mentioned in item 1. of my previous post is solved in the current version (the ":" in the path is no longer replaced by an "_") the problem mentioned in item 2. is not solved.

    Further, if I try to transcode a flac or ogg file from my music library to an mp3 file on my phone (with copy to device and set the option to always convert to mp3) Guayadeque hangs and I have to kill it. If I choose an mp3 file of my library rather than a flac or ogg file which does not need transcoding copying works.



    I finally decided that the mtp support will not be included as to play files the device must be mounted anyway so If it is already mounted why not use de already implemented device support?

    Will take a look at the transcoding problem..

    Thanks for your help
  • I don't understand your comment. I don't want to play files from the mtp device. I only want to copy my files from the music library to the device.

    With this I have two problems as previously mentioned:

    1. When transcoding is necessary, Guayadeque hangs.

    2. Guayadeque recognizes a connected device always only once. If you close Guayadeque with the device still connected, and then restart Guayadeque the previously detected devices is shown in grey and you cannot use it. A second version of fhe device is shown in the sources menu and you must newly configure this device which is very annoying. Please see my more detailed description in my first post above.
  • I also only want to copy the files to the device, but when I copy it says X files copied in 0:00 seconds and nothing is copied.
  • Please can you email me the console output when running guayadeque from console and doing the copy to the mtp device?

    I just did a copy to where transcoding is needed and it worked fine...

    Thanks for your help
  • @dip: about point 3 : Did you ever installed guayadeque ?

    If you compiled from source you need to do sudo make install at the end to copy the needed files in your system.
  • Yes, I always first run ./build and than sudo make install.

    I will email you the console output. If I can test anything else please let me know.
  • Console output has been sent by email.
  • Just pushed some changes to try to fix this. Can anyone test it and let me know ?

    Thanks in advance
  • Hi,

    Not sure if this helps but I tried right click and 'copy to' just said '12 files copied in 0:00 seconds and nothing was copied.

    I have 'copy to' path set at /run/user/1000/gvfs/mtp:host=%5Busb%3A002%2C004%5D/Card/Music/ and I had opened this phone external SD card through Thunar first.

    I have:

    Xubuntu 16.04
    cat /etc/issue returns 'Ubuntu 16.04.1 LTS \n \l'

    Guayadeque updated yesterday via:
    cd ~/guayadeque
    git pull
    ./build
    sudo make install
    Help About says Version 0.4.1-757e8ff

    I can:

    Connect Samsung A3 2016 phone (screen lock open)
    Open Thunar
    Click Samsung
    Takes a while then says 'cant mount' but opens at mtp://[usb:002,004]/Card/Music

    Open Guayadeque
    No portable device visible in sources pane

    However, I can play content from File Browser /run/user/1000/gvfs/mtp:host=%5Busb%3A002%2C004%5D/Card/Music

    But, if I don't access the phone SD card in Thunar first then there is nothing at /run/user/1000/gvfs in Guayadeque.

    Also, if I start Guayadeque when file browser tab was already open in the previous session then I don't have access to the file system (there are a couple of My Music entries and Podcasts but no file tree, there is a list of root directories in the RHS pane but clicking on them does nothing), and I have to close the file browser tab, close Guayadeque, restart Guayadeque and reopen the File Browser to access the files through Guayadeque.

    Hope this helps

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID

In this Discussion