Bug 388495 - AppImage conflicts with installed Qt libraries
Summary: AppImage conflicts with installed Qt libraries
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 3.3.2
Platform: Appimage Linux
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-03 14:44 UTC by Linus Larsson
Modified: 2018-03-20 07:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Linus Larsson 2018-01-03 14:44:28 UTC
Krita AppImage appear to use Qt packages installed on the system, instead of those provided within the AppImage itself:

QAccessibleTable::child: Invalid index at:  30 0
Cannot creat accessible child interface for object:  KisUndoView(0x1679c670)  index:  30
Segmentation fault (core dumped)

The segmentation fault may or may not be a result of (repeated occurrences) of the call to QAccessibleTable.

The following Qt-related(?) packages were installed on the system at the time of the error message. Upon removal, the error did not reoccur:

appmenu-qt
kactivities
kde-runtime
kde-runtime-data
kde-style-breeze
kde-style-breeze-qt4
kpackagelauncherqml
kpackagetool5
krita
krita-data
libdbusmenu-qt5
libkactivities6
libkdcraw23
libkexiv2-11v5
libkexiv2-data
libkf5activities5
libkf5archive5
libkf5calendarevents5
libkf5declarative-data
libkf5declarative5
libkf5jobwidgets-data
libkf5jobwidgets5
libkf5kiowidgets5
libkf5notifications-data
libkf5notifications5
libkf5package-data
libkf5package5
libkf5plasma5
libkf5plasmaquick5
libkf5quickaddons5
libkf5style5
liblightdm-qt-3-0
libphonon4qt5-4
libqt5qml5
libqt5quick5
libqt5quickwidgets5
okular
plasma-framework
plasma-scriptengine-javascript
qml-module-org-kde-activities
qml-module-org-kde-kquickcontrols
qml-module-org-kde-kquickcontrolsaddons
qml-module-qtquick-controls
qml-module-qtquick-dialogs
qml-module-qtquick-layouts
qml-module-qtquick-privatewidgets
qml-module-qtquick-window2
qml-module-qtquick2
qt-at-spi
qttranslations5-l10n
calligra-libs

Additional system specs retrieved from within the Krita AppImage are as follows:

Krita
  Version: 3.3.2

OS Information
  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.4.0-101-generic
  Pretty Productname: Ubuntu 16.04.3 LTS
  Product Type: ubuntu
  Product Version: 16.04

OpenGL Info
  Vendor:  NVIDIA Corporation
  Renderer:  "GeForce 6100 nForce 405/integrated/SSE2"
  Version:  "2.1.2 NVIDIA 304.135"
  Shading language:  1.20 NVIDIA via Cg compiler
  Requested format:  QSurfaceFormat(version 3.0, options QFlags(0x4), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  2)
  Current format:    QSurfaceFormat(version 2.1, options QFlags(0x4), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  0)
     Version: 2.1
     Supports deprecated functions true
     is OpenGL ES: false
Comment 1 Halla Rempt 2018-01-03 14:45:16 UTC
I suspect it's the qt-at-spi package that gets loaded dynamically.
Comment 2 Linus Larsson 2018-01-03 22:37:41 UTC
(In reply to Boudewijn Rempt from comment #1)
> I suspect it's the qt-at-spi package that gets loaded dynamically.

I got a new crash with preceding calls to QAccessibleTable tonight:

QAccessibleTable::child: Invalid index at:  31 0
Cannot creat accessible child interface for object:  KisUndoView(0x15bb7f90)  index:  31
Segmentation fault (core dumped)

qt-at-spi is not reinstalled on the system.

The following packages with "qt" in the name is installed on the system:

ibus-qt4					install
libdbusmenu-qt2:amd64				install
libibus-qt1					install
libntrack-qt4-1					install
libpolkit-qt-1-1:amd64				install
libpolkit-qt5-1-1:amd64				install
libpoppler-qt4-4:amd64				install
libqt4-dbus:amd64				install
libqt4-declarative:amd64			install
libqt4-designer:amd64				install
libqt4-help:amd64				install
libqt4-network:amd64				install
libqt4-opengl:amd64				install
libqt4-qt3support:amd64				install
libqt4-script:amd64				install
libqt4-scripttools:amd64			install
libqt4-sql:amd64				install
libqt4-sql-mysql:amd64				install
libqt4-sql-sqlite:amd64				install
libqt4-svg:amd64				install
libqt4-test:amd64				install
libqt4-xml:amd64				install
libqt4-xmlpatterns:amd64			install
libqt5clucene5:amd64				install
libqt5core5a:amd64				install
libqt5dbus5:amd64				install
libqt5designer5:amd64				install
libqt5gui5:amd64				install
libqt5help5:amd64				install
libqt5network5:amd64				install
libqt5printsupport5:amd64			install
libqt5script5:amd64				install
libqt5sql5:amd64				install
libqt5sql5-mysql:amd64				install
libqt5sql5-sqlite:amd64				install
libqt5svg5:amd64				install
libqt5test5:amd64				install
libqt5waylandclient5:amd64			install
libqt5widgets5:amd64				install
libqt5x11extras5:amd64				install
libqt5xml5:amd64				install
libqtassistantclient4:amd64			install
libqtcore4:amd64				install
libqtcore4:i386					deinstall
libqtdbus4:amd64				install
libqtglib-2.0-0:amd64				install
libqtgstreamer-0.10-0:amd64			install
libqtgui4:amd64					install
libqtscript4-core:amd64				install
libqtwebkit4:amd64				install
libtelepathy-qt4-2:amd64			install
oxideqt-codecs-extra:amd64			install
pinentry-qt					install
pinentry-qt4					install
python-qt4					install
python-qt4-dbus					install
python3-dbus.mainloop.pyqt5			install
python3-dbus.mainloop.qt			install
python3-pyqt4					install
python3-pyqt5					install
qtchooser					install
qtcore4-l10n					install
qtwayland5:amd64				install
sni-qt:i386					deinstall
Comment 3 Halla Rempt 2018-01-04 12:53:42 UTC
I have no idea how that's even possible...
Comment 4 Linus Larsson 2018-01-05 12:35:54 UTC
(In reply to Boudewijn Rempt from comment #3)
> I have no idea how that's even possible...

Perhaps the error message is misleading. KisUndoView appear to work with the history docker in Krita:

https://searchcode.com/codesearch/view/19399478/ (KisUndoView.h)
https://searchcode.com/codesearch/view/19399475/ (KisUndoView.cpp)

I have a couple of uneducated guesses:
- I've previously had hardware memory related issues, where my Nvidia driver appear to taint the kernel, thus have turned off hardware acceleration in Krita. Could this be hardware related as well; the undo stack is becoming corrupted?
- The history docker extension is using deprecated indexing config from a previous Krita install?
- Undo stack set too large; or another memory allocation user-side snafu?
Comment 5 Halla Rempt 2018-02-16 14:19:47 UTC
Can you please check with http://rempt.xs4all.nl/~boud/Krita-4.0.0-beta1-9f3212b-x86_64.appimage -- that's built in a different way.
Comment 6 Linus Larsson 2018-03-20 00:58:30 UTC
(In reply to Boudewijn Rempt from comment #5)
> Can you please check with
> http://rempt.xs4all.nl/~boud/Krita-4.0.0-beta1-9f3212b-x86_64.appimage --
> that's built in a different way.

Sadly no, I had to write over that Linux partition with another OS in the hopes of acquiring a more stable environ. to work with Krita in.

You are welcome to close this ticket as unresolved/could not reproduce.
Comment 7 Halla Rempt 2018-03-20 07:09:13 UTC
Okay, I guess we'd better do that then.