Lightroom: Crashing on specific JPEG files

  • 1
  • Problem
  • Updated 3 years ago
  • Solved
  • (Edited)
My Lightroom 5.5 keeps crashing at seemingly random. It's not random though, it just looks that way. It's actually very specific.

Apparently I've got some pictures in my catalog that have been corrupted. They're not mine, so don't yell at me for that. They imported absolutely fine, so that's weird. It's just that whenever such a picture is about to be displayed in the grid view, or it's about to be processed while building previews (of any kind), or when it's about to be displayed in loupe view... Enfin, when it's about to be decoded in its entirety, Lightroom crashes. Every time, on that one specific picture.

SO MY COMPUTER IS NOT THE PROBLEM. In case someone has the brilliant idea of corrupt memory or something. My computer is fine!

But it's not just the one. That'd be not too-too bad. It's lots of pictures, presumbly. Because once I've been able to track down the one causing the crash, I stumble upon another one. And I'll tell you, figuring out which one makes LR crash is not easy at all! I have to go through many crashes before I can pinpoint the culprit. And what's even better: any free picture viewer loads said pictures absolutely fine... Talk about robust software.

Speaking of which, the culprit is, of course, Lightroom. It should be able to handle broken images with a breeze, by reporting about them and offering to remove them. Not by crashing on me!

And when I say crash, I mean CRASH, while "Lightroom has stopped working. Windows is checking for solutions..." (which never works, but that aside).

So yeah, I'm getting very grumpy about this, as you can imagine. More so when (just now) Lightroom decided to reset itself completely. Registration, settings, recent catalogs, ALL GONE. Thanks, lads.

So Adobe, will you fix this problem please? Will you let Lightroom not-crash on corrupt/broken/incomplete pictures please? I don't really care what it will do, as long as it doesn't crash.

Specs:
Lightroom 5.5 x64
Windows 7 x64
Everything up-to-date.
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
  • grumpy

Posted 4 years ago

  • 1
Photo of Becky Sowada

Becky Sowada, Adobe Employee

  • 508 Posts
  • 105 Reply Likes
A fix for this will be in the next release of Lightroom. In the meantime, there's a workaround posted here that you can try: http://helpx.adobe.com/lightroom/kb/l...

Becky
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
Thanks, I'll try the workaround. But I'll emphasize that the workaround you referred is for a very different problem... A crash is not a crash is not a crash ;)
And it's for a problem that I used to have as well, but seems to have been fixed (or it's back in 5.4->5.5).

Mind you, the crashes that I'm experiencing, once pinned down, are 100% reproducible. The crashes fixed by your workaround are 0% reproducible on demand.
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
Applied your workaround. And as expected... It didn't help. It's still crashing.
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
Okay, I installed the update by now. I'm not seeing these problems anymore but for a different reason. I re-saved the "faulty" images. So unfortunately I also can't post one (and I wouldn't, because they're inappropriate).

So, as for the workaround you linked to, if that is the problem that's now fixed, then I fear the fix in LR5.6 is not going to have fixed this particular problem.

I suppose I'll have to stress LR a bit more and hopefully make it not-crash.
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
No fix in LR 5.7

Literally all software that reads pictures that is on my pc, can read these "currupted" pictures. Except for Lightroom. Even Photoshop can read them perfectly fine!

The VERY LEAST lightroom could do, is display a message like it sometimes does when importing files it can't read. A hard crash is unforgivable and needs to be fixed.

So, where can I drop two pictures (NSFW) that make LR crash, for the LR developers at Adobe to look at?
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14049 Posts
  • 1735 Reply Likes
What OS/version are you on? I'll send you an email.
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
Windows 7 x64, LR 5.7 x64
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
Actually, this one makes LR crash as well, and isn't really very much NSFW. I think I can post it. It'll be a zip, so nothing changes any bytes inside the jpeg.

http://home.thany.nl/browsable/Apron-...

I have a couple more, that I'm really not going to post here, for several reasons ;)
Photo of Pete Green

Pete Green, Customer Advocate

  • 707 Posts
  • 133 Reply Likes
Hi Martijn,

Thanks for sharing. I notice that if I bring the image into PS first, then Save for Web (which will strip the MetaData from the image) at JPG100% quality, I'm able then to Import the JPG into LR/PS/ACR without crash.

Bridge crashed as soon as it navigated to the folder the original image was in. Seemingly after reading metadata. Seems there is some Metadata that is causing this crash, which I've logged a bug on.

Where are the images originating that might be saving out some odd metadata?
Any abnormal characters used in Metadata that could be causing the crash?

Regards
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
Unfortunately, I don't control where the image are coming from. But I personally don't believe metadata is the problem, since the images import absolutely fine. LR only crashes when it displays any of them, either as a thumbnail, in loupe view, or as part of generating previews.

But at least now you have a reproducible case you can test against. That's something I guess.

Hopefully in LR 5.8 this can be fixed? ;)
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
I may have found why this is happening. Well, not exactly why, but at least a hint to why.

All images so far that I've found to cause LR to crash, have a specific YCbCrSubSampling of "3 2", which exiftool marks as Unknown. All other images so far are "1 1" (known as 4:2:0) or "2 2" (known as 4:4:4), which are both defaults for lots of jpeg-producing software.

This may be the reason why LR imports them fine, because import is nothing much more than reading metadata. The subsampling being 'unknown' only causes a problem once the program starts an attempt to decode the jpeg data. Makes perfect sense to me.

And again, the jpegs with "3 2" subsampling work absolutely fine in anything I throw them at... Except LR.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14049 Posts
  • 1735 Reply Likes
Thanks. I've added a note to our internal bug report.
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
So 7 months ago (at the time of writing) you knew about this bug. And you didn't fix it. Care to explain?
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
When will this be fixed?
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14049 Posts
  • 1735 Reply Likes
It is fixed in Lightroom 6.1 or later.
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
Yes, well, I've got 5.7 here... Should I pay for a bugfix then? Surely that's not how this works. Also because this issue has been reported ages ago, when LR6 wasn't even a thing yet. So I'm really still expecting this fix (if any) to be backported to 5.x.
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
This reply was created from a merged topic originally titled LightRoom 5.7 crashing on certain pictures.

Here are two spreadsheets of image metadata/properties. One sheet is for pictures that LR crashes on, the other is for pictures that are completely fine.

Please note, this is a HARD CARSH, not an error message or anything like that. Everything has been tried, not to worry about that. All other software that I can get my hands on (including but not limited to PS CS6 and PS CC2015), can read these "crashing images" completely fine.

Crashers:
http://home.thany.nl/browsable/lightr...

Non-crashers:
http://home.thany.nl/browsable/lightr...

These sheets where made with Exiftool. I suspect the `YCbCrSubSampling` property is feeding the problem.

Screenshot of the crash (in 2 parts):
https://pbs.twimg.com/media/CNMpx9pWU...
https://pbs.twimg.com/media/CNMpx-HWs...

That's LR 5.7 on Windows 7 x64.

This needs fixing along with the memory leak bug, and the grosely outdated CameraRaw and camera support. Have fun, Adobe ;)
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
Also, don't forget to fix the memory leak bug. View large pictures or many smaller ones, just in grid or loupe view, will eat your computer's memory alive. It'll literally use ALL your memory, grinding the computer to a near halt.

Unreleated from this issue, but if you (Adobe) are going to release a fix, do that one as well please.

You could even call it a crash, to stay on-topic, because when LR tries to steal more memory and none is available, it does crash (differently, but much more horribly).
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
And update camera support while you're at it. Especially cameras that came out BEFORE any notion of LR6. That is to say, April 2015 and earlier.
Photo of martijn Saly

martijn Saly

  • 194 Posts
  • 18 Reply Likes
Who marked this as solved? It's not solved.
Photo of Rikk Flohr

Rikk Flohr, Official Rep

  • 3426 Posts
  • 615 Reply Likes
I've sent you an email via the address you've listed on this forum. I wanted to make sure you received it.