About the first crash, it seems it's not so simple...
@Aaack: Which version of the dock did you use just before this one? Did you used the development version? (e.g. from our Weekly PPA)
Can you also give us all output messages produced by this command?
$ grep -rn "\[Rainbow\]" ~/.config/cairo-dock/current_theme/plug-ins/rendering/rendering.conf -A 22
@fabounet: any idea? :-)
Why iNbRows == -1 in this case? Is is possible that some values in pDock or in myIconsParam structures are not yet defined when calling _cairo_dock_hide for the first time?
Hello Aaack,
About the second crash, it should be fixed on BZR!
(@fabounet: I think we have to add a special case for 'cairo-dock -m' => https:/ /bazaar. launchpad. net/~cairo- dock-team/ cairo-dock- core/cairo- dock/revision/ 1811?start_ revid=1811 )
About the first crash, it seems it's not so simple...
@Aaack: Which version of the dock did you use just before this one? Did you used the development version? (e.g. from our Weekly PPA)
Can you also give us all output messages produced by this command?
$ grep -rn "\[Rainbow\]" ~/.config/ cairo-dock/ current_ theme/plug- ins/rendering/ rendering. conf -A 22
@fabounet: any idea? :-)
Why iNbRows == -1 in this case? Is is possible that some values in pDock or in myIconsParam structures are not yet defined when calling _cairo_dock_hide for the first time?
int iNbRows = round ((pDock- >iMaxDockHeight - iMinRadius) / ((pDock- >iMaxIconHeight + my_iSpaceBetwee nRows) * fMaxScale));
(here iMinRadius = 115)
And iMaxDockHeight is defined before:
double fMaxScale = 1. + my_fRainbowMagn itude * myIconsParam. fAmplitude; iMaxIconHeight + my_iSpaceBetwee nIcons; Offset; consMin, iNbIcons) * iMaxIconWidth * fMaxScale / fCone;
int iMaxIconWidth = pDock->
double fCone = G_PI - 2 * my_fRainbowCone
int iNbIcons = g_list_length (pDock->icons);
int iMinRadius = MIN (my_iRainbowNbI
int iNbRows = (int) ceil (sqrt (2 * iNbIcons / fCone / fMaxScale) + .5); /// approximation, use complete formula
pDock- >iMaxDockHeight = iNbRows * (pDock- >iMaxIconHeight + my_iSpaceBetwee nRows) * fMaxScale + iMinRadius;