0
[Answered] MTP Connection Breaks + Rejects *random* files

Thread Status:
Not open for further replies.
  1. cohaolain
    Honeycomb Jan 20, 2017

    cohaolain , Jan 20, 2017 :
    Trying to copy multiple files over MTP at one time. Connection breaks regardless of method (file transfer in windows or music application sync).
    Sometimes it works but other times it spits out lines of errors, intermittent errors, and errors that are followed by a broken connection (no device tree on PC). Has also appeared corrupted in Windows.
    Very dangerous due to a potential loss of data.
     

    #1
  2. cohaolain
    Honeycomb Jan 20, 2017

    cohaolain , Jan 20, 2017 :
    Log:
    Code:
     
    01-20 21:56:00.979  1282  1282 E MM_OSAL : WMCDecSetDecodePatternForStreams pDecoder->tAudioStreamInfo[j]->dwAudioBufSize 72563
    01-20 21:56:01.930  3104 14932 D MtpServer: path: /storage/emulated/0/Music/Various Artists/La La Land (Original Motion Picture Soundtrack)/05 Herman's Habit.wma parent: 7957 storageID: 00010001
    01-20 21:56:01.984  3104  7711 E DatabaseUtils: Writing exception to parcel
    01-20 21:56:01.984  3104  7711 E DatabaseUtils: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/fs_id from pid=8937, uid=10142 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
    01-20 21:56:01.984  3104  7711 E DatabaseUtils:         at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:608)
    01-20 21:56:01.984  3104  7711 E DatabaseUtils:         at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:483)
    01-20 21:56:01.984  3104  7711 E DatabaseUtils:         at android.content.ContentProvider$Transport.query(ContentProvider.java:212)
    01-20 21:56:01.984  3104  7711 E DatabaseUtils:         at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
    01-20 21:56:01.984  3104  7711 E DatabaseUtils:         at android.os.Binder.execTransact(Binder.java:580)
    01-20 21:56:02.001  1283  2411 I ExtendedUtils: printFileName fd(13) -> /storage/emulated/0/Movies/Messenger/received_-2125418639.mp4
    01-20 21:56:02.024  1931  2539 D PowerManagerService: releaseWakeLockInternal: lock=259633100 [wake:com.google.android.apps.photos/com.google.android.libraries.social.mediamonitor.MediaMonitorIntentService], flags=0x0
    01-20 21:56:02.030  1282  1282 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.031  1282  1282 I ExtendedExtractor: ExtendedExtractor::create 0xe8eaae40
    01-20 21:56:02.041  1283  2411 I ExtendedUtils: printFileName fd(13) -> /storage/emulated/0/DCIM/Camera/VID_20170114_182616.mp4
    01-20 21:56:02.058  1282  1282 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.058  1282  1282 I ExtendedExtractor: ExtendedExtractor::create 0xe76248a0
    01-20 21:56:02.071  1283  2411 I ExtendedUtils: printFileName fd(15) -> /storage/emulated/0/Snapchat/Snapchat-1314474924.mp4
    01-20 21:56:02.087  1282  2752 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.087  1282  2752 I ExtendedExtractor: ExtendedExtractor::create 0xe8eaaf00
    01-20 21:56:02.099  1283  2411 I ExtendedUtils: printFileName fd(13) -> /storage/emulated/0/Snapchat/Snapchat-494432652.mp4
    01-20 21:56:02.117  1282  2752 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.118  1282  2752 I ExtendedExtractor: ExtendedExtractor::create 0xe7624120
    01-20 21:56:02.128  1283  2411 I ExtendedUtils: printFileName fd(13) -> /storage/emulated/0/Snapchat/Snapchat-1425528316.mp4
    01-20 21:56:02.144  1282  2752 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.144  1282  2752 I ExtendedExtractor: ExtendedExtractor::create 0xe8eaad80
    01-20 21:56:02.195  1283  2416 I ExtendedUtils: printFileName fd(13) -> /storage/emulated/0/Movies/Messenger/received_-2125418639.mp4
    01-20 21:56:02.212  1282  2752 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.212  1282  2752 I ExtendedExtractor: ExtendedExtractor::create 0xe7624000
    01-20 21:56:02.224  1283  2411 I ExtendedUtils: printFileName fd(13) -> /storage/emulated/0/DCIM/Camera/VID_20170114_182616.mp4
    01-20 21:56:02.234  1282  2752 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.234  1282  2752 I ExtendedExtractor: ExtendedExtractor::create 0xe76240c0
    01-20 21:56:02.253  1283  1283 I ExtendedUtils: printFileName fd(13) -> /storage/emulated/0/Snapchat/Snapchat-1314474924.mp4
    01-20 21:56:02.269  1282  2752 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.269  1282  2752 I ExtendedExtractor: ExtendedExtractor::create 0xe76241e0
    01-20 21:56:02.279  1283  1521 I ExtendedUtils: printFileName fd(13) -> /storage/emulated/0/Snapchat/Snapchat-494432652.mp4
    01-20 21:56:02.294  1282  2752 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.295  1282  2752 I ExtendedExtractor: ExtendedExtractor::create 0xe76242a0
    01-20 21:56:02.309  1283  1521 I ExtendedUtils: printFileName fd(15) -> /storage/emulated/0/Snapchat/Snapchat-1425528316.mp4
    01-20 21:56:02.321  1282  2752 I ExtendedExtractor: QTIParser is prefered
    01-20 21:56:02.321  1282  2752 I ExtendedExtractor: ExtendedExtractor::create 0xe7624300 
     

    #2
  3. cohaolain
    Honeycomb Jan 20, 2017

    cohaolain , Jan 20, 2017 :
    Before this, multiple files transferred across fine. But then this file tripped up.The "DatabaseUtils" lines aren't present in a successful transfer:
    Code:
    01-20 21:56:00.835  3104 14932 D MtpServer: path: /storage/emulated/0/Music/Various Artists/La La Land (Original Motion Picture Soundtrack)/04 A Lovely Night.wma parent: 7957 storageID: 00010001
    01-20 21:56:00.960  1283  1521 I ExtendedUtils: printFileName fd(13) -> /data/media/0/Music/Various Artists/La La Land (Original Motion Picture Soundtrack)/04 A Lovely Night.wma 
    In the failure, the ExtendedUtils points to some random files, instead of to the transferred file as in the successful transfers.

    There is no correlation between file size, file type, name etc. and success. And the files that do transfer and the ones that don't are different for different transfers.
     

    #3
  4. cohaolain
    Honeycomb Jan 20, 2017

    cohaolain , Jan 20, 2017 :
    Can't find anything in the logs regarding the connection itself completely breaking.
     

    #4
  5. cohaolain
    Honeycomb Jan 21, 2017


    #5
  6. Jeff Lee
    Eclair Jul 3, 2018

    Jeff Lee , Jul 3, 2018 :
    Hello @cohaolain,


    Good day! This is from OnePlus Bug Hunters. How are you? If you are still experiencing this issue, we highly recommend that you update your phone to its latest build. If the issue will persist, please create a new bug report with the updated information so that we can re-look into it.

    This thread will now be closed and marked as "Fixed".Thank you and have a nice day.
     

    #6