Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Segfault with BoxPlotSeries QML example
Qt 6.12 LTS is out! See what's new in the release blog

Segfault with BoxPlotSeries QML example

Scheduled Pinned Locked Moved Unsolved Qt 6
2 Posts 1 Posters 799 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kuzma30
    wrote on last edited by
    #1

    I use example code from https://doc.qt.io/qt-6/qml-qtcharts-boxplotseries.html#details (save to main.qml)
    When run $QTDIR/bin/qml main.qml I get segfault

    [ 5722.225352] qml[57557]: segfault at 0 ip 00007fc49a69f451 sp 00007ffe21cc55e0 error 4 in libQt6Widgets.so.6.4.0[7fc49a45e000+419000]
    [ 5722.225359] Code: e8 f4 b6 ff ff 48 83 c4 28 5d 41 5c 41 5d 41 5e c3 0f 1f 84 00 00 00 00 00 e8 4b 54 dd ff 31 c9 31 d2 be 52 00 00 00 48 89 c7 <48> 8b 00 ff 90 e0 00 00 00 41 89 c4 e9 75 ff ff ff 66 66 2e 0f 1f
    

    $QTDIR/bin/qml -version
    Qml Runtime 6.4.0

    Qt installed from online installer.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kuzma30
      wrote on last edited by
      #2

      Anybody can test this code on Qt 6.4.0 (or any other version)?

      import QtQuick 2.0
      import QtCharts 2.0
      
      ChartView {
          title: "Box Plot series"
          width: 400
          height: 300
          theme: ChartView.ChartThemeBrownSand
          legend.alignment: Qt.AlignBottom
      
          BoxPlotSeries {
              id: plotSeries
              name: "Income"
              BoxSet { label: "Jan"; values: [3, 4, 5.1, 6.2, 8.5] }
              BoxSet { label: "Feb"; values: [5, 6, 7.5, 8.6, 11.8] }
              BoxSet { label: "Mar"; values: [3.2, 5, 5.7, 8, 9.2] }
              BoxSet { label: "Apr"; values: [3.8, 5, 6.4, 7, 8] }
              BoxSet { label: "May"; values: [4, 5, 5.2, 6, 7] }
          }
      }
      

      I test it on embedded device, Ubuntu and Windows platforms. It segfaults...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved