Bug 475656 - Crash in QV4 engine upon Merkuro startup when no LANG environment variable is specified
Summary: Crash in QV4 engine upon Merkuro startup when no LANG environment variable is...
Status: REPORTED
Alias: None
Product: Merkuro
Classification: Applications
Component: general (show other bugs)
Version: 23.08.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Claudio Cambra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-15 11:16 UTC by phrxmd
Modified: 2023-10-16 17:48 UTC (History)
1 user (show)

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


Attachments
Backtrace 1 - crash in QV4::QQmlValueTypeWrapper::create() (4.90 KB, text/plain)
2023-10-15 11:16 UTC, phrxmd
Details
Backtrace 2 - crash in QV4::Heap::Object::setUsedAsProto() (7.27 KB, text/plain)
2023-10-15 11:17 UTC, phrxmd
Details

Note You need to log in before you can comment on or make changes to this bug.
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