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

tst_Input crashes a lot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.4.3, 6.5.0, 6.6.0
    • 6.4, 6.5
    • Quick: 3D
    • None
    • ec5e84507 (dev), 1e240a7ea (6.4), e4035538e (6.5), 0ba896466 (dev), 5c6f0d121 (6.4), f6b9f01b0 (6.5)

      We see this autotest crashing quite frequently in the CI runs:

      agent:2022/10/21 10:44:18 build.go:394: 4: ********* Start testing of tst_Input *********
      agent:2022/10/21 10:44:18 build.go:394: 4: Config: Using QtTest library 6.5.0, Qt 6.5.0 (x86_64-little_endian-llp64 shared (dynamic) release build; by GCC 11.2.0), windows 10
      agent:2022/10/21 10:44:18 build.go:394: 4: PASS   : tst_Input::initTestCase()
      agent:2022/10/21 10:44:18 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d left mousearea: mouse)
      agent:2022/10/21 10:44:19 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d left taphandler: mouse)
      agent:2022/10/21 10:44:19 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d right mousearea: mouse)
      agent:2022/10/21 10:44:20 build.go:394: 4: PASS   : tst_Input::singleTap2D(shared source mousearea: mouse)
      agent:2022/10/21 10:44:20 build.go:394: 4: QWARN  : tst_Input::singleTap2D(material mousearea: mouse) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 10:44:20 build.go:394: 4: QWARN  : tst_Input::singleTap2D(material mousearea: mouse) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 10:44:20 build.go:394: 4: PASS   : tst_Input::singleTap2D(material mousearea: mouse)
      agent:2022/10/21 10:44:21 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d left mousearea: touch)
      agent:2022/10/21 10:44:21 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d left taphandler: touch)
      agent:2022/10/21 10:44:22 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d right taphandler: touch)
      agent:2022/10/21 10:44:22 build.go:394: 4: PASS   : tst_Input::singleTap2D(shared source mousearea: touch)
      agent:2022/10/21 10:44:22 build.go:394: 4: QWARN  : tst_Input::singleTap2D(material mousearea: touch) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 10:44:22 build.go:394: 4: QWARN  : tst_Input::singleTap2D(material mousearea: touch) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 10:44:22 build.go:394: 4: PASS   : tst_Input::singleTap2D(material mousearea: touch)
      agent:2022/10/21 10:44:23 build.go:394: 4: qt-testrunner.py     INFO: Test process exited with code: 3221226356 

      See for example:
      https://testresults.qt.io/logs/qt/qtquick3d/41fe49e865f2c885872ebb2639f497250a99c3b0/WindowsWindows_10_21H2x86_64WindowsWindows_10_21H2x86_64Mingwqtci-windows-10_21H2-x86_64-51-a209fdSccache_UseConfigure_WarningsAreErrors/70fb8a363aceb10f6664ec72c3755b8a19f26979/test_1679029679/log.txt.gz

      Sometimes there are actual failures:

      agent:2022/10/21 09:55:52 build.go:394: 4: ********* Start testing of tst_Input *********
      agent:2022/10/21 09:55:52 build.go:394: 4: Config: Using QtTest library 6.5.0, Qt 6.5.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 9.3.0), ubuntu 20.04
      agent:2022/10/21 09:55:52 build.go:394: 4: PASS   : tst_Input::initTestCase()
      agent:2022/10/21 09:55:53 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d left mousearea: mouse)
      agent:2022/10/21 09:55:53 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d left taphandler: mouse)
      agent:2022/10/21 09:55:54 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d right mousearea: mouse)
      agent:2022/10/21 09:56:10 build.go:394: 4: FAIL!  : tst_Input::singleTap2D(shared source mousearea: mouse) Compared values are not the same
      agent:2022/10/21 09:56:10 build.go:394: 4:    Actual   (tapItem->property("clickedCount").toInt()): 0
      agent:2022/10/21 09:56:10 build.go:394: 4:    Expected (1)                                        : 1
      agent:2022/10/21 09:56:10 build.go:394: 4:    Loc: [/home/qt/work/qt/qtquick3d/tests/auto/quick3d_visual/input/tst_input.cpp(141)]
      agent:2022/10/21 09:56:10 build.go:394: 4: QWARN  : tst_Input::singleTap2D(material mousearea: mouse) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:10 build.go:394: 4: QWARN  : tst_Input::singleTap2D(material mousearea: mouse) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:10 build.go:394: 4: PASS   : tst_Input::singleTap2D(material mousearea: mouse)
      agent:2022/10/21 09:56:11 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d left mousearea: touch)
      agent:2022/10/21 09:56:11 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d left taphandler: touch)
      agent:2022/10/21 09:56:12 build.go:394: 4: PASS   : tst_Input::singleTap2D(item2d right taphandler: touch)
      agent:2022/10/21 09:56:13 build.go:394: 4: PASS   : tst_Input::singleTap2D(shared source mousearea: touch)
      agent:2022/10/21 09:56:13 build.go:394: 4: QWARN  : tst_Input::singleTap2D(material mousearea: touch) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:13 build.go:394: 4: QWARN  : tst_Input::singleTap2D(material mousearea: touch) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:13 build.go:394: 4: PASS   : tst_Input::singleTap2D(material mousearea: touch)
      agent:2022/10/21 09:56:14 build.go:394: 4: PASS   : tst_Input::dualTouchTap2D(item2d: two MouseAreas)
      agent:2022/10/21 09:56:30 build.go:394: 4: FAIL!  : tst_Input::dualTouchTap2D(texture source: MouseArea and TapHandler) 'tapItem1->property("pressed").toBool()' returned FALSE. ()
      agent:2022/10/21 09:56:30 build.go:394: 4:    Loc: [/home/qt/work/qt/qtquick3d/tests/auto/quick3d_visual/input/tst_input.cpp(210)]
      agent:2022/10/21 09:56:31 build.go:394: 4: QWARN  : tst_Input::dualTouchTap2D(material: two MouseAreas) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:31 build.go:394: 4: QWARN  : tst_Input::dualTouchTap2D(material: two MouseAreas) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:46 build.go:394: 4: FAIL!  : tst_Input::dualTouchTap2D(material: two MouseAreas) 'tapItem2->property("pressed").toBool()' returned FALSE. ()
      agent:2022/10/21 09:56:46 build.go:394: 4:    Loc: [/home/qt/work/qt/qtquick3d/tests/auto/quick3d_visual/input/tst_input.cpp(211)]
      agent:2022/10/21 09:56:47 build.go:394: 4: PASS   : tst_Input::fallthrough(click on background)
      agent:2022/10/21 09:56:47 build.go:394: 4: PASS   : tst_Input::fallthrough(item2d)
      agent:2022/10/21 09:56:48 build.go:394: 4: PASS   : tst_Input::fallthrough(model without 2D subscene)
      agent:2022/10/21 09:56:48 build.go:394: 4: PASS   : tst_Input::singleDrag2D(item2d left slider: mouse)
      agent:2022/10/21 09:56:49 build.go:394: 4: PASS   : tst_Input::singleDrag2D(shared left slider: mouse)
      agent:2022/10/21 09:56:50 build.go:394: 4: QWARN  : tst_Input::singleDrag2D(material left slider: mouse) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:50 build.go:394: 4: QWARN  : tst_Input::singleDrag2D(material left slider: mouse) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:50 build.go:394: 4: PASS   : tst_Input::singleDrag2D(material left slider: mouse)
      agent:2022/10/21 09:56:50 build.go:394: 4: PASS   : tst_Input::singleDrag2D(item2d left slider: touch)
      agent:2022/10/21 09:56:51 build.go:394: 4: PASS   : tst_Input::singleDrag2D(shared left slider: touch)
      agent:2022/10/21 09:56:51 build.go:394: 4: QWARN  : tst_Input::singleDrag2D(material left slider: touch) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:51 build.go:394: 4: QWARN  : tst_Input::singleDrag2D(material left slider: touch) QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window
      agent:2022/10/21 09:56:51 build.go:394: 4: PASS   : tst_Input::singleDrag2D(material left slider: touch)
      agent:2022/10/21 09:56:51 build.go:394: 4: PASS   : tst_Input::cleanupTestCase()
      agent:2022/10/21 09:56:51 build.go:394: 4: Totals: 21 passed, 3 failed, 0 skipped, 0 blacklisted, 59287ms
      agent:2022/10/21 09:56:51 build.go:394: 4: ********* Finished testing of tst_Input *********
      

      See e.g. https://testresults.qt.io/coin/api/results/qt/qtquick3d/41fe49e865f2c885872ebb2639f497250a99c3b0/LinuxUbuntu_20_04x86_64LinuxUbuntu_20_04x86_64GCCqtci-linux-Ubuntu-20.04-x86_64-50-9e6666Documentation_Sccache_TestDocs_UseConfigure/e9973d967bb58b53c95efb44d52675514c8345ee/test_1679029002/log.txt.gz

      Locally on Windows in release builds I cannot reproduce any of this, though.

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

            inho Inho Lee
            lagocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: