| Summary: | auto tests fails | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | Fahad Al-Saidi <Fahad.alsaidi> |
| Component: | general | Assignee: | Okular developers <okular-devel> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | aacid |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Fahad Al-Saidi
2018-02-13 07:44:26 UTC
Works fine for me and for CI, this must be a problem with your local setup. What is the result of grep KDESRCDIR build/autotests/CMakeFiles/parttest.dir/DependInfo.cmake ? (In reply to Albert Astals Cid from comment #1) > Works fine for me and for CI, this must be a problem with your local setup. > > What is the result of > grep KDESRCDIR build/autotests/CMakeFiles/parttest.dir/DependInfo.cmake > ? >> grep KDESRCDIR /home/ita/kde/build/kde/kdegraphics/okular/autotests/CMakeFiles/parttest.dir/DependInfo.cmake "KDESRCDIR=\"/home/ita/kde/src/kde/kdegraphics/okular/autotests/\"" sorry, the problem is not from cmake. When I debug it, okular crash when open the doc, here it the debug:
Thread 3 (Thread 0x7fffdbd71700 (LWP 376)):
#0 0x00007ffff5af474d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1 0x00007ffff0ef438c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2 0x00007ffff0ef449c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3 0x00007ffff641b6af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#4 0x00007ffff63c3e2a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#5 0x00007ffff61ec8f4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#6 0x00007fffefbf5315 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
No symbol table info available.
#7 0x00007ffff61f1709 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#8 0x00007ffff57e36ba in start_thread (arg=0x7fffdbd71700) at pthread_create.c:333
__res = <optimized out>
pd = 0x7fffdbd71700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736881694464, 4209299068300874597, 0, 140737488347247, 140736881695168, 140737488347432, -4209220105802558619, -4209311152409226395}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION__ = "start_thread"
#9 0x00007ffff5b0041d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.
Thread 2 (Thread 0x7fffe3764700 (LWP 375)):
#0 0x00007ffff5af474d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1 0x00007fffec9fec62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
No symbol table info available.
#2 0x00007fffeca008d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
No symbol table info available.
#3 0x00007fffe5cbb1f9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
No symbol table info available.
#4 0x00007ffff61f1709 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#5 0x00007ffff57e36ba in start_thread (arg=0x7fffe3764700) at pthread_create.c:333
__res = <optimized out>
pd = 0x7fffe3764700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737009567488, 4209299068300874597, 0, 140737488346191, 140737009568192, 140737488346376, -4209271500991835291, -4209311152409226395}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION__ = "start_thread"
#6 0x00007ffff5b0041d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.
Thread 1 (Thread 0x7ffff7f138c0 (LWP 367)):
#0 0x00007ffff5a2e428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
resultvar = 0
pid = 367
selftid = 367
#1 0x00007ffff5a3002a in __GI_abort () at abort.c:89
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {140737323982638, 7608672, 140737329489568, 140737351871088, 3, 7167536, 0, 140737325494784, 140737353169072, 4294967295, 140737353171408, 140737351870832, 70, 0, 3454050420342969856, 280375465082880}}, sa_flags = 327790, sa_restorer = 0x5006e}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007ffff61d9c71 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#3 0x00007ffff7ba9bab in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Test.so.5
No symbol table info available.
#4 <signal handler called>
No locals.
#5 0x0000000000841f0f in ?? ()
No symbol table info available.
#6 0x00007ffff6bac84a in QPagedPaintDevice::pageLayout() const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
No symbol table info available.
#7 0x00007ffff4310fa1 in QPrinter::orientation() const () from /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5
No symbol table info available.
#8 0x00007fffdb361c97 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/okular/generators/okularGenerator_poppler.so
No symbol table info available.
#9 0x00007ffff78a2f6a in Okular::Document::openDocument (this=0x7fffffffd8b0, docFile=..., url=..., _mime=..., password=...) at /home/ita/kde/src/kde/kdegraphics/okular/core/document.cpp:2488
db = {d = 0x7ffff6883570}
mime = {d = {d = 0x6a85c0}}
filedata = {d = 0x7ffff64af200 <QArrayData::shared_null>}
isstdin = false
triedMimeFromFileContent = false
offer = {m_metaData = {d = 0x6e39e0, o = 0x6d310c}, m_fileName = {static null = {<No data fields>}, d = 0x6e3910}, d = {d = 0x0}}
__PRETTY_FUNCTION__ = "Okular::Document::OpenResult Okular::Document::openDocument(const QString&, const QUrl&, const QMimeType&, const QString&)"
openResult = Okular::Document::OpenSuccess
loadedViewport = {pageNumber = 0, rePos = {enabled = false, normalizedX = 0.5, normalizedY = 0, pos = Okular::DocumentViewport::Center}, autoFit = {enabled = false, width = false, height = false}}
nextViewport = {pageNumber = -1, rePos = {enabled = false, normalizedX = 0.5, normalizedY = 0, pos = Okular::DocumentViewport::Center}, autoFit = {enabled = false, width = false, height = false}}
docScripts = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x73006e00610072}, d = 0x73006e00610072}}, <No data fields>}
#10 0x00000000004086f5 in SearchTest::testArabicSearch (this=0x7fffffffe460) at /home/ita/kde/src/kde/kdegraphics/okular/autotests/searchtest.cpp:179
d = {<QObject> = {<No data fields>}, static staticMetaObject = {d = {superdata = 0x7ffff6874a00 <QObject::staticMetaObject>, stringdata = 0x7ffff7942720 <qt_meta_stringdata_Okular__Document>, data = 0x7ffff7943660 <qt_meta_data_Okular__Document>, static_metacall = 0x7ffff78b34a2 <Okular::Document::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d = 0x6a3830}
receiver = {<QObject> = {<No data fields>}, static staticMetaObject = {d = {superdata = 0x7ffff6874a00 <QObject::staticMetaObject>, stringdata = 0x414600 <qt_meta_stringdata_SearchFinishedReceiver>, data = 0x4146e0 <qt_meta_data_SearchFinishedReceiver>, static_metacall = 0x40c7d2 <SearchFinishedReceiver::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, m_id = 0, m_status = Okular::Document::MatchFound}
spy = {<QObject> = {<No data fields>}, <QList<QList<QVariant> >> = {<QListSpecialMethods<QList<QVariant> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff64b1160 <QListData::shared_null>}, d = 0x7ffff64b1160 <QListData::shared_null>}}, sig = {d = 0x6a3c80}, args = {d = 0x69a490}, m_loop = <incomplete type>, m_waiting = false}
testFile = {static null = {<No data fields>}, d = 0x4139c0 <SearchTest::testArabicSearch()::{lambda()#1}::operator()() const::qstring_literal>}
db = {d = 0x7ffff6883570}
mime = {d = {d = 0x6a85c0}}
searchId = 32767
t = {mds = 6958784}
#11 0x000000000040ca2a in SearchTest::qt_static_metacall (_o=0x7fffffffe460, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fffffffdb10) at /home/ita/kde/build/kde/kdegraphics/okular/autotests/searchtest.moc:215
_t = 0x7fffffffe460
#12 0x00007ffff63d1936 in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#13 0x00007ffff7bb110c in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Test.so.5
No symbol table info available.
#14 0x00007ffff7bb1a56 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Test.so.5
No symbol table info available.
#15 0x00007ffff7bb2082 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Test.so.5
No symbol table info available.
#16 0x00007ffff7bb2571 in QTest::qExec(QObject*, int, char**) () from /usr/lib/x86_64-linux-gnu/libQt5Test.so.5
No symbol table info available.
#17 0x000000000040c79a in main (argc=1, argv=0x7fffffffe578) at /home/ita/kde/src/kde/kdegraphics/okular/autotests/searchtest.cpp:467
app = <incomplete type>
tc = {<QObject> = {<No data fields>}, static staticMetaObject = {d = {superdata = 0x7ffff6874a00 <QObject::staticMetaObject>, stringdata = 0x414760 <qt_meta_stringdata_SearchTest>, data = 0x4149a0 <qt_meta_data_SearchTest>, static_metacall = 0x40c9a6 <SearchTest::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}
So you're hitting a qFatal? What is the output of the command? I guess that would be a good hint of what your problem is (In reply to Albert Astals Cid from comment #4) > So you're hitting a qFatal? What is the output of the command? I guess that > would be a good hint of what your problem is sorry, which command you mean? if this: grep KDESRCDIR build/autotests/CMakeFiles/parttest.dir/DependInfo.cmake the result is: "KDESRCDIR=\"/home/ita/kde/src/kde/kdegraphics/okular/autotests/\"" Ok, I found the problem, I have to set Set LD_LIBRARY_PATH Set QT_PLUGIN_PATH Set XDG_DATA_DIRS in qtcreator in order to run & debug the test correctly. Please close this bug. |