Ok... I understand where was the problem.
In my linux machine the database was in "home/gianluca/Documents/database.bib" ... but when I moved my Documents data... now on Mac the position is "Users/gianluca/Documents/dtatabase.bib" !!! I click on the bibtex field on Lyx... I removed the database pointing to "home/gianluca" and added the right one... and no more crash :-)

But a question arise: "Why don't simply report that the file doesn't exist ... instead of getting crash ???" Maybe, a simple check before running bibtex would be nice to avoid this kind of problems. In fact, I think that if I pass my lyx document to a my friend ... without the .bib.. lyx will crash :-( :-(

Cheers,
Gianluca


rgheck ha scritto:
G. Massera wrote:
Hello everybody,
this is not a bug... is a problem concerning my bibtex file... or installation but I can't understand how to fix it :-(
Ok, let's start from beginning.
I use lyx for creating my documents on Linux (OpenSuse 10.2) and I use a bib file for my references. All goes ok.
Some day ago, I buyed a Mac... and I'm moving all my work stuff on Mac.
I installed MacTex... and LyX 1.5.3
When I open a document created by me that use the .bib file... and I generate the .pdf (pdflatex)... Lyx crash with reporting the following lines on debug console:

- Running BibTeX.
- We got a translation
- terminate called after throwing an instance of 'boost::filesystem::basic_filesystem_error<boost::filesystem::basic_path<std::string, boost::filesystem::path_traits> >'
-  what():  boost::filesystem::exists
- Abort trap

So, I guessed that is a problem of my bib file... and in fact, if I remove only the bibtex field and the end of document... Lyx will not crash and generate a perfect PDF ... but I can't understand why bibtex crash LyX... and what I have to do for fix it.

Well, if LyX is crashing, that is a problem, whatever else is happening.

First, try exporting to LaTeX and running, from a terminal:
>latex yourfile
>bibtex yourfile
>latex yourfile
>latex yourfile
Report any error messages you get.

After that, one of us should have a look at the file and see if we can reproduce the crash. Can you get it to do it with just the bibtex field?

Richard




Reply via email to