Bug 422956

Summary: On GCompris-qt : systematic crash after click on Vocabulary + moon and sun (enrich your vocabulary)
Product: [Applications] gcompris Reporter: mmaunier2001
Component: generalAssignee: Jazeix Johnny <jazeix>
Status: RESOLVED FIXED    
Severity: crash CC: animtim, jazeix
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screen just before crash

Description mmaunier2001 2020-06-14 10:25:29 UTC
Created attachment 129341 [details]
screen just before crash

SUMMARY
systematic crash after click on Vocabulary + moon and sun (enrich your vocabulary)

STEPS TO REPRODUCE
1. click on Cow(ABC)
2. click on Vocabulary
3. click on Moon and sun (enrich your vocabulary)

OBSERVED RESULT
crash

EXPECTED RESULT
access to activity

SOFTWARE/OS VERSIONS
System:
  Kernel: 5.6.16-1-MANJARO x86_64 bits: 64 
  Desktop: Xfce 4.14.2 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Acer product: Aspire 5742G v: V1.18 
  serial: <root required> 
  Mobo: Acer model: Aspire 5742G v: V1.18 serial: <root required> BIOS: Acer 
  v: 1.18 date: 03/14/2011 
CPU:
  Topology: Dual Core model: Intel Pentium P6200 bits: 64 type: MCP 
  L2 cache: 3072 KiB 
  Speed: 1126 MHz min/max: 933/2133 MHz Core speeds (MHz): 1: 1002 2: 985 
Graphics:
  Device-1: AMD Robson CE [Radeon HD 6370M/7370M] driver: radeon v: kernel 
  Display: x11 server: X.Org 1.20.8 driver: ati,radeon unloaded: modesetting 
  resolution: 1366x768~60Hz 
  OpenGL: renderer: AMD CEDAR (DRM 2.50.0 / 5.6.16-1-MANJARO LLVM 10.0.0) 
  v: 3.3 Mesa 20.0.7 
Audio:
  Device-1: Intel 5 Series/3400 Series High Definition Audio 
  driver: snd_hda_intel 
  Device-2: AMD Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series] 
  driver: snd_hda_intel 
  Sound Server: ALSA v: k5.6.16-1-MANJARO 
Network:
  Device-2: Qualcomm Atheros AR9287 Wireless Network Adapter driver: ath9k 

Qt Version: 
using qt5ct plugin

GCompris Version :
gcompris-qt 0.97

ADDITIONAL INFORMATION
i've tried with software renderer or opengl with same crash
console log:
[thomas@thomas-aspire5742g ~]$ gcompris-qt --opengl-renderer
qt5ct: using qt5ct plugin
exeCount set to:  17
renderer set to:  "opengl"
qml: enter main.qml (run #17, ratio=1.476923076923077, fontRatio=1.6, dpi=96, userDataPath=[myhome]/.local/share/GCompris)
Downloading resource file "data2/voices-ogg/voices-fr.rcc"
Downloading resource file "data2/words/words.rcc"
Download of QUrl("https://cdn.kde.org/gcompris/data2/words/words.rcc") is already running, skipping second attempt.
notifyWordset:  "data2/words/words.rcc"
Downloading resource file "data2/backgroundMusic/backgroundMusic-ogg.rcc"
Successfully registered resource "/home/thomas/.cache/KDE/gcompris-qt/data2/backgroundMusic/backgroundMusic-ogg.rcc"
qrc:/gcompris/src/activities/menu/Menu.qml:79:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/gcompris/src/core/Bar.qml:314:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/gcompris/src/core/Bar.qml:267: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:687:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
Found box2d in  "/usr/lib/qt/qml"
qt5ct: palette support is disabled
Local resource is up-to-date: "words.rcc"
Successfully registered resource "[myhome]/.cache/KDE/gcompris-qt/data2/words/words.rcc"
Local resource is up-to-date: "backgroundMusic-ogg.rcc"
Local resource is up-to-date: "voices-fr.rcc"
Successfully registered resource "[myhome]/.cache/KDE/gcompris-qt/data2/voices-ogg/voices-fr.rcc"
qrc:/gcompris/src/core/Bar.qml:314:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/gcompris/src/core/Bar.qml:267:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
load configuration for: "lang"
Downloading resource file "data2/voices-ogg/voices-fr.rcc"
Erreur de segmentation (core dumped)
-->CRASH
Comment 1 Jazeix Johnny 2020-06-14 15:14:40 UTC
Hi,

thank you for the report.
Can you check on the GCompris config window, which Qt version is used please?
I noticed a crash on this activity with Qt >= 5.14 but didn't found a fix yet :/
Comment 2 mmaunier2001 2020-06-14 15:37:29 UTC
Hello,
first of all, sorry about my rough English.

I just checked in the Gcompris settings and actually the QT version is 
5.15.0
So, I’m afraid you’re right and we have to wait for a fix .

Cordially,
Mikaël


Le 14/06/2020 à 17:14, Jazeix Johnny a écrit :
> https://bugs.kde.org/show_bug.cgi?id=422956
>
> --- Comment #1 from Jazeix Johnny <jazeix@gmail.com> ---
> Hi,
>
> thank you for the report.
> Can you check on the GCompris config window, which Qt version is used please?
> I noticed a crash on this activity with Qt >= 5.14 but didn't found a fix yet
> :/
>
Comment 3 animtim 2020-06-20 14:45:22 UTC
In the meantime, you can workaround this problem by using our standalone version which is using Qt 5.12 (you can download it from https://gcompris.net/downloads-en.html )
Comment 4 Jazeix Johnny 2020-06-25 18:16:00 UTC
I've pushed a workaround to fix the crash (https://invent.kde.org/education/gcompris/-/commit/85c77bb439fd4258e6ab308bc1ef37940a7a5323).
It does not fix it to the source (Qt) because I can't get a minimal example.

The issue is due because the translated json file does not contain all the words and at some point, it crashes.
Comment 5 Jazeix Johnny 2020-11-15 10:17:00 UTC
It will be fixed officially in the next release next week so I'm closing it now