Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've the issue that when I compile a LaTeX document that is located inside my Google Drive this will after a few turns make the OSX Google Drive application crash.

As this is an important document I want to keep it all the time inside the Google Drive location to ensure cloud backup but this ofcourse is not guaranteed if this makes my Google Drive crash all the time.

I don't seem te be able to identify what is causing this and I was hoping that maybe some people here have any idea what might cause this? We're talking about a 8 pages document with 3 images, so nothing crazy big or complex.

/edit. to complete the picture this is the error google drive gives:

An unknown issue occurred and Google Drive needs to quite. Error: PRIMARY KEY must be unique

With the suggesting if this happens often you should try to disconnect your account.

share|improve this question
    
What happens if you pause Google Drive while you're compiling? –  Al E. Oct 1 '12 at 2:22
    
It doesn't crash. For some reason my gut feeling says it becomes when compiling several files change at the same time. And then especially when you compile a few times after each other (fixing image issues for example) Google Drive crashes. –  Sander Oct 1 '12 at 10:57
    
I would suggest, then, that a Google Drive folder is not a good place for a lot of quick file changes in rapid succession. (I wonder if Dropbox or SkyDrive has the same sort of issue.) I would suggest either pausing the Google Drive service while you're compiling, or compile in a temp directory and only put the final product in the Google Drive folder. –  Al E. Oct 1 '12 at 12:59
    
Dropbox never had this issue before but I made my move to Google to keep all my files/emails/pictures in the same cloud as that saves money :-) –  Sander Oct 1 '12 at 14:58

2 Answers 2

I have no such problems with dropbox =P

now ... I'd guess that this is due to latex creating an deleting temporary files, such as .aux

To solve that, you might use some hacks to prevent the creation of said files inside the google drive.

My first idea would be to use pdflatex -output-directory /a/dir/ouside/the/google/drive. The files would be generated outside your google drive, but the sources would still be there (and, therefore, safe)

share|improve this answer

A quick Google search shows that this is a very common problem. The suggested fix is to look for conflicting files and remove them manually.

You can read the whole conversation here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.