Skip to content

Corrupted image created during auto upload #1350

Closed

Description

@tobiasKaminsky

Received via email:
I have been having an issue with my photos using this app. Whenever I take a photo the next cloud app creates a grey burst mode photo that is corrupt. I have to delete this photo everytime as it won't backup or open.

The corrupted photo is created on my Android device every time I take a photo. I have a Nexus 6p running Android 7.1.2 with August 2017 patches. I am running the beta version of the next cloud app to test a battery issue that I reported. This issue was also happening before that and with the help of Google we were able to narrow the issue down to this app.

I am currently clueless. The autoupload should only, upload a picture found in the source folder and does not create a new one.
@mario, maybe you have an idea?

screenshot_20170814-071350-01
screenshot_20170814-071400
screenshot_20170814-071404

Activity

  1. tobiasKaminsky commented on Aug 16, 2017

    @tobiasKaminsky
    MemberAuthor

    Additional info:

    If I take two pictures they both upload fine, and a third corrupt photo is left on my phone which does not upload.

  2. mario commented on Aug 17, 2017

    @mario
    Contributor

    Are we talking about images stored to an SD card or internal storage? Because if on SD card, the image is copied to our own directory, locked and then uploaded. Afterwards, the temporary copy is deleted. As for internal storage, we don't do this dance as I can lock the file there.

    However I've never had a case of corrupted image. So we need to find a way to reproduce this...

  3. ralieghnet commented on Oct 2, 2017

    @ralieghnet

    I'm also having the same problem. Here is a screen shot right after the upload happens. I'm using a Samsung S6 edge.
    App version 1.4.3
    I've done some testing and the error will occur regardless of internet connectivity or setting based on connectivity. It occurs each time I take a photo or place a picture in the selected directory
    local
    /storage/emulated/0/DCIM/
    remote
    /InstandUpload/Camera

    screenshot_20171002-145324

  4. AndyScherzinger commented on Oct 3, 2017

    @AndyScherzinger
    Member

    @ralieghnet please give 2.0.0RC8 a try since 1.4.3 is obsolete with the upcoming 2.0.0

  5. loxK commented on Jun 2, 2018

    @loxK

    Have the issue following my S7 upgrade to android 8.0.0 running latest Nextcloud app from playstore. Pre android upgrade I was having the issue that only a few photos and no videos were ever uploaded #2019

  6. meredrica commented on Apr 6, 2019

    @meredrica

    For me, auto upload actually destroyed an image. That's a big issue. I wonder why this can happen but the local image is actually broken now.

    Remote copy is of course the same.
    Its an image in the Instagram folder, attached below. The original image was not set to backup to Google so basically I lost it.

    Not a big deal for this one, but this male's me very nervous.

    Syncing via Web dav (using folder sync pro) is not an option because large files(videos over 4gb) always time out and are re uploaded. (I burned my data plan with that, 16gb gone within two hours. Stupid me, should have enabled wifi only)

    BTW, this image is not anonymized. It's literally what nextcloud did to it.

    IMG_20190124_230933_472

  7. stale commented on May 9, 2019

    @stale

    This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

  8. meredrica commented on May 16, 2019

    @meredrica

    well. BUMP

  9. stale commented on Jun 13, 2019

    @stale

    This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

  10. 7 remaining items

  11. hammy1988 commented on Aug 31, 2020

    @hammy1988

    NextCloud has no battery restrictions. It is excluded from the Huawei battery management.

    I only testet with copy (keep original).
    I did some additional tests.

    The error occures with this configuration

    • copy (keep original)
    • move (move to app-folder)
    • delete

    Only with the configuration "move" the NextCloud-App do not create a duplicate corrupted image in the folder Internal Storage/Pictures.
    I tested it several times with different folders and photos.

  12. hammy1988 commented on Aug 31, 2020

    @hammy1988

    I don't know if it will help you. But i instelled the Nextcloud Dev App (v20200829) and get a logfile.
    But i can't find any copy entry that could explain the additional file.

    Log_File_Nextcloud_Dev_Version20200829.txt

    Is it possible to get deeper log files?

  13. tobiasKaminsky commented on Sep 1, 2020

    @tobiasKaminsky
    MemberAuthor

    Thanks for the detailed debug!
    I also do not see any suspicious…

    From your three tests it seems that the copy/delete process is interrupted in between and thus a corrupted file is created/remains.

    Without access to such a device, I fear I cannot do anything :-(

  14. added
    needs info
    on Sep 1, 2020
  15. hammy1988 commented on Sep 2, 2020

    @hammy1988

    @tobiasKaminsky : i sent you an email. Did you get it? Maybe it will help to fix this bug (if you are interesseted to debug this issue).

  16. tobiasKaminsky commented on Sep 21, 2020

    @tobiasKaminsky
    MemberAuthor

    Now looking into it.
    @hammy1988 thanks for sending your spare device :-)

  17. tobiasKaminsky commented on Sep 21, 2020

    @tobiasKaminsky
    MemberAuthor

    Found it.
    It is a bug from NC, but only visible on Huawei devices it seems:

    • we trigger media scanner all the time, even when only uploading images, thus we trigger it with "" path (as there is no new image)
    • media scanner seems to ignore this on other devices
    • but on huawei/gallery app it shows it with default location "/Pictures" and file name (as we pass this).

    This leads then to the "corrupted" image, where in reality there is just no image at all…

    @hammy1988 I now can also trigger another bug (#2010) with your device. I hope it is ok to keep it some more day? 🤞

  18. hammy1988 commented on Sep 21, 2020

    @hammy1988

    Hey @tobiasKaminsky,

    many thanks for your work! It's nice that you also take care of errors that only occur with a small member of users.

    Of course you can keep my Huawei some more days. I don't need it right now 😄

  19. Obi-Wahn commented on Sep 21, 2020

    @Obi-Wahn

    @tobiasKaminsky Thanks! I hope this fixes the bug for me too. (I own a Pixel 3, by the way the name of the files changed after an update to PXL_20200920_165135989.jpg)

  20. tobiasKaminsky commented on Sep 22, 2020

    @tobiasKaminsky
    MemberAuthor

    @Obi-Wahn you can test it with APK in #6984, which you can install in parallel.
    If it does not help, please open up a new issue.

  21. Obi-Wahn commented on Oct 8, 2020

    @Obi-Wahn

    I'm using the Nextcloud App Version 3.13.1 and the bug seems to be gone. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfeature: auto uploadneeds info

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions