SIGSEV problem: LyX, Zotero, LyZ and BibLaTeX translator

Hello!

I have a strange problem resulting in a 'SIGSEV'-problem in LyX. I use LyX in combination with Zotero and LyZ. I use the 'BibLaTeX' Export format (translator).

Normally everything works fine, but now I have to cite a german name with a special german character 'ß' in it and I think, this problem leads to the crash. When I pick that zotero item and say 'Cite in LyX', the following happens:

Quite unusually I get this message:

Zotero record has been changed.
Press OK to run 'Update BibTeX' and insert the citation.
Press Cancel to refrain from any action.

If I press 'OK' then, I get the message, that LyX crashed telling me the following (my translation from german to english):

SIGSEGV-signal received!
You found an error in LyX. Sorry; hopefully you did not lose any data.
Please read the the Introduction to see how to report errors and submit a prosome special characters. blem report, if necessary.
Thanks!

The name of the entry is 'Aßner'. Normally the citekey should look like 'assner_title_2010'. All the other special characters (like ä,ö,ü) are working fine. But this one does not and I don’t know why. I tried setting 'extensions.lyz.use_utf8' to 'true' in about:config, but that didn’t help either.

Has anyone a solution? (Except changing the name of the author :) )

Thank you very much in advance!
  • edited May 7, 2015
    that does sound like a LyX issue to me since ß is obviously a utf-8 character. You could customize Zotero's BibLaTeX export to replace it with ss in the citekey if you want to, that's not terribly hard (the file is biblatex.js in the translator folder in the zotero data folder), but it does require some basic javascript.
  • Thanks for the quick reply, adam.

    I tried as you suggested and edited BibLaTeX.js by adding the following line at the respective place (which – hopefully – is correct):

    r = r.replace(new RegExp("[ß]", 'g'), "ss");

    After saving, I tried again and unfortunately got the same behaviour and crash.

    Then I tried something, I should have done before and report in my initial post: I used some other Translators with LyZ (Bibtex, Better Biblatex, Better Bibtex) and I get the same crash with each. Do you have another idea?

    Thanks!
  • did you look at the citekey? I'd be surprised if the above would have removed the ß from anything.
  • You’re right! Actually I could not check, what was exported, because LyX crashes before LyZ adds the item to the bib file.

    But I’m getting closer: When I export the problematic item manually into a new bib file with BibLaTeX, it’s exported as "asner", which is totally fine. "ß" is replaced with "s". On the other hand I’m even more confused: So "ß" already is replaced by BibLaTeX. But then I’m back at the beginning, because I do not know, why LyX crashes.
  • Best I can advise is to look for a minimal example that causes the problem and ideally also test to manually complile a document with that using latex/bibtex.
    Among other things, that latter one, if it indeed still fails, would give you a better error. You could also post the biblatex output here, maybe someone spots something obvious.
  • I got it working – finally!

    After playing around a little bit, I set a new Bibtex Record in LyZ and deleted the old one, then created a new one, and in the end, I picked the first .bib file again and then it worked!

    Thanks again! :)

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.