Bug 416608 - plugins-impex-kis_csv_test (Child aborted)
Summary: plugins-impex-kis_csv_test (Child aborted)
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: Unittests (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-22 15:06 UTC by Halla Rempt
Modified: 2024-09-18 09:45 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Halla Rempt 2020-01-22 15:06:26 UTC
257/285 Testing: plugins-impex-kis_csv_test
257/285 Test: plugins-impex-kis_csv_test
Command: "/home/boud/dev/b-krita/plugins/impex/csv/tests/kis_csv_test"
Directory: /home/boud/dev/b-krita/plugins/impex/csv/tests
"plugins-impex-kis_csv_test" start time: Jan 22 15:25 CET
Output:
----------------------------------------------------------
********* Start testing of KisCsvTest *********
Config: Using QtTest library 5.13.2, Qt 5.13.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.4.0)
PASS   : KisCsvTest::initTestCase()
PASS   : KisCsvTest::testFiles()
QWARN  : KisCsvTest::testImportFromWriteonly() KoColor debug runtime checks are active.
QSYSTEM: KisCsvTest::testImportFromWriteonly() krita.general: "[\n0: /home/boud/dev/b-krita/libs/global/libkritaglobal.so.19(kisBacktrace()+0x46) [0x7f272fd98b66]\n1: /home/boud/dev/b-krita/libs/widgetutils/libkritawidgetutils.so.19(KoResourcePaths::findResourceInternal(QString const&, QString const&)+0x858) [0x7f272b439668]\n2: /home/boud/dev/b-krita/libs/widgetutils/libkritawidgetutils.so.19(KoResourcePaths::findResource(char const*, QString const&)+0x77) [0x7f272b43a117]\n3: /home/boud/dev/b-krita/libs/flake/libkritaflake.so.19(KoMarkerCollection::loadDefaultMarkers()+0x4d) [0x7f272bcbe7ad]\n4: /home/boud/dev/b-krita/libs/flake/libkritaflake.so.19(KoMarkerCollection::KoMarkerCollection(QObject*)+0x73) [0x7f272bcbe8c3]\n5: /home/boud/dev/b-krita/libs/flake/libkritaflake.so.19(KoPathShapeFactory::newDocumentResourceManager(KoDocumentResourceManager*) const+0x78) [0x7f272bcceb18]\n6: /home/boud/dev/b-krita/libs/flake/libkritaflake.so.19(+0xd0af3) [0x7f272bca8af3]\n7: /home/boud/dev/b-krita/libs/flake/libkritaflake.so.19(KoShapeControllerBase::KoShapeControllerBase()+0x2c) [0x7f272bca839c]\n8: /home/boud/dev/b-krita/libs/ui/libkritaui.so.19(KisShapeController::KisShapeController(KisDocument*, KisNameServer*)+0x25) [0x7f2731ec77d5]\n9: /home/boud/dev/b-krita/libs/ui/libkritaui.so.19(KisDocument::KisDocument()+0x179) [0x7f2732261149]\n10: /home/boud/dev/b-krita/libs/ui/libkritaui.so.19(KisPart::createDocument() const+0x1b) [0x7f2732297b7b]\n11: /home/boud/dev/b-krita/plugins/impex/csv/tests/kis_csv_test(TestUtil::testImportFromWriteonly(QString const&, QString)+0x10e) [0x55d14a088bde]\n12: /home/boud/dev/b-krita/plugins/impex/csv/tests/kis_csv_test(KisCsvTest::testImportFromWriteonly()+0x5d) [0x55d14a0896cd]\n13: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const+0x6a5) [0x7f272e8851b5]\n14: /usr/lib/x86_64-linux-gnu/libQt5Test.so.5(+0x1740a) [0x7f273101240a]\n15: /usr/lib/x86_64-linux-gnu/libQt5Test.so.5(+0x1817d) [0x7f273101317d]\n16: /usr/lib/x86_64-linux-gnu/libQt5Test.so.5(+0x186e1) [0x7f27310136e1]\n17: /usr/lib/x86_64-linux-gnu/libQt5Test.so.5(QTest::qRun()+0x22b) [0x7f2731013b7b]\n18: /usr/lib/x86_64-linux-gnu/libQt5Test.so.5(QTest::qExec(QObject*, int, char**)+0xb) [0x7f2731013e8b]\n19: /home/boud/dev/b-krita/plugins/impex/csv/tests/kis_csv_test(main+0x8c) [0x55d14a08577c]\n20: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f272dc73b97]\n21: /home/boud/dev/b-krita/plugins/impex/csv/tests/kis_csv_test(_start+0x2a) [0x55d14a0857fa]\n]\n"
QFATAL : KisCsvTest::testImportFromWriteonly() ASSERT: "!resource.isEmpty()" in file /home/boud/dev/krita/libs/widgetutils/KoResourcePaths.cpp, line 371
FAIL!  : KisCsvTest::testImportFromWriteonly() Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 88ms
********* Finished testing of KisCsvTest *********
<end of output>
Test time =   0.23 sec
----------------------------------------------------------
Test Failed.
"plugins-impex-kis_csv_test" end time: Jan 22 15:25 CET
"plugins-impex-kis_csv_test" time elapsed: 00:00:00
----------------------------------------------------------

258/285 Testing: plugins-impex-kis_exr_test
258/285 Test: plugins-impex-kis_exr_test
Command: "/home/boud/dev/b-krita/plugins/impex/exr/tests/kis_exr_test"
Directory: /home/boud/dev/b-krita/plugins/impex/exr/tests
"plugins-impex-kis_exr_test" start time: Jan 22 15:25 CET
Output:
----------------------------------------------------------
********* Start testing of KisExrTest *********
Config: Using QtTest library 5.13.2, Qt 5.13.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.4.0)
PASS   : KisExrTest::initTestCase()
QDEBUG : KisExrTest::testFiles() "."
QDEBUG : KisExrTest::testFiles() ".."
QDEBUG : KisExrTest::testFiles() "memorial.exr"
QWARN  : KisExrTest::testFiles() KoColor debug runtime checks are active.
PASS   : KisExrTest::testFiles()
QDEBUG : KisExrTest::testImportFromWriteonly() Entering "TestUtil::prepareFile()" QFlags(0x2|0x4|0x20|0x40|0x200|0x400|0x2000|0x4000)
QDEBUG : KisExrTest::testImportFromWriteonly() import result =  Error code =  2   "Permission denied: Krita is not allowed to read the file."
PASS   : KisExrTest::testImportFromWriteonly()
QDEBUG : KisExrTest::testExportToReadonly() Entering "TestUtil::prepareFile()" QFlags(0x2|0x4|0x20|0x40|0x200|0x400|0x2000|0x4000)
QDEBUG : KisExrTest::testExportToReadonly() Entering "TestUtil::testExportToReadonly()" QObject(0x0)
QWARN  : KisExrTest::testExportToReadonly() krita.file: Will not save layer "paint1."
QDEBUG : KisExrTest::testExportToReadonly() export result =  Error code =  12   "Unknown error."
PASS   : KisExrTest::testExportToReadonly()
QDEBUG : KisExrTest::testImportIncorrectFormat() Entering "TestUtil::prepareFile()" QFlags(0x4|0x40|0x200|0x400|0x2000|0x4000)
QDEBUG : KisExrTest::testImportIncorrectFormat() import result =  Error code =  3   "Error occurred while reading from the file."
PASS   : KisExrTest::testImportIncorrectFormat()
QWARN  : KisExrTest::testRoundTrip() krita.general: WARNING: "The image contains pixels with zero alpha channel and non-zero color channels. Krita has modified those pixels to have at least some alpha. The initial values will <i>not</i> be reverted on saving the image back.<br/><br/>This will hardly make any visual difference just keep it in mind."
PASS   : KisExrTest::testRoundTrip()
PASS   : KisExrTest::cleanupTestCase()
Totals: 7 passed, 0 failed, 0 skipped, 0 blacklisted, 2824ms
********* Finished testing of KisExrTest *********
<end of output>
Test time =   2.90 sec
----------------------------------------------------------
Test Passed.
"plugins-impex-kis_exr_test" end time: Jan 22 15:25 CET
"plugins-impex-kis_exr_test" time elapsed: 00:00:02
----------------------------------------------------------
Comment 1 vanyossi 2020-01-25 07:50:10 UTC
For csv: KisCsvTest::testImportFromWriteonly() ASSERT: "!resource.isEmpty()"


It fails to find "markers.svg" from the function KoResourcePaths::findResourceInternal The file is located at krita/libs/flake/styles/markers.svg, or "share/krita/styles/markers.svg" In my case (non standard path isntall), none of the paths checked by findResourceInternal exist.  

Setting EXTRA_RESOURCE_DIRS to the folder where the file is allows the test to PASS.


2020-01-25 01:40:53.864 kis_csv_test[47951:533929] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
********* Start testing of KisCsvTest *********
Config: Using QtTest library 5.12.3, Qt 5.12.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 10.0.1 (clang-1001.0.46.4) (Apple))
PASS   : KisCsvTest::initTestCase()
PASS   : KisCsvTest::testFiles()
QDEBUG : KisCsvTest::testImportFromWriteonly() Entering "TestUtil::prepareFile()" QFlags(0x2|0x4|0x20|0x40|0x200|0x400|0x2000|0x4000)
QDEBUG : KisCsvTest::testImportFromWriteonly() Invalid profile :  "/Library/ColorSync/Profiles//WebSafeColors.icc" "Web Safe Colors"
QWARN  : KisCsvTest::testImportFromWriteonly() KoColor debug runtime checks are active.
QDEBUG : KisCsvTest::testImportFromWriteonly() findresourcePath "/Volumes/Osiris/programs/krita-master/testdata/kritatests/unittests/markers.svg"
QDEBUG : KisCsvTest::testImportFromWriteonly() import result =  Cannot read:  5   "Cannot open file for reading. Reason: The file could not be opened."
PASS   : KisCsvTest::testImportFromWriteonly()
QDEBUG : KisCsvTest::testExportToReadonly() Entering "TestUtil::prepareFile()" QFlags(0x2|0x4|0x20|0x40|0x200|0x400|0x2000|0x4000)
QDEBUG : KisCsvTest::testExportToReadonly() findresourcePath "/Volumes/Osiris/programs/krita-master/testdata/kritatests/unittests/markers.svg"
QDEBUG : KisCsvTest::testExportToReadonly() Entering "TestUtil::testExportToReadonly()" QObject(0x0)
QDEBUG : KisCsvTest::testExportToReadonly() export result =  Cannot write:  0   "Cannot open file for writing. Reason: An error occurred when writing to the file."
PASS   : KisCsvTest::testExportToReadonly()
QDEBUG : KisCsvTest::testImportIncorrectFormat() Entering "TestUtil::prepareFile()" QFlags(0x4|0x40|0x200|0x400|0x2000|0x4000)
QDEBUG : KisCsvTest::testImportIncorrectFormat() findresourcePath "/Volumes/Osiris/programs/krita-master/testdata/kritatests/unittests/markers.svg"
QDEBUG : KisCsvTest::testImportIncorrectFormat() findresourcePath "/Volumes/Osiris/programs/krita-master/testdata/kritatests/unittests/markers.svg"
QDEBUG : KisCsvTest::testImportIncorrectFormat() import result =  Error code =  4   "The file format cannot be parsed."
PASS   : KisCsvTest::testImportIncorrectFormat()
PASS   : KisCsvTest::cleanupTestCase()
Totals: 6 passed, 0 failed, 0 skipped, 0 blacklisted, 807ms
********* Finished testing of KisCsvTest *********
Comment 2 Dmitry Kazakov 2024-09-18 09:45:47 UTC
The list of broken tests is available in the build system. We shouldn't keep them on bugzilla