** Changed in: unity
       Status: Fix Committed => Fix Released

** Changed in: unity (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dp-unity
https://bugs.launchpad.net/bugs/915819

Title:
  unity crashes with SIGSEGV in GDK/GTK functions if run against
  upstream compiz.

Status in Unity:
  Fix Released
Status in “unity” package in Ubuntu:
  Fix Released

Bug description:
  I am building unity against the latest lp:compiz-core, and this causes
  unity to crash on startup.

  The reason for the crash is that GDK is not initialized. GDK is not
  initialized because GTK is not initialized. And GTK has not been
  initialized because unity seems to depend on a hack that is only
  present in lp:ubuntu/*/compiz:

  src/main.cpp:   gtk_init_check (&argc, &argv);

  This initialization is not present in upstream compiz (lp:compiz-
  core). So of course unity will crash as soon as it starts trying to
  call GDK or GTK. But upstream unity should NOT be depending on a hack
  that is only present in the ubuntu compiz branches. So I'm marking
  this as a bug in unity.

  WORKAROUND:
  Start unity with the "gtkloader" plugin, loaded before unity, if you're 
building and running against upstream compiz.

  CALL STACK:
  Program received signal SIGSEGV, Segmentation fault.
  0x00007fffe63fb550 in gdk_screen_get_width () from /usr/lib/libgdk-3.so.0
  (gdb) bt
  #0  0x00007fffe63fb550 in gdk_screen_get_width () from /usr/lib/libgdk-3.so.0
  #1  0x00007fffe7feba7a in unity::BGHash::GetPixbufFromBG (this=0xd3a290) at 
/home/dan/bzr/unity/run/plugins/unityshell/src/BGHash.cpp:376
  #2  0x00007fffe7fea765 in unity::BGHash::BGHash (this=0xd3a290) at 
/home/dan/bzr/unity/run/plugins/unityshell/src/BGHash.cpp:71
  #3  0x00007fffe7f149e8 in UnityScreen::UnityScreen (this=0xd39eb0, 
screen=0x67cad0) at 
/home/dan/bzr/unity/run/plugins/unityshell/src/unityshell.cpp:117
  #4  0x00007fffe7f29e70 in PluginClassHandler<UnityScreen, CompScreen, 
0>::getInstance (base=0x67cad0) at 
/home/dan/usr/include/compiz/core/pluginclasshandler.h:225
  #5  0x00007fffe7f254ab in PluginClassHandler<UnityScreen, CompScreen, 0>::get 
(base=0x67cad0) at /home/dan/usr/include/compiz/core/pluginclasshandler.h:269
  #6  0x00007fffe7f37316 in CompPlugin::VTableForScreenAndWindow<UnityScreen, 
UnityWindow>::initScreen (this=0xd419d0, s=0x67cad0) at 
/home/dan/usr/include/compiz/core/plugin.h:232
  #7  0x000000000045824a in CompManager::initPlugin (p=0xbc8100) at 
/home/dan/bzr/compiz-core/run/src/plugin.cpp:287
  #8  0x0000000000459e0e in CompPlugin::push (p=0xbc8100) at 
/home/dan/bzr/compiz-core/run/src/plugin.cpp:502
  #9  0x00000000004300af in PrivateScreen::updatePlugins (this=0x67cb90) at 
/home/dan/bzr/compiz-core/run/src/screen.cpp:910
  #10 0x0000000000430573 in PrivateScreen::processEvents (this=0x67cb90) at 
/home/dan/bzr/compiz-core/run/src/screen.cpp:662
  #11 0x000000000045cd71 in callback (this=<optimized out>) at 
/home/dan/bzr/compiz-core/run/src/eventsource.cpp:71
  #12 CompEventSource::callback (this=<optimized out>) at 
/home/dan/bzr/compiz-core/run/src/eventsource.cpp:63
  #13 0x00007ffff6e409df in Glib::Source::dispatch_vfunc(_GSource*, int 
(*)(void*), void*) () from /usr/lib/libglibmm-2.4.so.1
  #14 0x00007ffff631ca5d in g_main_context_dispatch () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
  #15 0x00007ffff631d258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #16 0x00007ffff631d429 in g_main_context_iteration () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
  #17 0x00007ffff6e41913 in Glib::MainContext::iteration(bool) () from 
/usr/lib/libglibmm-2.4.so.1
  #18 0x000000000042d309 in CompScreen::eventLoop (this=0x67cad0) at 
/home/dan/bzr/compiz-core/run/src/screen.cpp:127
  #19 0x000000000042215c in main (argc=<optimized out>, argv=0x7fffffffe648) at 
/home/dan/bzr/compiz-core/run/src/main.cpp:290
  (gdb) quit

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/915819/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to