Bug 474095 - Images not loaded at all when starting gcompris
Summary: Images not loaded at all when starting gcompris
Status: RESOLVED FIXED
Alias: None
Product: gcompris
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jazeix Johnny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-03 12:51 UTC by Edgar Hipp
Modified: 2023-09-04 17:30 UTC (History)
1 user (show)

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


Attachments
Gcompris without images (172.25 KB, image/png)
2023-09-03 12:51 UTC, Edgar Hipp
Details
Other screen (168.63 KB, image/png)
2023-09-03 12:51 UTC, Edgar Hipp
Details
Third screen (75.57 KB, image/png)
2023-09-03 12:52 UTC, Edgar Hipp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edgar Hipp 2023-09-03 12:51:40 UTC
Created attachment 161365 [details]
Gcompris without images

SUMMARY

See attachment, the gcompris software does not work properly, it worked a few months ago.

All images are now not loaded, making it almost inpossible to play any game.

STEPS TO REPRODUCE
1. sudo apt-get install 
1.  gcompris-qt

OBSERVED RESULT

Images are not loaded

EXPECTED RESULT

Images should be loaded

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Ubuntu 22.04.3 LTS
(available in About System)
KDE Plasma Version: ???
KDE Frameworks Version: ???
Qt Version:  Qt: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Edgar Hipp 2023-09-03 12:51:58 UTC
Created attachment 161366 [details]
Other screen
Comment 2 Edgar Hipp 2023-09-03 12:52:10 UTC
Created attachment 161367 [details]
Third screen
Comment 3 Edgar Hipp 2023-09-03 12:52:37 UTC
Note that I've also tried building gcompris myself on master (commit d1c379b291256c121f1f39dd40a2ea0dcc713dde), and it also had the same behavior.
Comment 4 Jazeix Johnny 2023-09-03 13:28:47 UTC
Hi,
can you check if you have the qt5-image-formats-plugins package installed? It seems the svg files are not loading, I'll dig more if it is not due to this missing package.
Comment 5 animtim 2023-09-03 18:30:36 UTC
This is very weird, but surely due to a local issue on your system... Also I doubt that it's the plugin to load svg that's missing, as the background of the menu and the activity (which are also svg) are loading fine.

Can you check when starting it from command-line if you see some relevant log ?

