Hi, Scott and Paul.
Thanks for the suggestion.  Running lyx on debug mode provided some 
information.  See the dbg file attached. I deleted my ~/.lyx/preferences file, 
reconfigured lyx, closed and opened it again, as usual.  Got the same problem...
I was puzzled because I could not find any error message in any file created in 
the ./tmp/lyx_tmpdir.**** directories.

What I'm trying to do here is the following: I have a JPEG image which I want 
to edit somehow.  I'm doing this with xfig, Ipe and Inkscape, all of which can 
apply layers over the original image that contain the modifications I want to 
make.  So far, the only vector graphics app that works well with Instant 
Preview is Ipe.

With Inkscape, I initially imported the JPEG figure using the "link" option, 
which simply creates a link (duh!) to the original JPEG image.  In the debug 
test I'm sending attached, I created a newfile1.lyx text where I first inserted 
the original JPEG and then the Inkscape (*.svg) image.  Instant preview worked 
well with the jpeg, but I got the same blank square for the svg.  It seems that 
lyx was not able to follow the symbolic link contained in the svg file to the 
jpeg image.  Take a look at the last lines of the dbg.

After this test I decided to create another Inkscape svg file, where I inserted 
the jpeg with the "embed" option.  This time, I was able to view the image on 
lyx.  I guess this is why Ipe works, since it always embed the imported images 
into its *.ipe files...

Anyway, I hope this is useful somehow.
Thanks again.

