Skip to content

earth: Fix unhandled return code

Sometimes compiz crashes due to accidentally deleted or corrupt $HOME/.compiz/images/clouds.jpg file, which can be reproduced by:

  1. Enable the earth plugin and the "Realtime cloudmap" option in its settings.
  2. Set "Realtime cloudmap url" to a random non-existing url.
  3. Delete $HOME/.compiz/images.
  4. Reload compiz.

I tried to debug and found that it's caused by dereferencing an unhandled NULL pointer returned from the TransformClouds function (see attached gdb log). This commit should fix this problem.

gdb_log.txt

Merge request reports