Music App crashes when starts

Bug #1595288 reported by slash
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Music App
New
Undecided
Unassigned
media-hub (Ubuntu)
New
Undecided
Unassigned

Bug Description

Gents,

Thanks for the application, i'm a daily user of it simple and nice.

I'm encountering daily crash on the app when i try to launch it.
I tried to launch it again without success, the only way to bypass it is to reboot the phone 1 or 2 times.

Most of the time, I launch the app when it already connected to a bluetooth speaker.

Where i can found the log for it ?

PS : I might have the same issue with podbird, so might be behind your app the issue.

On Mako Rc-proposed up to date.

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.

Sounds like possible media-hub has crashed. Retrieving these logs could might assist in discovering the issue:
/home/phablet/.cache/upstart/application-click-com.ubuntu.music_music_2.4.1003.log (or similar)
/home/phablet/.cache/upstart/media-hub.log
/home/phablet/.cache/upstart/mediascanner-2.0.log

Make sure that you have had the issue occur and not restarted before collecting the logs, as the logs get rotated on each reboot.

Also it maybe worth checking /var/crash for any recent crashes.

Revision history for this message
slash (slash-tux) wrote :

So it happened again, without bluetooth connexion.
The only way to solve it was to remove cache and config and then reboot. Only a reboot didn't helped.

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

From those logs files I have not yet spotted any obvious crashes, so this could be related to stale lock files (bug 1576989). When this next occurs, before removing the cache and config directories check for .lock files and try just removing these first to see if this resolves the issue. If it does, this bug is then a duplicate of bug 1576989.

Revision history for this message
slash (slash-tux) wrote :

The app starts to stop while the screen goes black...so I rebooted the phone then impossible to restart the app. I've check .lock file but could find it.

The music app log
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene: unrecognized option '--url='
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene: invalid option -- 'I'
could not retrieve client config: "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.103" (uid=32011 pid=18167 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene app/") interface="com.canonical.Thumbnailer" member="ClientConfig" error name="(unset)" requested_reply="0" destination="com.canonical.Thumbnailer" (uid=32011 pid=18242 comm="/usr/lib/arm-linux-gnueabihf/thumbnailer/thumbnail")" (using default values)
virtual QMediaService* AalServicePlugin::create(const QString&) "org.qt-project.qt.mediaplayer"
[TT 2016-06-29 18:56:59.579803] [service.cpp:29@instance]
Failed to start a new media-hub player session: org.freedesktop.DBus.Error.ServiceUnknown: The name core.ubuntu.media.Service was not provided by any .service files
Failed to create a new media player backend. Video playback will not function.

Could not finish contructing new AalMediaPlayerService instance since m_hubPlayerSession is NULL
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.119" (uid=32011 pid=18167 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene app/") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1781 comm="NetworkManager ")"
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.119" (uid=32011 pid=18167 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene app/") interface="org.freedesktop.NetworkManager" member="GetDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1781 comm="NetworkManager ")"
"Object path cannot be empty"
virtual bool QMediaPlaylist::setMediaObject(QMediaObject*)
void QDeclarativeAudio::setPlaylist(QDeclarativePlaylist*)
could not open containers config file "/home/phablet/.local/share/libertine/ContainersConfig.json"
virtual void QDeclarativeAudio::componentComplete()
virtual void QDeclarativeAudio::componentComplete() - Calling setMedia
void QMediaPlayer::setMedia(const QMediaContent&, QIODevice*)
void QMediaPlayerPrivate::setPlaylist(QMediaPlaylist*)
void QMediaPlayerPrivate::setPlaylist(QMediaPlaylist*) - playlist->mediaCount(): 0
virtual bool QMediaPlaylist::setMediaObject(QMediaObject*)
void QMediaPlaylistPrivate::syncControls(QMediaPlaylistControl*, QMediaPlaylistControl*)
Track list doesn't exist so can't clear it!
virtual void AalMediaPlaylistControl::setPlaybackMode(QMediaPlaylist::PlaybackMode)
PlaybackMode: Loop

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

From that specific error message, it appears that media-hub does not exist. This is also now the second time I have heard an issue about starting the music-app after using bluetooth headphones, there I'm going to add media-hub to this bug.

Revision history for this message
slash (slash-tux) wrote :
Download full text (23.2 KiB)

Correct Andrew,

When i launch in a terminal media-hub-server, no problem with the app.

phablet@ubuntu-phablet:~$ media-hub-server
Using default log level: info
Log level: II
[DD 2016-07-04 03:17:53.076999] [call_monitor.cpp:181@operator()] CallMonitor: Creating TelepathyBridge
[DD 2016-07-04 03:17:58.693627] [service_skeleton.cpp:136@handle_create_session] Session created by request of: :1.177, key: 0, uuid: e9a45491-0589-409a-ac4e-fb7ba39c66c8, path: /core/ubuntu/media/Service/sessions/0

[II 2016-07-04 03:17:58.758849] [playbin.cpp:407@set_audio_stream_role] Audio stream role: props,media.role=multimedia
[WW 2016-07-04 03:17:58.759337] [playbin.cpp:416@set_audio_stream_role] Couldn't set audio stream role - couldn't get audio_sink from pipeline
[DD 2016-07-04 03:17:58.761199] [ubuntu.cpp:111@Context] apparmor profile name: com.ubuntu.music_music_2.4.1003
[DD 2016-07-04 03:17:58.761443] [ubuntu.cpp:112@Context] is_unconfined(): false
[DD 2016-07-04 03:17:58.761718] [ubuntu.cpp:113@Context] has_package_name(): true
[DD 2016-07-04 03:17:58.761992] [service_skeleton.cpp:147@operator()] -- app_name='com.ubuntu.music_music_2.4.1003', attached
[TT 2016-07-04 03:18:00.576032] [player_implementation.cpp:910@stop]
[DD 2016-07-04 03:18:00.577130] [playbin.cpp:539@set_state_and_wait] Requested state change.
[DD 2016-07-04 03:18:00.577680] [player_implementation.cpp:129@operator()] Setting state for parent: 0xac701524
[TT 2016-07-04 03:18:00.578138] [engine.cpp:462@stop]
[II 2016-07-04 03:18:00.578626] [player_implementation.cpp:193@operator()] Emiting playback_status_changed signal: PlaybackStatus::stopped
[TT 2016-07-04 03:18:00.596236] [track_list_implementation.cpp:378@reset]
[II 2016-07-04 03:18:00.596938] [player_implementation.cpp:328@update_mpris_properties] Updating MPRIS TrackList properties:
[II 2016-07-04 03:18:00.597335] [player_implementation.cpp:329@update_mpris_properties] Tracks: 0
[II 2016-07-04 03:18:00.598067] [player_implementation.cpp:330@update_mpris_properties] has_previous: 0
[II 2016-07-04 03:18:00.599013] [player_implementation.cpp:331@update_mpris_properties] has_next: 0
[II 2016-07-04 03:18:00.607803] [player_implementation.cpp:561@operator()] LoopStatus: LoopStatus::playlist
[TT 2016-07-04 03:18:00.819859] [track_list_skeleton.cpp:159@handle_add_tracks_with_uri_at]
[DD 2016-07-04 03:18:00.820988] [ubuntu.cpp:111@Context] apparmor profile name: com.ubuntu.music_music_2.4.1003
[DD 2016-07-04 03:18:00.821232] [ubuntu.cpp:112@Context] is_unconfined(): false
[DD 2016-07-04 03:18:00.821446] [ubuntu.cpp:113@Context] has_package_name(): true
[DD 2016-07-04 03:18:00.833654] [ubuntu.cpp:167@authenticate_open_uri_request] context.profile_name(): com.ubuntu.music-music
[DD 2016-07-04 03:18:00.833898] [ubuntu.cpp:168@authenticate_open_uri_request] parsed_uri.path: /home/phablet/Music/Android/Johnny Flynn/Country Mile/CD 1/01. Country Mile.mp3
[DD 2016-07-04 03:18:00.834509] [ubuntu.cpp:167@authenticate_open_uri_request] context.profile_name(): com.ubuntu.music-music
[DD 2016-07-04 03:18:00.834692] [ubuntu.cpp:168@authenticate_open_uri_request] parsed_uri.path: /home/phablet/Music/Android/Johnny Flynn/Country Mile/CD 1/02. Aft...

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.