Crash while loading Krita

Cyrille Berger Skott cberger at cberger.net
Mon Aug 8 12:55:02 UTC 2011


On Monday 08 August 2011, Silvio Heinrich wrote:
> Am 07.08.2011 17:16, schrieb Boudewijn Rempt:
> > On Sunday 07 August 2011 Aug, Boudewijn Rempt wrote:
> >> Damn! Now I get it as well :-(
> > 
> > Silvio... Can you take a look?
> > http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html tries to
> > explain the situation quite carefully. For now, I think the
> > artisticcolorselector should be disabled. On a side-note -- maybe
> > KisColor isn't the best name here -- it's a bit generic.
> 
> Did it really crash or was just the assertion thrown?
> It seems to me that the assertion is thrown no matter if the data is
> aligned at 16bytes or not and guessing from the Eigen docs all vectors
> of static size should be 16byte aligned anyway.
> Maybe Eigen has just some problem with the placement new operator.

You need to add this in the Core structure declaration:

public:
  EIGEN_MAKE_ALIGNED_OPERATOR_NEW

(and any other structure that contains a eigen vector)


-- 
Cyrille Berger Skott


More information about the kimageshop mailing list