I have LyX 2.0.0rc3 on Xubuntu 11.04 x64. I'm working with the tufte handout document class, and I am receiving two errors when I insert the marginfigure environment around a graphic (from the Insert menu, not as ERT):
Missing number, treated as zero, and Illegal unit of measure (pt) inserted. Everything works fine with no marginfigure and just the graphic. I'm confused about this sort of error in general, because lyx should supply all necessary parameters, shouldn't it?