Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Apple IT Technology

Apple Explains Rare iOS 17.5 Bug That Resurfaced Deleted Photos (9to5mac.com) 59

Apple has shed more light on the bizarre iOS 17.5 bug that caused long-deleted photos to mysteriously reappear on users' devices. In a statement to 9to5Mac, the iPhone maker clarified that the issue stemmed from a corrupted database on the device itself, not iCloud Photos. This means the photos were never fully erased from the device, but they also weren't synced to iCloud. Interestingly, these files could have hitched a ride to new devices through backups or direct transfers.
This discussion has been archived. No new comments can be posted.

Apple Explains Rare iOS 17.5 Bug That Resurfaced Deleted Photos

Comments Filter:
  • by CEC-P ( 10248912 ) on Friday May 24, 2024 @02:15PM (#64496631)
    Microsoft Recall® be like "Bruh, we have ALL of them though."
  • Ah yes (Score:5, Funny)

    by smooth wombat ( 796938 ) on Friday May 24, 2024 @02:17PM (#64496633) Journal

    A corrupted database. Is that like you're holding your phone wrong?

    • by gweihir ( 88907 )

      You would expect that what you see is what is stored, regardless of any database corruption. Obviously, such a sane idea had no place in the design of this system.

    • by rahmrh ( 939610 )

      Likely a corrupted filesystem db. I worked on FS issue earlier today (not apples) and the given FS was 135GB in size and reported 1GB actually used but no free space at all (totally full) so we went looking for the missing 134G, after examining the typical reasons for this, we moved on to the possible, but rarely seen. The theory is it crashed while the files+directories were deleted but still open and the files/nodes were simply lost (not in free blocks list, and not connected to a filename/directory).

      • Nope. Try again.
      • Actual best guess: The Photos app has a list of photos (names and where the photo file is stored). The app _should_ when asked to delete a name from the list of photos and add the same time delete the photo file.

        If it only deletes the photo file, then it would try to show the photo and fail, and that would lead to users complaining, and the bug fixed. If it only removes the name without deleting the file, then everything looks perfectly fine. You have a file that you shouldn't have, but you will never kn
    • No, it's like "all Apple haters have no clue about computers". Thanks for the confirmation.
    • This was my initial guess for the root cause, so I am not surprised. iPhotos has so many duplicate databases on an older computer that it is easy to "find" deleted versions of something. The databases also got corrupted frequently, especially when trying to synchronize photos with slow external systems.

  • It makes a wonderful explanation but... no.

    Especially that last line.

    "It wasn't in the cloud, but it might have used the cloud to move to a new device via backups"

    Heh. Depending on people not knowing how computers work at all, in the slightest.

    • All the denials specifically name iCloud Photos.

      What I didn't see at all was an explanation that 17.5 includes automatic database repair or any technical explanation.

      Maybe that exists and I missed it or maybe it's a secret update or maybe it's BS.

      Until they come clean on the A5 GPU intentional backdoor I'll presume BS to begin with.

      Open Source is a floor for being taken seriously on security claims.

      • THat's why there are never bugs in Open Source software. Yeah right. Thanks for the confirmation though.
      • Open Source is a floor for being taken seriously on security claims.

        Nonsense. The correct code would have been: "Remove name of photo from the database. Delete photo file". Sometimes what was executed was only "Remove name of photos from the database". That would have been just as invisible in open source code.

        • by Reemi ( 142518 )

          Nope, the correct way is to mark the photo in the db as 'to be deleted', delete the photo, remove the entry from the db.

    • The phrase is, "Interestingly, these files could have hitched a ride to new devices through backups or direct transfers."

      This is an important semantic distinction. What is "the cloud"? If you take it to mean any presence of the bits anywhere other than right on your phone, you're not using the term "cloud" in the way that people or industry do. If you're talking about pictures, audio, or other bits of media, being in the cloud means that the file has a life cycle and individual presence online. You can retr

      • A backup is "the cloud"? Yeah, thanks for the confirmation.
      • The phrase is, "Interestingly, these files could have hitched a ride to new devices through backups or direct transfers."

        If you buy a new phone and dump your old one, you do a backup on the old phone and a restore on the new one. Backup and restore make sure that the contents of the new phone is exactly the contents of the old phone. If the old phone contained files that it shouldn't, then obviously the new phone will contain the exact same files.

        Don't know what is meant by "direct transfer". There was no UI to show these files, so there was no UI to send them to another phone. No UI to attach them to a mail message, for e

    • by taustin ( 171655 )

      Heh. Depending on people not knowing how computers work at all, in the slightest.

      These are Apple customers we're talking about, after all. That's their core market.

      • I used to support Apple users, and I strongly agree with your statement with the following addition: Apple Users strongly do NOT want to be bothered knowing how their iDevice works. No, they just want to get on with editing/creating their photos/music/videos/whatever and/or just using their iDevice without the bother of knowing anything about the guts of either the hardware or the software.

        Most care not one whit about the 'walled garden', they only want their shit to work seamlessly across their iPhone, i

    • No one said anything about the cloud in the bit about migration to a new device. Appleâ(TM)s device migration uses your local network.

      • by teg ( 97890 )

        No one said anything about the cloud in the bit about migration to a new device. Appleâ(TM)s device migration uses your local network.

        When you set up a new system, one of the first questions is whether you will set up it from scratch or use a backup - and your iCloud backups for ipads and iphones are listed as alternatives, with dates and name of the device.

        • When you set up a new system, one of the first questions is whether you will set up it from scratch or use a backup - and your iCloud backups for ipads and iphones are listed as alternatives, with dates and name of the device.

          Setting up your new device with data from the old device is much faster. But it doesn't work if a truck drove over your old phone, or it fell into a lake. Or some mad hacker hacked it with a pick axe. That's why you have iCloud backups (or backups on your Mac).

    • by gweihir ( 88907 )

      Heh. Depending on people not knowing how computers work at all, in the slightest.

      Which, to be fair, is pretty accurate fo 99% or so of all people. They are also admitting to gross incompetence, because in a competent design, the state you see is the state of the data. Not so here. But again, 99% of all people will not understand that. It is almost as if technology has gotten complicated enough that vendors can openly admit selling crap products because most people will not understand the explanation.

      • by HiThere ( 15173 )

        Hasn't that been true for decades?

        • Isn't it true for most of the people here?
          • by gweihir ( 88907 )

            Well, for /., I would say 90% "no clue" vs. probably 99% "no clue" in the general population.

        • by gweihir ( 88907 )

          It definitely has been. But computers have crept into everybody's lives now. Even most of those that steadfastly refused to have a "real" computer at home now have a mobile multi-core workstation in their possession that they use all the time.

    • Thanks for the confirmation. Top job at not getting it.
    • "It wasn't in the cloud, but it might have used the cloud to move to a new device via backups"

      Sure. Say you have 10,000 photos on your iPhone that should be there because you want to see them. And 20 that you tried to delete, that are not visible to you, but that are there.

      If you do a backup to iCloud, the backup has no idea what should be there and what shouldn't be there. It just sees files and copies them. That's the 10,000 photos you wanted backed up, plus the 20 that you didn't even know about. It's pointless to complain about 20 photos that you wanted deleted backed up in iCloud when your 1

    • Nice try, but no. When the problem is a design decision and not an error in the code, Open Source does jack shit to fix the problem. Unless you count simply forking the code whenever you feel like as a solution to a problem instead of a problem in itself. Somebody who doesn't just play an OS advocate on the internet would know that.
  • "So it'll just work itself out naturally. We always like to avoid confrontation, whenever possible. Problem is solved from your end." --Apple, Inc.

  • Assuming we even believe their explanation, how convenient that it is on the user side. Now it's easy to imply that it's the end users' fault.

    This smells like standard corporation BS.

    • Apple's answer to a lot of file corruption issues is to tell people to simply reinstall the OS, presuming that you have been making backups all along so you aren't going to be loosing anything, other than time to reinstall the OS, then reinstall your files from your backup that you've been making daily via Apple's Time machine, or via some other system...

      Almost ALL of my prior clients never made backups, and acted like they shouldn't have to (this was way before Apple created the Time machine capability)

    • Come on, we know around here with apple it's never apples fault.
  • Undelete (Score:5, Informative)

    by Z80a ( 971949 ) on Friday May 24, 2024 @02:40PM (#64496699)

    To play the devils advocate here, actually deleting data is something that normally don't happen in any OS.
    Only the file entry is deleted and the sectors marked as "free".

    • by AmiMoJo ( 196126 )

      Not not we have SSDs with TRIM support. They erase unused blocks in minutes, sometimes seconds even. It prepares them to be re-written.

      It's a big deal in the forensics world, and for data recovery services.

      • Not not we have SSDs with TRIM support. They erase unused blocks in minutes, sometimes seconds even. It prepares them to be re-written.

        TRIM should take practically no time at all. Your SSD has logical blocks (like a 1TB SSD has 250,000,000 logical 4k blocks) and a higher number of physical blocks (maybe 260,000,000 physical blocks), A TRIM command cuts that connection. A TRIM command for logical blocks 1,000,000 to 1,001,000 just makes a note that these blocks are not mapped to any physical blocks anymore. Yes, when data is written the controller must find a range of say 32 zeroed blocks, but that can wait until it is needed. And if you tr

    • Re:Undelete (Score:4, Insightful)

      by vux984 ( 928602 ) on Friday May 24, 2024 @03:12PM (#64496741)

      In the old days, to a point yes, the file entry was deleted from the directory, and however space to the file was allocated, was marked available. And then at some point the actual data may get overwritten or partly overwritten when space is needed. So the actual data in files could be overwritten immediately, or might linger on for ages and could be recovered.

      But this isn't really true anymore since the advent of solid state storage, and modern flash/SSD implementations. Between wear levelling algorithms that actively moves things around and actively distributes activity, and TRIM that actively wipes available space to speedup future writes -- free space doesn't just linger around waiting for something to maybe eventually need to be written there anymore.

      "Free space" is actively recycled, and often very quickly, now.

      • by tlhIngan ( 30335 )

        In the old days, you had a single tasking operating system, so running undelete could work because you knew after you deleted it, no changes to the filesystem have taken place because this was the age where caching wasn't a thing - DOS would sit at the prompt and as long as nothing touched the computer, it was basically guaranteed to be recoverable.

        PC Tools and Norton Utilities would say if you needed to undelete a file, to just run the tool off the floppy and not install it - in case you did delete that v

        • by vux984 ( 928602 )

          Windows has had the recyling bin since Windows 95.

          And the menu item for it is going to be next to something no matter where they put it. I'm not sure what you propose to get around that.

          And next to 'rename' isn't terrible, because almost nobody savvy uses the "rename" command, they just click the file name, pause, and click the filename again to put it into edit mode to rename it. I'm not sure how far back that's been possible -- maybe all the way back to win 95?

          Also, apparently, it was actually present in

          • And next to 'rename' isn't terrible, because almost nobody savvy uses the "rename" command, they just click the file name, pause, and click the filename again to put it into edit mode to rename it. I'm not sure how far back that's been possible -- maybe all the way back to win 95?

            I remember it was there in MacOS using HFS before HFS+. The reason I know is there was a bug: File names ABC and abc are considered equal. So renaming ABC to abc would do nothing - the filename would still be displayed as ABC. Renaming it to ABC1 and then to abc was fine. (I actually had customers complaining and had to do that workaround),

    • To stretch it so far, you're Lucifer's advocate...

      The probabilities involved in the images coming back under the same name and non corrupted in that scenario are quite low. And as mentioned, we're on flash storage with TRIM now...

    • For a company that claims to be about security and privacy, I'd make sure that a deleted file never becomes undeleted. But apple has always sucked at software so what can you expect.
      • For a company that claims to be about security and privacy, I'd make sure that a deleted file never becomes undeleted. But apple has always sucked at software so what can you expect.

        The files were never deleted. There is no OS function to "undelete" a file. And on an SSD drive with TRIM, the controller can actually make it 100% impossible (without any effort).

    • by teg ( 97890 )

      To play the devils advocate here, actually deleting data is something that normally don't happen in any OS. Only the file entry is deleted and the sectors marked as "free".

      This wasn't about a missing delete on the file system level - the pictures were deleted from the photo library. That puts them in the trashcan where they live until you restore them, you select to permanently delete them, or 30 days pass by. Something went wrong with the latter.

  • I mean, they wouldn't lie, would they?

    • by gweihir ( 88907 )

      I believe them. While they are admitting to gross incompetence, most people will not be able to understand that so their risk is small. And in case there is any lawsuit, they cannot be accused of lying.

  • You would think that what you see is in sync with what is stored. But that would be robust, resilient design and obviously, Apple is above that.

  • “the files could have persisted from one device to another when .. when restoring from an iCloud Backup [9to5mac.com] but not using iCloud Photos.”
    • by teg ( 97890 )

      “the files could have persisted from one device to another when .. when restoring from an iCloud Backup [9to5mac.com] but not using iCloud Photos.”

      That means the photos are removed from the photo library, but the files themselves weren't deleted - just the link to them from the photo library. No big surprise that a backup will include them.

  • The description matches what people with knowledge about computers had guessed all along. Telling that Apple-Haters weren't even close.

    Any of you still need an explanation? Or do you want to stick to your fantasies about how computers work?

    • You have nothing useful to add but "dur dur apple haters dur" Thanks for the confirmation.
      • Thanks for confirming you know even less about computers than every one of the other morons. Not that we needed it, every of your posts does.
  • I mean this half jokingly, but seriously, the amount of storage on my phone shrinks daily even when I tell apps to autodelete unused content, or for things to be cloud stored. It is highly believable to me that they've been leaking bits this whole time.

2.4 statute miles of surgical tubing at Yale U. = 1 I.V.League

Working...