downloader task NullPointerExeption

Bug #683851 reported by Chad Miller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Android Music
Confirmed
High
Unassigned

Bug Description

Line

     1 I/Util ( 176): Copied /sdcard/subsonic/music/Unknown artist/Unknown album/00-Unknown title.mp3.0.partial to /sdcard/subsonic/music/Unknown artist/Unknown album/00-Unknown title.mp3
     2 W/AudioFlinger( 31): write blocked for 83 msecs
     3 E/Database( 130): Error inserting is_music=1 artist_id=3 mime_type=audio/mpeg _display_name=00-Unknown title.mp3 title=Unknown title title_key _data=/sdcard/subsonic/music/Unknown artist/Unknown album/00-Unknown title.mp3 album_id=3 track=0 year=0 date_added=1291234809
     4 E/Database( 130): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed
     5 E/Database( 130): at android.database.sqlite.SQLiteStatement.native_execute(Native Method)
     6 E/Database( 130): at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:66)
     7 E/Database( 130): at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1313)
     8 E/Database( 130): at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1173)
     9 E/Database( 130): at com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:1310)
    10 E/Database( 130): at com.android.providers.media.MediaProvider.insert(MediaProvider.java:1193)
    11 E/Database( 130): at android.content.ContentProvider$Transport.insert(ContentProvider.java:140)
    12 E/Database( 130): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:125)
    13 E/Database( 130): at android.os.Binder.execTransact(Binder.java:287)
    14 E/Database( 130): at dalvik.system.NativeStart.run(Native Method)
    15 W/AudioFlinger( 31): write blocked for 106 msecs
    16 I/Util ( 176): Deleted file /sdcard/subsonic/music/Unknown artist/Unknown album/00-Unknown title.mp3
    17 W/DownloadFile( 176): Failed to download 'Unknown title'.
    18 W/DownloadFile( 176): java.lang.NullPointerException
    19 W/DownloadFile( 176): at android.content.ContentResolver.acquireProvider(ContentResolver.java:574)
    20 W/DownloadFile( 176): at android.content.ContentResolver.query(ContentResolver.java:147)
    21 W/DownloadFile( 176): at net.sourceforge.subsonic.androidapp.service.MediaStoreService.saveInMediaStore(MediaStoreService.java:71)
    22 W/DownloadFile( 176): at net.sourceforge.subsonic.androidapp.service.DownloadFile$DownloadTask.execute(DownloadFile.java:226)
    23 W/DownloadFile( 176): at net.sourceforge.subsonic.androidapp.util.CancellableTask$1.run(CancellableTask.java:74)
    24 D/CancellableTask( 176): Stopping thread for DownloadTask (Unknown title)

Line 3 has some unprintable characters in it. Python string repr:

'E/Database( 130): Error inserting is_music=1 artist_id=3 mime_type=audio/mpeg _display_name=00-Unknown title.mp3 title=Unknown title title_key=\x08\x1dQ\x08\x1dC\x08\x1d=\x08\x1dC\x08\x1dE\x08\x1dU\x08\x1dC\x08\x1d\x06\x08\x1dO\x08\x1d9\x08\x1dO\x08\x1d?\x08\x1d1\x08\x1d _data=/sdcard/subsonic/music/Unknown artist/Unknown album/00-Unknown title.mp3 album_id=3 track=0 year=0 date_added=1291235336'

Line 18 may be caused by line 3.

Chad Miller (cmiller)
Changed in ubuntuone-android-music:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Chad Miller (cmiller)
milestone: none → 1.1-1
Chad Miller (cmiller)
Changed in ubuntuone-android-music:
assignee: Chad Miller (cmiller) → nobody
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.