Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133242

Using ChartView or PolarChartView with QtQuickView fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 6.8.1, 6.9.0 Beta2
    • QPA: Android
    • Android

    Description

      Reproduced with Qt 6.8.1 or 6.9.0 Beta 2 with x86_64 Android emulators of  Android API 35 i.e. 15 Pixel 8 or Android API 28 i.e 9 Pixel 4

      Modify for example with QtQuickView example, modify Second.qml to have (and needed imports and install the module of QtCharts)

          ChartView {
              id: chartView
          }
      

      Build and run the app. App executes. Load the second QML. 

      Expect: QML to load just fine.

      Actual: QML loading fails.

      Outcome being

       Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 3428 (qtMainLoopThrea), pid 3385 (tquickview_java)
      2025-01-26 16:29:21.470  3443-3443  DEBUG                   pid-3443                             A  Cmdline: com.example.qtquickview_java
      2025-01-26 16:29:21.470  3443-3443  DEBUG                   pid-3443                             A  pid: 3385, tid: 3428, name: qtMainLoopThrea  >>> com.example.qtquickview_java <<<
      2025-01-26 16:29:21.470  3443-3443  DEBUG                   pid-3443                             A        #00 pc 00000000005212ee  /data/app/~~_kCvSLIFwVyMJipOV3-vPw==/com.example.qtquickview_java-rgEdKJ0xySFcyxTW8F8fuA==/base.apk!libQt6Widgets_x86_64.so (offset 0x360b000) (QWidgetTextControl::setCursorWidth(int)+78) (BuildId: 4955d75e9b52901093c3f1922f0120e727d26fa8)
      2025-01-26 16:29:21.470  3443-3443  DEBUG                   pid-3443                             A        #01 pc 0000000000523179  /data/app/~~_kCvSLIFwVyMJipOV3-vPw==/com.example.qtquickview_java-rgEdKJ0xySFcyxTW8F8fuA==/base.apk!libQt6Widgets_x86_64.so (offset 0x360b000) (QWidgetTextControl::QWidgetTextControl(QObject*)+117) (BuildId: 4955d75e9b52901093c3f1922f0120e727d26fa8)
      2025-01-26 16:29:21.470  3443-3443  DEBUG                   pid-3443                             A        #02 pc 0000000000623b84  /data/app/~~_kCvSLIFwVyMJipOV3-vPw==/com.example.qtquickview_java-rgEdKJ0xySFcyxTW8F8fuA==/base.apk!libQt6Widgets_x86_64.so (offset 0x360b000) (BuildId: 4955d75e9b52901093c3f1922f0120e727d26fa8)
      2025-01-26 16:29:21.470  3443-3443  DEBUG                   pid-3443          

       

       

       

      Attachments

        1. logcat_after_switching_to_second.txt
          33 kB
          Rami Potinkara
        2. image-2025-01-27-19-36-39-768.png
          45 kB
          Rami Potinkara

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rampe Rami Potinkara
              rampe Rami Potinkara
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes