https://bugs.kde.org/show_bug.cgi?id=438682

            Bug ID: 438682
           Summary: Setting App to Use Material Style Results in
                    Segmentation Fault
           Product: frameworks-kirigami
           Version: 5.83.0
          Platform: Neon Packages
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: jav...@imaginary.tech
  Target Milestone: Not decided

SUMMARY
Setting a Kirigami program to use the Material style from a
qtquickcontrols2.conf file results in a segmentation fault, likely related to a
cyclic dependency on Kirigami's Units.qml.

STEPS TO REPRODUCE
1. Use KDE Frameworks 5.83.0
2. Create a basic Kirigami app; the template from KAppTemplate does the job.
3. Create a file named "qtquickcontrols2.conf" under "./src ".
4. Add the following contents to qtquickcontrols2.conf:

[Controls]
Style=Material

5. Load the file on the app as a resource, like so:

<RCC>
    <qresource prefix="/">
        <file alias="main.qml">contents/ui/main.qml</file>
        <file>qtquickcontrols2.conf</file>
    </qresource>
</RCC>


OBSERVED RESULT
When the Control's style is set to Material, Kirigami app execution results in
a segmentation fault as follows:

Cyclic dependency detected between
"file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/Units.qml" and
"file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/Units.qml"
*** Program received signal SIGSEGV (Segmentation fault) ***

If you set the style to any other valid value, the program will run. If you
replicate using a non-Kirigami template as your base, the program will run with
any valid Style.


EXPECTED RESULT
One would expect Kirigami app to start with the Material theme, as they did in
5.82 and prior versions of KF5.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 5.22 User Edition
KDE Plasma Version: 5.22
KDE Frameworks Version: 5.83
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Graphics Platform: X11
Kernel Version: 5.8.0-55-lowlatency (64-bit)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to