Cairo-Dock 3.3.99-rc1: crash at startup

Bug #1360681 reported by Matthieu Baerts
4
Affects Status Importance Assigned to Milestone
Cairo-Dock Core
Fix Committed
High
Fabounet

Bug Description

Hey guys!

Welp, today I had a bunch of upgrades for my computer, so I went ahead and upgraded them. Since it was a while since the last reboot and there was a ton of X-sever updates I decided to go ahead and just reboot my computer.

Cario-dock never ran again, however my startup apps did, so I used one to open a terminal and run cairo dock from the terminal.

Not sure what happened really, any suggestion would be greatly appreciated.

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Here is the log file

Changed in cairo-dock-core:
importance: Undecided → High
milestone: none → 3.3.99.rc
Revision history for this message
Matthieu Baerts (matttbe) wrote :

Hello Aaack and thank you for this bug report,

Is it maybe possible to get a backtrace of this crash? It will be really helpful and it's not complicated thanks to this wiki page: http://wiki.glx-dock.org/?p=ddd

Revision history for this message
Aaack Aardvark (aaackforever) wrote :

Ok! i've followed the instructions and generated the text file, if you need more data, don't hesitate in asking!

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Thank you for this backtrace!
I'll try to have a look in the code ASAP.

Note that it seems it's due to the Rainbow view. As temporary workaround, you can launch the dock with this command and disable the use of the Rainbow view for docks and subdocks:

    $ cairo-dock -m

Revision history for this message
Aaack Aardvark (aaackforever) wrote :

Hey Matthieu!

Interesting, I've tried your suggestion and entered into maintenance mode. Went to the docks option (Im sorry if that's not the exact name) and just trying to open the option caused an insta crash.

So ... I tried several times in different combinations with the same consistent result.

I made a backtrace of that too just in case, I'm attaching it as gdb cairo-m.txt.

Revision history for this message
Matthieu Baerts (matttbe) wrote :

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_iSpaceBetweenRows) * fMaxScale));

(here iMinRadius = 115)

And iMaxDockHeight is defined before:

 double fMaxScale = 1. + my_fRainbowMagnitude * myIconsParam.fAmplitude;
 int iMaxIconWidth = pDock->iMaxIconHeight + my_iSpaceBetweenIcons;
 double fCone = G_PI - 2 * my_fRainbowConeOffset;
 int iNbIcons = g_list_length (pDock->icons);
 int iMinRadius = MIN (my_iRainbowNbIconsMin, iNbIcons) * iMaxIconWidth * fMaxScale / fCone;

 int iNbRows = (int) ceil (sqrt (2 * iNbIcons / fCone / fMaxScale) + .5); /// approximation, use complete formula

 pDock->iMaxDockHeight = iNbRows * (pDock->iMaxIconHeight + my_iSpaceBetweenRows) * fMaxScale + iMinRadius;

Changed in cairo-dock-core:
assignee: nobody → Fabounet (fabounet03)
Revision history for this message
Matthieu Baerts (matttbe) wrote :

@Aaack: I just updated our "Weekly" PPA. New packages will be available in a few minutes (max: 15 minutes).

Is it maybe possible to upgrade all your Cairo-Dock packages and check if you still have any crash? :-)

Revision history for this message
Aaack Aardvark (aaackforever) wrote :

Hi Matthieu!

Ok heres the output of the grep:

spike@Verovamped:~$ grep -rn "\[Rainbow\]" ~/.config/cairo-dock/current_theme/plug-ins/rendering/rendering.conf -A 22
146:[Rainbow]
147-
148-#i+[0;40] Space between rows:
149-space between rows=10
150-
151-#i+[0;40] Space between icons:
152-space between icons=8
153-
154-#e+[0;1] Magnitude of the wave:
155-#{0 represents a flat wave, 1 means the wave is identical to other views.}
156-wave magnitude=0.29999999999999999
157-
158-#i+[1;20] Number of icons on the first row:
159-nb icons min=3
160-
161-#e+[60;180] Cone width:
162-#{in degrees. The lower the value, the narrower the cone. 180° represents a wide open cone.}
163-cone=130
164-
165-#C+ Bow colour:
166-#{Set transparency to 0 to not use it. This is quite slow with cairo.}
167-bow color=0.69994659342336152;0.89999237048905167;1;0.49999237048905165;
168-
spike@Verovamped:~$

