Photos crashing - unexpected error

I have a 2015 MacBook Air running OS X El Capitan (10.11.6). When I open Photos (version 1.5) there is a delay of a couple of seconds where I can click around and open photos but then an error message appears that says 'An unexpected error has occurred. Please quit and restart the application.' When I click ok it automatically closes Photos but when I restart it the same error occurs. Has anyone else had this or know how to fix it?

MacBook Air, OS X El Capitan (10.11.6)

Posted on Jun 15, 2017 1:37 PM

Reply
13 replies
Sort By: 

Jun 16, 2017 9:13 AM in response to hannahbarnham

When I click ok it automatically closes Photos but when I restart it the same error occurs. Has anyone else had this or know how to fix it?

The dialog panel with "Photos quit unexpectedly" has the crash log in the lower part of the panel - where it says "ProblemDetails". Copy and paste this log - the first 50 lines or a bit more into your next message, so we can see the details of the error message.

User uploaded file

Reply

Oct 5, 2017 9:10 AM in response to Skoughtee

Is your Photos Library in your Pictures folder (the default) or on an external drive? If it is on an external drives the drive formatted correctly as MacOS Extended (Journaled)? Are you sharing the library between several users?


This makes me think I have a file in my library that is causing a problem but I don't know how to find out which file it is. Any Suggestions? I have rebuilt and repaired the library many times.

A bad image or video in iCloud may be causing the problem, but that would be difficult to find.


Since the problem is also happening on a new library, I would reinstall MacOS X, but not a clean install. Make a current backup, then boot your system from the Recovery Partition and select to reinstall MacOS X.

See: https://support.apple.com/en-us/HT201314

Reply

Oct 5, 2017 1:20 AM in response to léonie

I am having the problem where Photos for Mac opens for a minute or 2 and then crashes.


Here is the beginning of the code.


Process: Photos [69767]

Path: /Applications/Photos.app/Contents/MacOS/Photos

Identifier: com.apple.Photos

Version: 3.0 (3231.11.150)

Build Info: PhotoApp-3231011150000000~8

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: Photos [69767]

User ID: 501



Date/Time: 2017-10-05 02:13:08.153 -0600

OS Version: Mac OS X 10.13.1 (17B25c)

Report Version: 12

Anonymous UUID: A1D042A5-F367-8C7C-C752-A1EC4DFD355C



Sleep/Wake UUID: D9A488DD-76DF-4BE2-B90F-2DF247D76F98



Time Awake Since Boot: 200000 seconds

Time Since Wake: 21000 seconds



System Integrity Protection: enabled



Crashed Thread: 9 Dispatch queue: Search Index Version Save Queue



Exception Type: EXC_BAD_INSTRUCTION (SIGILL)

Exception Codes: 0x0000000000000001, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY



Termination Signal: Illegal instruction: 4

Termination Reason: Namespace SIGNAL, Code 0x4

Terminating Process: exc handler [0]



Application Specific Backtrace 1:

0 CoreFoundation 0x00007fff5038e3bb __exceptionPreprocess + 171

1 libobjc.A.dylib 0x00007fff76d92942 objc_exception_throw + 48

2 CoreFoundation 0x00007fff5041e665 +[NSException raise:format:] + 197

3 PhotoLibraryPrivate 0x00007fff6e64f371 -[LiSqliteBuffer setData:forRow:forColumn:] + 133

4 PhotoLibraryPrivate 0x00007fff6e6159a6 -[LiSqliteBuffer setObject:forRow:forColumn:] + 386

5 CoreFoundation 0x00007fff5030fecf -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 223

6 PhotoLibraryPrivate 0x00007fff6e615067 -[LiSqliteBufferWriter addRowFromArray:] + 290

7 PhotoLibraryPrivate 0x00007fff6e8f1206 -[LiTransactionContext saveRequestFromContextData:saveHandlers:persistHandlers:] + 3589

8 PhotoLibraryPrivate 0x00007fff6e8f249f -[LiTransactionContext saveWithCompletionHandler:] + 460

9 PhotoLibraryPrivate 0x00007fff6e8ef0ad -[LiTransactionContext performChanges:completionHandler:] + 165

10 PhotoLibraryPrivate 0x00007fff6e8ad788 __47-[RDVersionSearchIndexUpdateBatch finishUpdate]_block_invoke + 253

11 libdispatch.dylib 0x00007fff7794d6cd _dispatch_call_block_and_release + 12

12 libdispatch.dylib 0x00007fff77945e88 _dispatch_client_callout + 8

13 libdispatch.dylib 0x00007fff7795a356 _dispatch_queue_serial_drain + 635

14 libdispatch.dylib 0x00007fff7794d239 _dispatch_queue_invoke + 373

15 libdispatch.dylib 0x00007fff7795b042 _dispatch_root_queue_drain_deferred_wlh + 332

16 libdispatch.dylib 0x00007fff7795ee1b _dispatch_workloop_worker_thread + 880

17 libsystem_pthread.dylib 0x00007fff77c09033 _pthread_wqthread + 980

18 libsystem_pthread.dylib 0x00007fff77c08c4d start_wqthread + 13



Thread 0:: Dispatch queue: com.apple.main-thread

0 libsystem_kernel.dylib 0x00007fff77ac5e76 mach_msg_trap + 10

1 libsystem_kernel.dylib 0x00007fff77ac5390 mach_msg + 60

2 com.apple.CoreFoundation 0x00007fff5030ac55 __CFRunLoopServiceMachPort + 341

3 com.apple.CoreFoundation 0x00007fff50309fa7 __CFRunLoopRun + 1783

4 com.apple.CoreFoundation 0x00007fff50309617 CFRunLoopRunSpecific + 487