On Saturday 27 April 2013 18:00:10 Scott Kostyshak wrote:
> I'm not having this problem on Ubuntu 12.04 using LyX 2.0.x and LyX
> 2.1 development. Are you sure you need to define the converters
> manually? There's a lot of old info on that wiki page. Have you tried
> without? Just delete your prefs, reconfigure LyX, and restart.
> 
> If that doesn't work, you might get some useful information from 'lyx
> -dbg graphics'.
> 
> Scott
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741
rudi@pcpl7-placa2|lyx>lyx -dbg graphics newfile1.lyx 
Setting debug level to graphics
Debugging `graphics' (Graphics conversion and loading)
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading 
configurations from ~/.fonts.conf is deprecated.
FileName.cpp (832): filetools(getFormatFromContents)
        File type not recognised before EOF!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (945): Recognised Fileformat: agr
FileName.cpp (832): filetools(getFormatFromContents)
        File type not recognised before EOF!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (832): filetools(getFormatFromContents)
        File type not recognised before EOF!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (832): filetools(getFormatFromContents)
        File type not recognised before EOF!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
LyX: BN_BIND: Unknown LyX function `math-number' [around line 56 of file 
/tmp/convert_bind.MT4363 current token: 'math-number' context: '']
LyX: BN_BIND: Unknown LyX function `math-nonumber' [around line 57 of file 
/tmp/convert_bind.MT4363 current token: 'math-nonumber' context: '']
KeyMap.cpp (392): KeyMap::read: error while reading bind 
file:/tmp/convert_bind.MT4363
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
KeyMap.cpp (392): KeyMap::read: error while reading bind 
file:/usr/share/lyx/bind/cua.bind
FileName.cpp (832): filetools(getFormatFromContents)
        File type not recognised before EOF!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: ps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: gif
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: gif
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
Format.cpp (147):       will guess format from file extension: svg -> svg
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: jpg
FileName.cpp (945): Recognised Fileformat: png
FileName.cpp (945): Recognised Fileformat: gif
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: pdf
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
Format.cpp (147):       will guess format from file extension: svg -> svg
FileName.cpp (945): Recognised Fileformat: fig
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (945): Recognised Fileformat: eps
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (832): filetools(getFormatFromContents)
        File type not recognised before EOF!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (832): filetools(getFormatFromContents)
        File type not recognised before EOF!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (832): filetools(getFormatFromContents)
        File type not recognised before EOF!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (832): filetools(getFormatFromContents)
        File type not recognised before EOF!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
insets/InsetGraphics.cpp (145): Token: 'filename'
insets/InsetGraphics.cpp (145): Token: '\end_inset'
insets/InsetGraphics.cpp (145): Token: 'filename'
insets/InsetGraphics.cpp (145): Token: '\end_inset'
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
FileName.cpp (945): Recognised Fileformat: jpg
graphics/GraphicsCacheItem.cpp (378): [CacheItem::Impl::convertToDisplayFormat]
        Attempting to convert image file: /home/rudi/temp/lyx/figs/fig20.jpeg
        with displayed filename: ~/temp/lyx/figs/fig20.jpeg
FileName.cpp (945): Recognised Fileformat: jpg
graphics/GraphicsCacheItem.cpp (385): 
        The file contains jpg format data.
GuiApplication.cpp (183): 
The image loader can load the following directly:

GuiApplication.cpp (190): BW, 
GuiApplication.cpp (190): EPS, 
GuiApplication.cpp (190): EPSF, 
GuiApplication.cpp (190): EPSI, 
GuiApplication.cpp (190): EXR, 
GuiApplication.cpp (190): PCX, 
GuiApplication.cpp (190): PSD, 
GuiApplication.cpp (190): RAS, 
GuiApplication.cpp (190): RGB, 
GuiApplication.cpp (190): RGBA, 
GuiApplication.cpp (190): SGI, 
GuiApplication.cpp (190): TGA, 
GuiApplication.cpp (190): XCF, 
GuiApplication.cpp (190): bmp, 
GuiApplication.cpp (190): bw, 
GuiApplication.cpp (190): dds, 
GuiApplication.cpp (190): eps, 
GuiApplication.cpp (190): epsf, 
GuiApplication.cpp (190): epsi, 
GuiApplication.cpp (190): exr, 
GuiApplication.cpp (190): gif, 
GuiApplication.cpp (190): ico, 
GuiApplication.cpp (190): jp2, 
GuiApplication.cpp (190): jpeg, 
GuiApplication.cpp (190): jpg, 
GuiApplication.cpp (190): mng, 
GuiApplication.cpp (190): pbm, 
GuiApplication.cpp (190): pcx, 
GuiApplication.cpp (190): pgm, 
GuiApplication.cpp (190): pic, 
GuiApplication.cpp (190): png, 
GuiApplication.cpp (190): ppm, 
GuiApplication.cpp (190): psd, 
GuiApplication.cpp (190): ras, 
GuiApplication.cpp (190): rgb, 
GuiApplication.cpp (190): rgba, 
GuiApplication.cpp (190): sgi, 
GuiApplication.cpp (190): svg, 
GuiApplication.cpp (190): svgz, 
GuiApplication.cpp (190): tga, 
GuiApplication.cpp (190): tif, 
GuiApplication.cpp (190): tiff, 
GuiApplication.cpp (190): xbm, 
GuiApplication.cpp (190): xcf, 
GuiApplication.cpp (190): xpm, 
GuiApplication.cpp (190): xv, 
graphics/GraphicsCache.cpp (91): LyX recognises the following image formats:
graphics/GraphicsCache.cpp (98): eps
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): bmp
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): eps
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): gif
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): jpg
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): jpg
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): pbm
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): pgm
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): png
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): ppm
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): svg
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): tiff
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): xbm
graphics/GraphicsCache.cpp (97): , 
graphics/GraphicsCache.cpp (98): xpm
graphics/GraphicsCache.cpp (100): 

graphics/GraphicsCacheItem.cpp (390):   No conversion needed (from == to)!
graphics/GraphicsCacheItem.cpp (293): Loading image.
graphics/GraphicsCacheItem.cpp (299): Image loading succeeded.
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
graphics/GraphicsCacheItem.cpp (378): [CacheItem::Impl::convertToDisplayFormat]
        Attempting to convert image file: /home/rudi/temp/lyx/figs/drawing.svg
        with displayed filename: ~/temp/lyx/figs/drawing.svg
FileName.cpp (950): filetools(getFormatFromContents)
        Couldn't find a known format!
Format.cpp (147):       will guess format from file extension: svg -> svg
graphics/GraphicsCacheItem.cpp (385): 
        The file contains svg format data.
graphics/GraphicsCacheItem.cpp (390):   No conversion needed (from == to)!
graphics/GraphicsCacheItem.cpp (293): Loading image.
couldn't create image from  "file:///home/rudi/temp/lyx/figs/fig20.jpeg" 
graphics/GraphicsCacheItem.cpp (299): Image loading succeeded.
 

Reply via email to