Bug 414985 - Cannot install training materials
Summary: Cannot install training materials
Status: RESOLVED FIXED
Alias: None
Product: Artikulate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Cord-Landwehr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-09 17:31 UTC by Alexander Potashev
Modified: 2019-12-19 16:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2019-12-09 17:31:43 UTC
SUMMARY
Cannot install training materials. This makes the application useless.

STEPS TO REPRODUCE
1. Run Artikulate
2. Click "Download Training"

OBSERVED RESULT
The window's central widget is blank.
There are no pre-installed courses, so I cannot use Artikulate in no way.

EXPECTED RESULT
The central widget should contain controls to download and/or install courses.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.64.0
Qt Version: 5.14.0
Kernel Version: 5.3.8-arch1-1
OS Type: 64-bit
Processors: 1 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 2,4 ГиБ

ADDITIONAL INFORMATION
Artikulate 1.0.0 (from artikulate-19.11.90-1 on Archlinux).

console log:

[aspotashev@archlinux ~]$ artikulate
Warning: QT_AUTO_SCREEN_SCALE_FACTOR is deprecated. Instead use:
   QT_ENABLE_HIGHDPI_SCALING to enable platform plugin controlled per-screen factors.
articulate.core: Repository created from with location QUrl("file:///home/aspotashev/.local/share/artikulate/courses/")
articulate.core: Loading courses from "/home/aspotashev/.local/share/artikulate/courses"
log_liblearner: Database path:  "/home/aspotashev/.local/share/artikulate/learnerdata.db"
log_liblearner: No last active profile found, falling back to first found profile
log_libsound: Load Plugin:  "Модуль поддержки QtMultimedia"
log_libsound: recording codec set to "audio/x-vorbis"
file:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/TitlesPageHeader.qml:30:5: QML Loader: Binding loop detected for property "height"
file:///usr/lib/qt/qml/org/kde/kirigami.2/Action.qml:97: TypeError: Cannot assign to read-only property "parent"
<Unknown File>:7: TypeError: Cannot read property 'contentX' of null
QCoreApplication::postEvent: Unexpected null receiver
QObject::connect(Engine, ItemsModel): invalid null parameter
file:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/TitlesPageHeader.qml:30:5: QML Loader: Binding loop detected for property "height"
qml: KNS Busy: Загрузка данных
qml: KNS Idle: 
file:///usr/lib/qt/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml:94: TypeError: Cannot read property 'longDuration' of null
file:///usr/lib/qt/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml:100: TypeError: Cannot read property 'shortDuration' of null
[aspotashev@archlinux ~]$
Comment 1 Andreas Cord-Landwehr 2019-12-19 15:12:29 UTC
Thanks for reporting, after updating my KF5 packages I can reproduce the issue.
Comment 2 Andreas Cord-Landwehr 2019-12-19 16:52:59 UTC
Git commit de8870b02888b4274c404b74749553a303e6a66c by Andreas Cord-Landwehr.
Committed on 19/12/2019 at 16:52.
Pushed by cordlandwehr into branch 'master'.

Adapt to KNewStuff API change in 5.63

Two changes are needed to be compatible with KNewStuff > 5.62:
- the installItem call now requires two arguments (previously this with
  only the first)
- binding the items model to the engine property does not work anymore
  but binding it directly to the engine object solves the issue

Note that this is a runtime only issue because QML methods are used.
However, this patch increases the minimal required version to 5.63 for
all frameworks, which shall help to ensure a functional KNewStuff
version being present.

M  +1    -1    CMakeLists.txt
M  +4    -3    src/qml/DownloadPage.qml

https://commits.kde.org/artikulate/de8870b02888b4274c404b74749553a303e6a66c