Bug#1023722: qrenderdoc crashes immediately

2022-11-24 Thread Bernhard Übelacker

Dear Maintainer,
this issue was also discussed upstream in [1] [2].

There the reason was given, that running the application
inside a KDE plasma session makes Qt pick up some KDE
shared libraries (KDEPlasmaPlatformTheme.so),
which does its own GL interactions, which is
not expected by qrenderdoc at that time.

A package built with upstream patch [3] makes qrenderdoc
not crash at startup inside a KDE plasma session.

Kind regards,
Bernhard

[1] https://github.com/baldurk/renderdoc/issues/2772
[2] https://github.com/baldurk/renderdoc/issues/2752
[3] 
https://github.com/baldurk/renderdoc/commit/101dbda8c34888bf2051c3c257da3a1702705ef9


(rr) bt
#0  0x7f1d2b62cfd2 in glGetString_renderdoc_hooked (name=eGL_VERSION) at 
./renderdoc/driver/gl/gl_hooks.cpp:158
#1  glGetString (name=eGL_VERSION) at ./renderdoc/driver/gl/gl_hooks.cpp:158
#2  0x7f1d285f4359 in getGlString (param=7938) at 
./src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp:144
#3  updateFormatFromContext (format=...) at 
./src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp:174
#4  0x7f1d285f5b7e in QGLXContext::init (this=0x56133bffce60, screen=, share=) at 
./src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp:416
#5  0x7f1d285f31b7 in QXcbGlxIntegration::createPlatformOpenGLContext 
(this=, context=0x7ffebfee1400) at 
./src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxintegration.cpp:197
#6  0x7f1d2a3827bd in QOpenGLContext::create 
(this=this@entry=0x7ffebfee1400) at kernel/qopenglcontext.cpp:612
#7  0x7f1d2513603c in checkBackend (checkContext=...) at 
./src/platformtheme/qtquickrenderersettings.cpp:43
#8  initializeRendererSessions () at 
./src/platformtheme/qtquickrenderersettings.cpp:79
#9  initializeRendererSessions () at 
./src/platformtheme/qtquickrenderersettings.cpp:52
#10 0x7f1d29cb7aaf in qt_call_pre_routines () at 
kernel/qcoreapplication.cpp:317
#11 QCoreApplicationPrivate::init (this=this@entry=0x56133be84620) at 
kernel/qcoreapplication.cpp:849
#12 0x7f1d2a337b8c in QGuiApplicationPrivate::init 
(this=this@entry=0x56133be84620) at kernel/qguiapplication.cpp:1530
#13 0x7f1d2ab684c9 in QApplicationPrivate::init (this=0x56133be84620) at 
kernel/qapplication.cpp:513
#14 0x56133a722884 in main ()
(rr)

https://invent.kde.org/plasma/plasma-integration/-/blob/97a2a802948d7ff91be6db564472d2c82286bd2f/src/platformtheme/qtquickrenderersettings.cpp#L103
https://github.com/qt/qtbase/blob/ca254a0937d58e573a0e2b210590de2a02326e5f/src/corelib/kernel/qcoreapplication.cpp#L291



Bug#1023722: qrenderdoc crashes immediately

2022-11-08 Thread Zeb Figura
Package: qrenderdoc
Version: 1.22+dfsg-1
Severity: important

Dear Maintainer,

qrenderdoc crashes immmediately when run:

whatsit@camazotz:~$ qrenderdoc
Segmentation fault (core dumped)

A gdb backtrace suggests it's crashing trying to call the host glGetString,
which is NULL for some reason. I don't know why this would be. This is 64-bit
qrenderdoc; 64-bit glxgears works fine. Using `renderdoccmd capture` and
`renderdoccmd replay` also works fine.

This does not happen with the upstream renderdoc 1.22 package available at
.

gdb backtrace pasted below:

(gdb) bt
#0  0x in ?? ()
#1  0x7622cfd7 in glGetString_renderdoc_hooked (name=eGL_VERSION) at
./renderdoc/driver/gl/gl_hooks.cpp:158
#2  glGetString (name=eGL_VERSION) at ./renderdoc/driver/gl/gl_hooks.cpp:158
#3  0x73622359 in getGlString (param=7938) at
./src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp:144
#4  updateFormatFromContext (format=...) at
./src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp:174
#5  0x73623b7e in QGLXContext::init (this=0x5663ad30,
screen=, share=) at
./src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp:416
#6  0x736211b7 in QXcbGlxIntegration::createPlatformOpenGLContext
(this=, context=0x7fffd0f0) at
./src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxintegration.cpp:197
#7  0x74f827bd in QOpenGLContext::create (this=0x7fffd0f0) at
kernel/qopenglcontext.cpp:612
#8  0x701bd03c in ?? () from /usr/lib/x86_64-linux-
gnu/qt5/plugins/platformthemes/KDEPlasmaPlatformTheme.so
#9  0x748b7aaf in QCoreApplicationPrivate::init() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x74f37b8c in QGuiApplicationPrivate::init (this=0x5652c620) at
kernel/qguiapplication.cpp:1530
#11 0x757684c9 in QApplicationPrivate::init() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x55820884 in main ()


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages qrenderdoc depends on:
ii  libc6 2.36-4
ii  libgcc-s1 12.2.0-9
ii  libgl11.5.0-1
ii  libpython3.10 3.10.8-3
ii  libqt5core5a  5.15.6+dfsg-2
ii  libqt5gui55.15.6+dfsg-2
ii  libqt5network55.15.6+dfsg-2
ii  libqt5svg55.15.6-2
ii  libqt5widgets55.15.6+dfsg-2
ii  libqt5x11extras5  5.15.6-2
ii  librenderdoc  1.22+dfsg-1
ii  libstdc++612.2.0-9

qrenderdoc recommends no packages.

qrenderdoc suggests no packages.

-- no debconf information