obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
58.82k stars 7.83k forks source link

XComposite crashes obs #237

Closed Kipples closed 4 years ago

Kipples commented 10 years ago

XComposite will crash obs if _NET_CLIENT_LIST is not defined by the window manager.

BtbN commented 10 years ago

Without a backtrace there's not much i can do about that. There's no obvious problem in the related code.

Kipples commented 10 years ago

Heres a bt Pretty simple to reproduce if you remove _NET_CLIENT_LIST from root window 'xprop -remove _NET_CLIENT_LIST' fix is to configure your window manager to set this property correctly or switch to one that does

#0  0x00007f6713cd2d67 in raise () from /usr/lib/libc.so.6
#1  0x00007f6713cd4118 in abort () from /usr/lib/libc.so.6
#2  0x00007f67138f785d in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.2
#3  <signal handler called>
#4  0x00007f6713cd2d67 in raise () from /usr/lib/libc.so.6
#5  0x00007f6713cd4118 in abort () from /usr/lib/libc.so.6
#6  0x00007f67138f785d in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.2
#7  <signal handler called>
#8  0x00007f66ff5ef6f0 in ?? ()
#9  0x00007f6715ac08fd in _XError () from /usr/lib/libX11.so.6
#10 0x00007f6715abd867 in ?? () from /usr/lib/libX11.so.6
#11 0x00007f6715abd925 in ?? () from /usr/lib/libX11.so.6
#12 0x00007f6715abe8d0 in _XReply () from /usr/lib/libX11.so.6
#13 0x00007f6715aba18d in XSync () from /usr/lib/libX11.so.6
#14 0x00007f6715a9bbee in XCloseDisplay () from /usr/lib/libX11.so.6
#15 0x00007f66f2565685 in XCompcap::cleanupDisplay() () from /usr/lib/obs-plugins/linux-xcomposite.so
#16 0x00007f66f2563559 in obs_module_unload () from /usr/lib/obs-plugins/linux-xcomposite.so
#17 0x00007f67169b2f3c in free_module () from /usr/lib/libobs.so.0
#18 0x00007f67169a8ad9 in obs_shutdown () from /usr/lib/libobs.so.0
#19 0x0000000000438363 in OBSBasic::~OBSBasic() ()
#20 0x0000000000438579 in OBSBasic::~OBSBasic() ()
#21 0x00007f6714b2f178 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#22 0x00007f6716290897 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#23 0x00007f67163a91ab in QMainWindow::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#24 0x00007f671625215c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/libQt5Widgets.so.5
#25 0x00007f67162576ee in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#26 0x00007f6714affaeb in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/libQt5Core.so.5
#27 0x00007f6714b01ab3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/libQt5Core.so.5
#28 0x00007f6714b56ad3 in ?? () from /usr/lib/libQt5Core.so.5
#29 0x00007f67127a4b84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#30 0x00007f67127a4dc8 in ?? () from /usr/lib/libglib-2.0.so.0
#31 0x00007f67127a4e6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#32 0x00007f6714b56ec7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#33 0x00007f6714afd512 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#34 0x00007f6714b04ecc in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#35 0x0000000000427d80 in main ()