5 com.apple.HIToolbox 0x00007fff4f61e866 RunCurrentEventLoopInMode + 286

6 com.apple.HIToolbox 0x00007fff4f61e5d6 ReceiveNextEventCommon + 613

7 com.apple.HIToolbox 0x00007fff4f61e354 _BlockUntilNextEventMatchingListInModeWithFilter + 64

8 com.apple.AppKit 0x00007fff4d91d44f _DPSNextEvent + 2085

9 com.apple.AppKit 0x00007fff4e0b2508 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044

10 com.apple.AppKit 0x00007fff4d91225d -[NSApplication run] + 764

11 com.apple.AppKit 0x00007fff4d8e13fe NSApplicationMain + 804

12 libdyld.dylib 0x00007fff7797f145 start + 1



Thread 1:: Dispatch queue: Low Priority BIP

0 libsystem_kernel.dylib 0x00007fff77ac5eb2 semaphore_wait_trap + 10

1 libdispatch.dylib 0x00007fff77955971 _dispatch_sema4_wait + 16

2 libdispatch.dylib 0x00007fff7794da4e _dispatch_semaphore_wait_slow + 101

3 com.apple.photo.PAImaging 0x00007fff6dc48303 -[PAPreviewWriter renderThumbnailsForVersion:force:canceler:priority:] + 622

4 com.apple.photo.PAImagingCore 0x00007fff6dda9e29 -[PAPreviewWriterService renderThumbnailsForVersion:force:canceler:priority:] + 96

5 com.apple.photo.PAImagingCore 0x00007fff6de0738e -[RKBackgroundImageProcessor performJob:context:] + 978

6 com.apple.PhotoFoundation 0x00007fff6de8117c __72-[PFWorkContext(BackgroundServiceManager) dispatchPerformJob:withReply:]_block_invoke.196 + 73

7 libdispatch.dylib 0x00007fff7794d6cd _dispatch_call_block_and_release + 12

8 libdispatch.dylib 0x00007fff77945e88 _dispatch_client_callout + 8

9 libdispatch.dylib 0x00007fff7795a356 _dispatch_queue_serial_drain + 635

10 libdispatch.dylib 0x00007fff7794d239 _dispatch_queue_invoke + 373

11 libdispatch.dylib 0x00007fff7795b042 _dispatch_root_queue_drain_deferred_wlh + 332

12 libdispatch.dylib 0x00007fff7795ee1b _dispatch_workloop_worker_thread + 880

13 libsystem_pthread.dylib 0x00007fff77c09033 _pthread_wqthread + 980

14 libsystem_pthread.dylib 0x00007fff77c08c4d start_wqthread + 13



Thread 2:

0 libsystem_kernel.dylib 0x00007fff77acf6da __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff77c0926f _pthread_wqthread + 1552

2 libsystem_pthread.dylib 0x00007fff77c08c4d start_wqthread + 13



Thread 3:

0 libsystem_pthread.dylib 0x00007fff77c08c40 start_wqthread + 0

1 ??? 0x000060c00283ffff 0 + 106377792192511



Thread 4:

0 libsystem_kernel.dylib 0x00007fff77acf6da __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff77c0926f _pthread_wqthread + 1552

2 libsystem_pthread.dylib 0x00007fff77c08c4d start_wqthread + 13



Thread 5:

0 libsystem_kernel.dylib 0x00007fff77acf6da __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff77c0926f _pthread_wqthread + 1552

2 libsystem_pthread.dylib 0x00007fff77c08c4d start_wqthread + 13



Thread 6:

0 libsystem_kernel.dylib 0x00007fff77acf6da __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff77c0906a _pthread_wqthread + 1035

2 libsystem_pthread.dylib 0x00007fff77c08c4d start_wqthread + 13



Thread 7:: com.apple.NSEventThread

0 libsystem_kernel.dylib 0x00007fff77ac5e76 mach_msg_trap + 10

1 libsystem_kernel.dylib 0x00007fff77ac5390 mach_msg + 60

2 com.apple.CoreFoundation 0x00007fff5030ac55 __CFRunLoopServiceMachPort + 341

3 com.apple.CoreFoundation 0x00007fff50309fa7 __CFRunLoopRun + 1783

4 com.apple.CoreFoundation 0x00007fff50309617 CFRunLoopRunSpecific + 487

5 com.apple.AppKit 0x00007fff4da5ac49 _NSEventThread + 184

6 libsystem_pthread.dylib 0x00007fff77c096c1 _pthread_body + 340

7 libsystem_pthread.dylib 0x00007fff77c0956d _pthread_start + 377

8 libsystem_pthread.dylib 0x00007fff77c08c5d thread_start + 13

Reply

Oct 5, 2017 7:58 AM in response to Skoughtee

Photos is crashing when trying to red or write the SQlite database files inside the photos library.

3 PhotoLibraryPrivate 0x00007fff6e64f371 -[LiSqliteBuffer setData:forRow:forColumn:] + 133



It my either be a problem with the Photos.app or with your Photos Library. test with a new, empty Photos library, if Photos is still crashing on the new library.

Reply

Oct 5, 2017 8:58 AM in response to léonie

Thank you léonie


My entire library is backed up on icloud. I have tried to start a new library. It functions fine with a few images in it. Then I changed the empty library to the icloud library and let it update from the cloud. It updates fine but once it is finished and I close Photos the crash occurs again.


This makes me think I have a file in my library that is causing a problem but I don't know how to find out which file it is. Any Suggestions? I have rebuilt and repaired the library many times.


My work computer has a complete backup of all of my photos.

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Photos crashing - unexpected error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.