Problems with MTP device

General discussions
dip
Posts: 21
Joined: Sat Jul 02, 2016 6:19 pm

Problems with MTP device

Post by dip »

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
dip
Posts: 21
Joined: Sat Jul 02, 2016 6:19 pm

Problems with MTP device

Post by dip »

The output with the error messages is too long to be posted. I enclose it as separate file.
dip
Posts: 21
Joined: Sat Jul 02, 2016 6:19 pm

Problems with MTP device

Post by dip »

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
dip
Posts: 21
Joined: Sat Jul 02, 2016 6:19 pm

Problems with MTP device

Post by dip »

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 '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
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

Problems with MTP device

Post by anonbeat »

MTP device support is being worked on right now... I will need some help testing it soon so your help is very welcome...

Thanks
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

Problems with MTP device

Post by anonbeat »

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...
leigh
Posts: 26
Joined: Thu Jul 28, 2016 8:10 am

Problems with MTP device

Post by leigh »

Hi
Any advance on this?
I am having similar problems (sansa clip+ mp3 with raspbian and samsung A3 with ubuntu 16.04)
Thanks
dip
Posts: 21
Joined: Sat Jul 02, 2016 6:19 pm

Problems with MTP device

Post by dip »

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.
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

Problems with MTP device

Post by anonbeat »

dip wrote: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
dip
Posts: 21
Joined: Sat Jul 02, 2016 6:19 pm

Problems with MTP device

Post by dip »

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.
Locked