Also the version I'm using is from the weekly PPA, hummm according to synaptic is...

3.3.99.rc1.1~20140818~bzr1809-0ubuntu1~ppa0~trusty

I will upgrade it, and report the results as soon as I get home!

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Thank you!

And do you know what was the previous version just before this one?
This command should help you to find this information:

    $ grep cairo-dock-core /var/log/apt/history.log

You should see something like that: cairo-dock-core:amd64 (OLD_VERSION:NEW_VERSION)

Revision history for this message
Aaack Aardvark (aaackforever) wrote :
Download full text (7.9 KiB)

Sorry for the delay, ITS ALIVE! ^^

The new version works as a charm now!

about the versions:

spike@Verovamped:~$ grep cairo-dock-core /var/log/apt/history.log
Install: libmono-profiler-gui-thread-check:amd64 (2.99.2-2ubuntu1, automatic), libghc-colour-dev:amd64 (2.3.3-4, automatic), libcairo1.10-cil:amd64 (2.99.2-2ubuntu1, automatic), libghc-glib-prof:amd64 (0.12.4-3, automatic), cairo-dock-core:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2.1, automatic), compiz-plugins:amd64 (0.9.11.2+14.04.20140714-0ubuntu1, automatic), libfltk-cairo1.3:amd64 (1.3.2-4), libgdk3.0-cil:amd64 (2.99.2-2ubuntu1, automatic), ghc-prof:amd64 (7.6.3-10, automatic), cairo-dock-plug-ins-dbus-interface-python:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2, automatic), libsigc++-2.0-dev:amd64 (2.2.10-0.2ubuntu2, automatic), libghc-svgcairo-prof:amd64 (0.12.1-4), libgldi3:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2.1, automatic), libghc-svgcairo-dev:amd64 (0.12.1-4), libgoocanvas-dev:amd64 (0.15-1.1ubuntu1), libcairomm-1.0-dev:amd64 (1.10.0-1ubuntu3), libgio3.0-cil-dev:amd64 (2.99.2-2ubuntu1, automatic), libcroco3-dev:amd64 (0.6.8-2ubuntu1, automatic), libghc-cairo-prof:amd64 (0.12.4-3, automatic), libgtk3.0-cil:amd64 (2.99.2-2ubuntu1, automatic), libccss-1-5:amd64 (0.5.0-4, automatic), libccss-dev:amd64 (0.5.0-4), cairo-dock:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2.1, automatic), libatk3.0-cil:amd64 (2.99.2-2ubuntu1, automatic), libghc-pango-prof:amd64 (0.12.4-3), cairo-dock-plug-ins-integration:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2, automatic), libghc-transformers-prof:amd64 (0.3.0.0-5, automatic), libetpan15:amd64 (1.0-5ubuntu3, automatic), libghc-data-accessor-dev:amd64 (0.2.2.3-3, automatic), libghc-data-accessor-template-dev:amd64 (0.2.1.10-3, automatic), libgtk3.0-cil-dev:amd64 (2.99.2-2ubuntu1), libghc-utility-ht-dev:amd64 (0.0.5.1-6, automatic), libpango3.0-cil:amd64 (2.99.2-2ubuntu1, automatic), libgldi-dev:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2.1), libghc-chart-dev:amd64 (0.16-3), python3-cairo-dev:amd64 (1.10.0+dfsg-3ubuntu2), libghc-mtl-prof:amd64 (2.1.2-4, automatic), cairo-dock-data:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2.1, automatic), libglib3.0-cil-dev:amd64 (2.99.2-2ubuntu1, automatic), cairo-dock-plug-ins-data:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2, automatic), cairo-dock-plug-ins:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2, automatic), libfltk1.3:amd64 (1.3.2-4, automatic), libgio3.0-cil:amd64 (2.99.2-2ubuntu1, automatic)
Upgrade: cairo-dock-core:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2.1, 3.3.99.rc1.1~20140818~bzr1809-0ubuntu1~ppa0~trusty), cairo-dock-plug-ins-dbus-interface-python:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2, 3.3.99.rc1.1~20140818~bzr3115-0ubuntu1~ppa0~trusty), libgldi3:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2.1, 3.3.99.rc1.1~20140818~bzr1809-0ubuntu1~ppa0~trusty), cairo-dock:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2.1, 3.3.99.rc1.1~20140818~bzr1809-0ubuntu1~ppa0~trusty), cairo-dock-plug-ins-integration:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2, 3.3.99.rc1.1~20140818~bzr3115-0ubuntu1~ppa0~trusty), cairo-dock-data:amd64 (3.3.99.beta1.2.really.3.3.2-0ubuntu2.1, 3.3.99.rc1.1~20140818~bzr1809-0ubuntu1~ppa0...

Read more...

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Thank you for these new details and tests!

Any idea of what has changed between 3.3.2 (Trusty's version, with a few patches[1]) and 3.3.99 to cause this crash? :-)

[1] http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/cairo-dock/trusty/files/head:/debian/patches/ and http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/cairo-dock-plug-ins/trusty/files/head:/debian/patches/

Revision history for this message
Aaack Aardvark (aaackforever) wrote :

Actually nothing Matthieu.

I changed from the official trusty distro packages to the weekly repository after reading the answers of the PPA, because the trusty version wont change workspaces, and I use normally 8 or 10 (yep, when you work with 3d and video, that's normal).

That new weekly version (last week) worked as a charm until i made upgrades to the system in general that included new xorg gl drivers and packages regarding open gl ( i cant remember which ones, but if it's important I can trace those changes). After the upgrade Cairo-dock stopped working.

i believe i wrote that before, im not sure how to classify this problem, if a bug, but actually it worked before, so it was more like a new uncompatibility with the upgraded version of Ubuntu 14.04.

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Sorry, it seems I forgot to add "@fabounet" :-)

*@fabounet*: Any idea of what has changed between 3.3.2 (Trusty's version, with a few patches[1]) and 3.3.99 to cause this crash? :-)

Revision history for this message
Fabounet (fabounet03) wrote : Re: [Bug 1360681] Re: Cairo-Dock 3.3.99-rc1: crash at startup

I'll take a look, most probably the "iNbRows == -1" in the gdb backtrace is
the reason.

2014-08-25 15:24 GMT+02:00 Matthieu Baerts <email address hidden>:

> Sorry, it seems I forgot to add "@fabounet" :-)
>
> *@fabounet*: Any idea of what has changed between 3.3.2 (Trusty's
> version, with a few patches[1]) and 3.3.99 to cause this crash? :-)
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1360681
>
> Title:
> Cairo-Dock 3.3.99-rc1: crash at startup
>
> Status in Cairo-Dock : Core:
> New
>
> Bug description:
> Hey guys!
>
> Welp, today I had a bunch of upgrades for my computer, so I went ahead
> and upgraded them. Since it was a while since the last reboot and
> there was a ton of X-sever updates I decided to go ahead and just
> reboot my computer.
>
> Cario-dock never ran again, however my startup apps did, so I used one
> to open a terminal and run cairo dock from the terminal.
>
> Not sure what happened really, any suggestion would be greatly
> appreciated.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/1360681/+subscriptions
>

Changed in cairo-dock-core:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.