Cannot play track with a # in the file name

Bug #1478398 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Music App
New
Undecided
Unassigned

Bug Description

rc-proposed/meizu.en arale #68

The music app doesn't play tracks with a # in the file name.

Test Case
1. Copy a valid music file to ~/Music/ on the device
2. On the device copy the file and give it a name that contains a #
3 Play both tracks

Actual Result
Only the original track plays, the copy doesn't

Expected Result
Both track can be played whatever the name is.

When I play the track with a # the following message is displayed in music-app logs

=====
Local file URI: "file:///home/phablet/Music/hol_baumann #1 human.mp3"
Setting media to: QUrl( "file:///home/phablet/Music/hol_baumann #1 human.mp3" )
void AalMetaDataReaderControl::onMediaChanged(const QMediaContent&)
void AalMetaDataReaderControl::updateMetaData()
Doing a mediascanner lookup of file: "///home/phablet/Music/hol_baumann #1 human.mp3"
Caught runtime exception from mediascanner: Could not find media ///home/phablet/Music/hol_baumann #1 human.mp3
virtual void AalMediaPlayerControl::play()

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const

virtual void core::ubuntu::media::ServiceStub::pause_other_sessions(core::ubuntu::media::Player::PlayerKey)
virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const

Actually calling m_hubPlayerSession->play()
PlaybackStatusChanged signal arrived via the bus (Status: PlaybackStatus::ready)
Error signal arrived via the bus (Error: 1)
** Media playback error: 1
Error signal arrived via the bus (Error: 1)
** Media playback error: 1
Error signal arrived via the bus (Error: 1)
** Media playback error: 1
Error signal arrived via the bus (Error: 1)
** Media playback error: 1
virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const
=====

The message "Error signal arrived via the bus (Error: 1)" is not printed for tracks that play successfully.

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1449790, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Also I'm currently writing a test suite which checks for all possible values in filename as we speak :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.