> The attached patch (against branch) fixes the problem for me and strikes me > sensible anyway.
It is sensible but the problem persists. Here, loading of the figure fails (not a problem), clicking on the inset works (improvement), but view pdflatex gives me *** glibc detected *** double free or corruption (!prev): 0x00000000012b3000 *** with backtrace: #0 0x00000037b322e25d in raise () from /lib64/tls/libc.so.6 #1 0x00000037b322fa5e in abort () from /lib64/tls/libc.so.6 #2 0x00000037b32635e1 in __libc_message () from /lib64/tls/libc.so.6 #3 0x00000037b32691ee in _int_free () from /lib64/tls/libc.so.6 #4 0x00000037b3269586 in free () from /lib64/tls/libc.so.6 #5 0x00000037b5dae29e in operator delete () from /usr/lib64/libstdc++.so.6 #6 0x00000037b5d90662 in std::string::_Rep::_M_destroy () from /usr/lib64/libstdc++.so.6 #7 0x00000037b5d908fa in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string () from /usr/lib64/libstdc++.so.6 #8 0x000000000075e686 in lyx::(anonymous namespace)::copyToDirIfNeeded (file=Variable "file" is not available. ) at src/insets/InsetGraphics.cpp:278 #9 0x000000000075eff0 in lyx::InsetGraphics::prepareFile (this=0x2a99c0a770, [EMAIL PROTECTED], [EMAIL PROTECTED]) at src/insets/InsetGraphics.cpp:605 #10 0x0000000000760f10 in lyx::InsetGraphics::latex (this=0x2a99c0a770, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) at src/insets/InsetGraphics.cpp:827 #11 0x00000000004a703e in lyx::Paragraph::Pimpl::simpleTeXSpecialChars ( this=0x2a99c0a5b0, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], Cheers, Bo