Also, can you check if you can reproduce the issue with our standalone installer (from https://gcompris.net/downloads-en.html ) ? That could give a hint to find where the issue comes from.
Comment 6 Edgar Hipp 2023-09-03 18:50:26 UTC
Here is the output of running "gcompris-qt" from the command line : 

```
exeCount set to:  123
"Invalid level 4 for activity learn_subtractions/Learn_subtractions.qml, removing it"
"Invalid level 5 for activity learn_subtractions/Learn_subtractions.qml, removing it"
qml: enter main.qml (run #123, ratio=2.3076923076923075, fontRatio=2.4305156220049837, dpi=169, userDataPath=/home/edgar/.local/share/GCompris)
Downloading resource file "data2/voices-ogg/voices-en_US.rcc"
Downloading resource file "data2/words/words-webp.rcc"
Download of QUrl("https://cdn.kde.org/gcompris/data2/words/words-webp.rcc") is already running, skipping second attempt.
notifyWordset:  "data2/words/words-webp.rcc"
Downloading resource file "data2/backgroundMusic/backgroundMusic-ogg.rcc"
Successfully registered resource "/home/edgar/.cache/KDE/gcompris-qt/data2/backgroundMusic/backgroundMusic-ogg.rcc"
qrc:/gcompris/src/activities/menu/Menu.qml:94:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/gcompris/src/core/GCSingletonFontLoader.qml:31:41: QML FontLoader: Cannot load font: "qrc:/gcompris/src/core/resource/fonts/Andika-R.ttf"
qrc:/gcompris/src/core/Bar.qml:315:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/gcompris/src/core/Bar.qml:268:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/gcompris/src/activities/menu/Menu.qml:708:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
QSGTextureAtlas: texture atlas allocation failed, code=501
Local resource is up-to-date: "voices-en_US.rcc"
Successfully registered resource "/home/edgar/.cache/KDE/gcompris-qt/data2/voices-ogg/voices-en_US.rcc"
Local resource is up-to-date: "words-webp.rcc"
Successfully registered resource "/home/edgar/.cache/KDE/gcompris-qt/data2/words/words-webp.rcc"
Local resource is up-to-date: "backgroundMusic-ogg.rcc"
previous height set to:  1200
DownloadManager: shutting down, 0 active jobs
DownloadManager: shutting down, 0 active jobs
```
Comment 7 Edgar Hipp 2023-09-03 18:51:37 UTC
I see that the package "qt5-image-formats-plugin is already installed" : 

qt5-image-formats-plugins is already the newest version (5.15.3-1).
Comment 8 Edgar Hipp 2023-09-03 18:53:35 UTC
When I run it from the installer it nows works fine !!

And here is the output from running the script in the downloads folder : 

```
$ ~/Downloads/gcompris-qt-3.3-Linux/bin/gcompris-qt.sh
exeCount set to:  127
qml: enter main.qml (run #127, ratio=2.3076923076923075, fontRatio=2.4305156220049837, dpi=169, userDataPath=/home/edgar/.local/share/GCompris)
Downloading resource file "data2/voices-ogg/voices-en_US.rcc"
Downloading resource file "data2/words/words-webp.rcc"
Download of QUrl("https://cdn.kde.org/gcompris/data2/words/words-webp.rcc") is already running, skipping second attempt.
notifyWordset:  "data2/words/words-webp.rcc"
Download of QUrl("https://cdn.kde.org/gcompris/data2/words/words-webp.rcc") is already running, skipping second attempt.
Downloading resource file "data2/backgroundMusic/backgroundMusic-ogg.rcc"
Successfully registered resource "/home/edgar/.cache/KDE/gcompris-qt/data2/backgroundMusic/backgroundMusic-ogg.rcc"
Found box2d in  "/home/edgar/Downloads/gcompris-qt-3.3-Linux/lib/qml"
Local resource is up-to-date: "voices-en_US.rcc"
Successfully registered resource "/home/edgar/.cache/KDE/gcompris-qt/data2/voices-ogg/voices-en_US.rcc"
Local resource is up-to-date: "words-webp.rcc"
Successfully registered resource "/home/edgar/.cache/KDE/gcompris-qt/data2/words/words-webp.rcc"
Local resource is up-to-date: "backgroundMusic-ogg.rcc"
DownloadManager: shutting down, 0 active jobs
DownloadManager: shutting down, 0 active jobs
```
Comment 9 Jazeix Johnny 2023-09-03 19:11:59 UTC
We already had this issue and it was fixed installing libqt5quick5 instead of libqt5quick5-gles (see https://invent.kde.org/education/gcompris/-/issues/31).
Can you check which package is installed on your system?
Comment 10 Jazeix Johnny 2023-09-03 19:12:43 UTC
(In reply to Jazeix Johnny from comment #9)
> We already had this issue and it was fixed installing libqt5quick5 instead
> of libqt5quick5-gles (see
> https://invent.kde.org/education/gcompris/-/issues/31).
> Can you check which package is installed on your system?

(note: the issue is "QSGTextureAtlas: texture atlas allocation failed, code=501")
Comment 11 Edgar Hipp 2023-09-04 07:37:36 UTC
Indeed, this one was installed : 

$ dpkg -l | grep -E libqt5quick5
ii  libqt5quick5-gles:amd64                           5.15.3+dfsg-1                                amd64        Qt 5 Quick library — OpenGL ES variant
Comment 12 Edgar Hipp 2023-09-04 07:41:49 UTC
It worked indeed after installing libqt5quick5

Would be great if you could add this suggestion inside the log of gcompris itself (or even as an alert in the gcompris app itself)
Comment 13 Jazeix Johnny 2023-09-04 17:30:59 UTC
(In reply to Edgar Hipp from comment #12)
> It worked indeed after installing libqt5quick5
> 
> Would be great if you could add this suggestion inside the log of gcompris
> itself (or even as an alert in the gcompris app itself)

Ideally the fix would be to mark the package incompatible in Debian/Ubuntu. I'll propose it to the maintainers but if not possible, we'll add an entry in our FAQ (https://gcompris.net/faq-en.html)