Bug 402959

Summary: crash on chess move
Product: [Applications] gcompris Reporter: bce <bruno.celle>
Component: generalAssignee: Jazeix Johnny <jazeix>
Status: RESOLVED FIXED    
Severity: crash CC: jazeix
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description bce 2019-01-07 07:35:01 UTC
SUMMARY
systematic crash after chess move

STEPS TO REPRODUCE
1. open "end of party" chess game
2. move queen F1 to E2     -OR-  move queen G1 to E3

OBSERVED RESULT
systematic crash

basic log :
exeCount set to:  xxx
qml: enter main.qml (run #xxx, ratio=2.076923076923077, fontRatio=2.25, dpi=128, sharedWritablePath=/home/***/.local/share/GCompris)
Downloading resource file "data2/voices-ogg/voices-fr.rcc"
Local resource is up-to-date: "voices-fr.rcc"
Successfully registered resource "/home/***/.cache/KDE/gcompris-qt/data2/voices-ogg/voices-fr.rcc"
Erreur de segmentation (core dumped)

 ( last line : segfault in French without detail )

EXPECTED RESULT
no crash


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: xUbuntu 18.10 - 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5 

ADDITIONAL INFORMATION
gcompris-qt 0.91 (xUbuntu 18.10)

(thx to specify into help if a verbose mode is available )
Comment 1 Jazeix Johnny 2019-01-07 09:21:48 UTC
Hi,
thank you for the report.

Can you give the exact Qt version (when launching GCompris, in the 'G' button, there should be slomething like "Using Qt version ...")?

Does the crash happen in other chess games and is it only these 2 moves that crashes?

I'll get a ubuntu vm with 18.10 to try to reproduce the issue.
Comment 2 Jazeix Johnny 2019-01-08 08:07:18 UTC
I can reproduce, I installed a vm with kubuntu 18.10, gcompris-qt from package and it crashes in libQt5Qml
I'll debug it later.
Comment 3 Jazeix Johnny 2019-01-08 19:24:53 UTC
Issue still there with latest master code
Comment 4 bce 2019-01-08 19:41:01 UTC
It says : Qt 5.11.1

Such issue occurs on majority of chess move.
(i managed to do some moves on level 6 of "end of party")
Comment 5 Jazeix Johnny 2019-01-10 08:15:50 UTC
It's a Qt bug,
it does not crash with Qt5.11.3 installed via Qt-online, but crashes with Qt5.11.1 and Qt5.11.2 from Qt-online.
I'll try to contact people from https://packages.ubuntu.com/cosmic/qt5-doc to know if/when they plan to update Qt in ubuntu.
Comment 7 Jazeix Johnny 2019-01-20 10:02:13 UTC
A temporary workaround would be to use https://gcompris.net/downloads-fr.html#linux (you can install it in ~/gcompris_qt for example) and once the distribution has updated the Qt version, you'll just have to remove this folder.
Comment 8 Jazeix Johnny 2020-12-20 13:17:15 UTC
It was caused by Qt5.11.1 or Qt5.11.2 which should not be used anymore by distributions.