Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947302 - =dev-db/sqlitebrowser-3.13.1: UI not loading properly on mate desktop with nvidia
Summary: =dev-db/sqlitebrowser-3.13.1: UI not loading properly on mate desktop with nv...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mattéo Rossillol‑‑Laruelle
URL: https://github.com/sqlitebrowser/sqli...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-01 12:21 UTC by OzTiram
Modified: 2025-01-08 21:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.txt,7.09 KB, text/plain)
2025-01-01 20:20 UTC, OzTiram
Details

Note You need to log in before you can comment on or make changes to this bug.
Description OzTiram 2025-01-01 12:21:22 UTC
The gentoo ebuild has some kind of weird interaction with QT libraries, which fail to load.

I could now figure how to fix, hence I reported a bug upstream (see link).


Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2025-01-01 12:30:49 UTC
...and what exactly is that supposed weird interaction in the ebuild?
Comment 2 OzTiram 2025-01-01 12:31:44 UTC
Please see the screenshots in the upstraem bug.
Comment 3 Andreas Sturmlechner gentoo-dev 2025-01-01 12:36:31 UTC
How is that related to the ebuild?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-01 12:39:00 UTC
(In reply to Andreas Sturmlechner from comment #3)
> How is that related to the ebuild?

Because the upstream AppImage works, so it implies it may be a packaging issue.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-01 12:39:20 UTC
Please share the full terminal output.
Comment 6 OzTiram 2025-01-01 12:45:25 UTC
I don't have any issues with other QT5 programs on this system.
The software when compiled from source does not have the issue.
Downgrading to 3.12 resolved the issue.

It's specifically an issue with that ebuild version.

Full output of the terminal is:

QPainter::begin: Paint device returned engine == 0, type:2
QPainter::begin: Paint device returned engine == 0, type:2 
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::setPen: Painter not active
...
endless repeats of these messages...
Comment 7 Andreas Sturmlechner gentoo-dev 2025-01-01 12:49:41 UTC
(In reply to Sam James from comment #4)
> Because the upstream AppImage works, so it implies it may be a packaging
> issue.
The wording implied the bug reporter had knowledge of a specific weird interaction in our ebuild. The Appimage may just use a different version of Qt.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-01 12:52:22 UTC
(In reply to OzTiram from comment #6)
> The software when compiled from source does not have the issue

The ebuild for 3.13.0 and 3.13.1 is basically the same functionally, though it drops the `>=dev-qt/qtconcurrent-5.15.9:5` dep (which looks wrong, see bug 945694).

The ebuild passes:
                -DFORCE_INTERNAL_QSCINTILLA=OFF
                -DFORCE_INTERNAL_QCUSTOMPLOT=OFF
                -DFORCE_INTERNAL_QHEXEDIT=OFF
If you change those to ON, does it work?
Comment 9 Andreas Sturmlechner gentoo-dev 2025-01-01 13:22:42 UTC
I've recently filed my own issue with them on trying to port to Qt6:
https://github.com/sqlitebrowser/sqlitebrowser/issues/3829

This is fatal in Qt6 but may also lead to unexpected issues in Qt5.
Comment 10 Andreas Sturmlechner gentoo-dev 2025-01-01 19:12:40 UTC
fwiw, I cannot reproduce that problem.

All listed (un-)bundled deps only exist with a single version in ::gentoo right now, so should be the same on your system.

app-editors/qhexedit2-0.8.9_p20210525-r3
dev-libs/qcustomplot-2.1.1
x11-libs/qscintilla-2.14.1-r1
Comment 11 OzTiram 2025-01-01 19:36:11 UTC
Changing :

                -DFORCE_INTERNAL_QSCINTILLA=ON
                -DFORCE_INTERNAL_QCUSTOMPLOT=ON
                -DFORCE_INTERNAL_QHEXEDIT=ON

Leads to:

$ sqlitebrowser 
sqlitebrowser: error while loading shared libraries: libqscintilla2.so: cannot open shared object file: No such file or directory
Comment 12 OzTiram 2025-01-01 19:37:46 UTC
Andreas, thanks for looking at it.
Maybe it's a an issue specific to mate\gtk and QT. What desktop env. are you using?
Comment 13 Andreas Sturmlechner gentoo-dev 2025-01-01 19:38:30 UTC
Plasma 6.

Maybe it is time you show us your emerge --info, should have been there from the beginning.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-01 19:39:45 UTC
(In reply to OzTiram from comment #11)
> $ sqlitebrowser
> sqlitebrowser: error while loading shared libraries: libqscintilla2.so:
> cannot open shared object file: No such file or directory

I'm not sure how it's possible for you to get this, given it depends on those.
Comment 15 OzTiram 2025-01-01 20:20:26 UTC
Created attachment 915666 [details]
emerge --info
Comment 16 OzTiram 2025-01-01 20:22:06 UTC
> I'm not sure how it's possible for you to get this, given it depends on those.

Isn't it what I just told the ebuild with:

                -DFORCE_INTERNAL_QSCINTILLA=ON
                -DFORCE_INTERNAL_QCUSTOMPLOT=ON
                -DFORCE_INTERNAL_QHEXEDIT=ON

I guess they are supposed to be bundled somehow, but they are not...
Comment 17 OzTiram 2025-01-03 00:22:26 UTC
 I did some more digging, and I was able to narrow the issue down to "it's only happening on mate desktop with nvidia".

I have multiple gentoo machines running intel and they don't have this issue. On the desktop with nvidia card, this happens only on mate-desktop.
Running xfce4 or plan X (with twm) the issue does not happen.
Comment 18 OzTiram 2025-01-08 19:47:26 UTC
So... after a very long research an multiple gentoo installation it turns out it's really an issue with mate+nvidia, which is fixed by setting the correct font DPI.
I commented on the upstream issue for those interested.
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-08 21:00:17 UTC
Thank you for following up.