Welcome, Guest
Username: Password: Remember me

TOPIC: corrupted library

corrupted library 09 May 2019 13:18 #99923

  • parkerhqj
  • parkerhqj's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 459
  • Thank you received: 5
  • Karma: 1
Hi. I have a library that I can't open - it keeps crashing whenever I try. My other libraries are fine. I've rebooted & trashed preferences to no avail. My backup library also crashes. I keep the library on an external drive and all the media in an external folder. Any suggestions? thx!
The administrator has disabled public write access.

corrupted library 09 May 2019 21:50 #99924

  • dgwvideo
  • dgwvideo's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 1855
  • Thank you received: 215
  • Karma: 30
Try to repair it using Digital Rebellion's Pro Maintenance Tools. I think they still have a free trial period if you don't want to purchase it.
Creating history....one edit at a time !
The administrator has disabled public write access.

corrupted library 10 May 2019 05:08 #99925

  • Redifer
  • Redifer's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 765
  • Thank you received: 68
  • Karma: -1
I tell ya, if I had a corrupted Library and tried their trial software and it fixed it... I would buy it immediately since editing is my livelihood. I will keep them in mind, thanks for that tip!
The administrator has disabled public write access.

corrupted library 10 May 2019 10:06 #99926

  • joema
  • joema's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 1125
  • Thank you received: 236
  • Karma: 20
parkerhqj wrote:
Hi. I have a library that I can't open - it keeps crashing whenever I try. My other libraries are fine. I've rebooted & trashed preferences to no avail. My backup library also crashes. I keep the library on an external drive and all the media in an external folder. Any suggestions? thx!

First rule out the simple things - Verify your external drives are HFS+, not exFAT or NTFS. Run Disk Utility First Aid on all drives, make sure you have plenty of free space on each drive, esp the system drive. Then verify your media files are viewable at the Finder level.

When you say "my backup library also crashes", do you mean a file-level backup you made, or the auto-backups FCPX keeps by default in /Movies/Final Cut Backups? If you haven't tried loading those backups, you can by File>Open Library>From Backups. Make a file level backup of your current library before trying this. If this method works, it's the easiest way.

If that doesn't work, make sure it's not a plugin causing the crash. This can be specific to a library, e.g, only one library might use a buggy plugin a certain way. It can be difficult to determine if a plugin is causing a crash on startup. Unfortunately there is no FCPX "safe mode" startup which disables all plugins.

In some cases examining the stack trace of the crashing thread can give some clues. When FCPX crashes you'll be shown a crash dialog. You can copy/paste the entire stack sequence to a .txt file to save. It will indicate what thread crashed -- that is the thread to examine. If you can isolate this and post it I'll review it, but I'm leaving on a field assignment tomorrow so may not have time.

In theory it's possible to disable specific plugins outside of FCPX by using terminal commands. I have never tried this and suggest extreme caution if doing this: developer.apple.com/library/archive/docu...TP40002180-CH238-SW1

If it still crashes, the SQLite database inside the library may be damaged. This consists of several databases, one for each event, filename CurrentVersion.fcpevent, plus a master database in CurrentVersion.flexolibrary at the top level.

In some cases you can open the library package and delete CurrentVersion.flexolibrary, then start FCPX and it will rebuild that and fix the problem. *Always* make a file-level backup of the library before touching anything inside it. In Finder you can right-click the library and select "duplicate". This is much easier if using a "lean library" where media and cache are stored outside.

If the problem is isolated to a specific event, it's possible to selectively delete events from within the library to find this. Obviously you must backup the library at the file level before trying this. To do this, open the library package and delete one event, then delete CurrentVersion.flexolibrary - this prevents FCPX from knowing an event is missing and it will try to load all events shown in the library. Then try to start FCPX. If it still crashes, revert to your file backup of the library, repeat the procedure for the next event.

It is also possible to salvage single events at a time at the file level to a "save" library. To do this create an empty new library, and in Finder right-click and "Show package contents". In another Finder window open your problem library and do the same. Drag/drop one event from the problem library to your salvage library. Be sure to hold down the OPT key else it might move, not copy, the event file. In the salvage library delete CurrentVersion.flexolibrary, then try to start FCPX and load that library. If it works you can repeat the process for each event which works, thus salvaging the ones not damaged.

If this process shows only one event is damaged, the SQLite database inside that event may be damaged. This is very rare, as SQLite has good integrity. Unfortunately fixing this reliably can be difficult and unpredictable. Here is a page listing some salvage and repair options for a SQLite database: wordpress.semnaitik.com/repair-sqlite-database/
The administrator has disabled public write access.

corrupted library 10 May 2019 13:38 #99928

  • parkerhqj
  • parkerhqj's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 459
  • Thank you received: 5
  • Karma: 1
Thanks for the responses, particularly joema - that's above & beyond! I'll look into all of this. For the moment, I'm so swamped, I've just worked around the problem. Hopefully, there's s solution in there somewhere! I did get Digital Rebellion's Pro Maintenance Tools. That might be a good way to avoid these problems in the first place.

thx!
The administrator has disabled public write access.

corrupted library 10 May 2019 14:01 #99929

  • dgwvideo
  • dgwvideo's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 1855
  • Thank you received: 215
  • Karma: 30
Redifer wrote:
I tell ya, if I had a corrupted Library and tried their trial software and it fixed it... I would buy it immediately since editing is my livelihood. I will keep them in mind, thanks for that tip!
.
This is exactly the situation that prompted me to purchase the software years ago.
Creating history....one edit at a time !
The administrator has disabled public write access.