this post was submitted on 24 May 2024
68 points (97.2% liked)

Apple

17450 readers
169 users here now

Welcome

to the largest Apple community on Lemmy. This is the place where we talk about everything Apple, from iOS to the exciting upcoming Apple Vision Pro. Feel free to join the discussion!

Rules:
  1. No NSFW Content
  2. No Hate Speech or Personal Attacks
  3. No Ads / Spamming
    Self promotion is only allowed in the pinned monthly thread

Lemmy Code of Conduct

Communities of Interest:

Apple Hardware
Apple TV
Apple Watch
iPad
iPhone
Mac
Vintage Apple

Apple Software
iOS
iPadOS
macOS
tvOS
watchOS
Shortcuts
Xcode

Community banner courtesy of u/Antsomnia.

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 5 months ago (1 children)

Given the rarity of this, it could’ve just been the normal random stuff that happens in computer land. Requests that don’t complete because they were interrupted by a crash, the rare bad block, etc. Or maybe it was just a bug that occasionally reared its head under certain circumstances.

Whatever it was, it wasn’t the first time a piece of software had an index that was messed up and out of sync with the stored files.

As for the iPhone storage thing you mentioned, I don’t know what you’re talking about. There was a IOS 17 bug early on where people mentioned that the OS needed a restart to claw back space from temporary install files and caches.

That said, the corrupted DB we’re talking about appears specific to the photos app. It’s not the file system index. It’s basically a glorified preference file.

[–] [email protected] 1 points 5 months ago (1 children)

E.g. iCloud says it’s using 13.4 GiB to store photos, Settings -> General -> iPhone Storage says I can save 15.5 GiB because they’re backed up on iCloud, and if I use idevicebackup2 to pull everything off the phone, there are 21.7 gigs of photos

I’m wondering if these discrepancies are related to the photo app not actually deleting pictures from the filesystem

[–] [email protected] 1 points 5 months ago (1 children)

Weird. I’d bet money on syncing issues, compression, etc. But who knows, if you have a Mac you can rebuild the library, let that sync, and see what happens.

https://support.apple.com/guide/photos/repair-the-library-pht6be18f93/mac

[–] [email protected] 1 points 5 months ago (1 children)

I’d disregarded compression as a possibility because the wording is “full resolution photos and videos are safely stored in iCloud”

[–] [email protected] 1 points 5 months ago (1 children)

There is lossless compression. Not saying that’s the cause of the varied number, but it is a common thing.

[–] [email protected] 1 points 5 months ago* (last edited 5 months ago) (1 children)

They’re already using HEIC/HEIF

I would be disappointed if they’re compressing it even more on iCloud. You can’t generally meaningfully compress a compressed file

[–] [email protected] 1 points 5 months ago (1 children)

That’s not how lossless compression works. No data is lost.

For example, if you zip a folder of images, then unzip them, the pictures come out with their original sizes and structure. Zip is lossless.

Let’s use the analogy of a dish sponge.

Let’s pretend you wanted to make a dish sponge smaller. Lossy compression would make the sponge smaller by cutting off parts and throwing them away. Lossless would make it smaller by squish the sponge, and it would return to its normal shape once you stopped squishing it.

[–] [email protected] 1 points 5 months ago* (last edited 5 months ago)

For your analogy, you can’t put more water in a sponge that is completely saturated

Trying to compress a compressed file doesn’t really work - at least not for a meaningful gain in storage size with zip, bzip, 7zip, gzip, xz, lzma…