Bug 475656

Summary: Crash in QV4 engine upon Merkuro startup when no LANG environment variable is specified
Product: [Applications] Merkuro Reporter: phrxmd <philipp.reichmuth>
Component: generalAssignee: Claudio Cambra <claudio.cambra>
Status: REPORTED ---    
Severity: normal CC: carl
Priority: NOR    
Version First Reported In: 23.08.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Backtrace 1 - crash in QV4::QQmlValueTypeWrapper::create()
Backtrace 2 - crash in QV4::Heap::Object::setUsedAsProto()

Description phrxmd 2023-10-15 11:16:07 UTC
Created attachment 162320 [details]
Backtrace 1 - crash in QV4::QQmlValueTypeWrapper::create()

SUMMARY
Kalendar/Merkuro crashes on startup. The backtrace points to the QV4 javascript engine. No window ever appears. 

Additionally, no KDE crash handler comes up.

STEPS TO REPRODUCE
1. Start Merkuro (from the commandline with merkur-calendar)

OBSERVED RESULT
>  merkuro-calendar
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/private/globaltoolbar/ToolBarPageHeader.qml:32:9: QML Loader (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "maximumWidth"
[1]    10537 segmentation fault (core dumped)  merkuro-calendar

EXPECTED RESULT
The app should come up normally.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20231011
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Kernel Version: 6.5.6-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION

This is in the Wayland session, if I start with QT_QPA_PLATFORM=xcb, the UI comes up briefly, but then the app also crashes:
> QT_QPA_PLATFORM=xcb merkuro-calendar
qrc:/BasicMonthListView.qml:216:21: QML Button: Binding loop detected for property "implicitWidth"
qrc:/BasicMonthListView.qml:216:21: QML Button: Binding loop detected for property "implicitWidth"
[1]    11061 segmentation fault (core dumped)  QT_QPA_PLATFORM=xcb merkuro-calendar
Comment 1 phrxmd 2023-10-15 11:17:46 UTC
Created attachment 162321 [details]
Backtrace 2 - crash in QV4::Heap::Object::setUsedAsProto()

The precise crash location is not exactly reproducible, sometimes I also get this crash instead.
Comment 2 phrxmd 2023-10-16 17:47:48 UTC
Workaround: specify a language via command line variables.

These work:
> LANG=de_DE.UTF-8 LANGUAGE=C merkuro-calendar
> LANG=C merkuro-calendar

This crashes:
> merkuro-calendar