Bug 364373 - parley crashed when I changed from practice to the editor
Summary: parley crashed when I changed from practice to the editor
Status: RESOLVED FIXED
Alias: None
Product: parley
Classification: Applications
Component: scripts (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: parley bug tracker
URL:
Keywords: drkonqi
: 371886 384190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-16 09:57 UTC by Jörg Lorenz
Modified: 2017-09-27 17:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.55 KB, text/plain)
2016-06-16 10:13 UTC, Jörg Lorenz
Details
google_images.py ported from PyQt4 to the Kross module "forms" (8.07 KB, text/x-python)
2016-06-17 19:41 UTC, Alexander Potashev
Details
attachment-3009-0.html (2.41 KB, text/html)
2016-06-19 17:46 UTC, Jörg Lorenz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Lorenz 2016-06-16 09:57:27 UTC
Application: parley (2.1.0)

Qt Version: 5.5.1
Operating System: Linux 4.4.0-24-generic x86_64
Distribution: Ubuntu 16.04 LTS

-- Information about the crash:
- What I was doing when the application crashed: I was exercising a kvtml and wanted edit the kvtml and changed tothe editor and parley crashed. When I start parley and I want start a kvtml then start a window and there is following text: The vocabulary collection is inaccessible by a other process. You can open this file if you take on the blockage but all changes will get lost through the other process.
Want you take over the blockage.   yes or no

The crash can be reproduced every time.

-- Backtrace:
Application: Parley (parley), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fdf46fb48c0 (LWP 4686))]

Thread 2 (Thread 0x7fdf440f7700 (LWP 4687)):
#0  0x00007fdf533ebe8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fdf4c550c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fdf4c5528d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fdf46a7b629 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fdf53ae184e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fdf4ed886fa in start_thread (arg=0x7fdf440f7700) at pthread_create.c:333
#6  0x00007fdf533f7b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fdf46fb48c0 (LWP 4686)):
[KCrash Handler]
#6  QBasicAtomicInt::ref (this=<optimized out>) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:121
#7  QList<QPrinter::PageSize>::QList (this=0x7fdf29fb9538 <QPrinterInfoPrivate::shared_null+24>) at ../../include/QtCore/../../src/corelib/tools/qlist.h:121
#8  QPrinterInfoPrivate::QPrinterInfoPrivate (name=..., this=0x7fdf29fb9520 <QPrinterInfoPrivate::shared_null>) at painting/qprinterinfo_p.h:71
#9  __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at painting/qprinterinfo.cpp:35
#10 _GLOBAL__sub_I_qprinterinfo.cpp(void) () at painting/qprinterinfo.cpp:163
#11 0x00007fdf57f004ea in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7ffcbb192978, env=env@entry=0x265cff0) at dl-init.c:72
#12 0x00007fdf57f005fb in call_init (env=0x265cff0, argv=0x7ffcbb192978, argc=1, l=<optimized out>) at dl-init.c:30
#13 _dl_init (main_map=main_map@entry=0x2752410, argc=1, argv=0x7ffcbb192978, env=0x265cff0) at dl-init.c:120
#14 0x00007fdf57f05712 in dl_open_worker (a=a@entry=0x7ffcbb190860) at dl-open.c:575
#15 0x00007fdf57f00394 in _dl_catch_error (objname=objname@entry=0x7ffcbb190850, errstring=errstring@entry=0x7ffcbb190858, mallocedp=mallocedp@entry=0x7ffcbb19084f, operate=operate@entry=0x7fdf57f05300 <dl_open_worker>, args=args@entry=0x7ffcbb190860) at dl-error.c:187
#16 0x00007fdf57f04bd9 in _dl_open (file=0x23e1580 "/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so", mode=-2147483646, caller_dlopen=0x7fdf2bb4506d <_PyImport_GetDynLoadFunc+285>, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0x265cff0) at dl-open.c:660
#17 0x00007fdf4fb9bf09 in dlopen_doit (a=a@entry=0x7ffcbb190a90) at dlopen.c:66
#18 0x00007fdf57f00394 in _dl_catch_error (objname=0x1bbd050, errstring=0x1bbd058, mallocedp=0x1bbd048, operate=0x7fdf4fb9beb0 <dlopen_doit>, args=0x7ffcbb190a90) at dl-error.c:187
#19 0x00007fdf4fb9c571 in _dlerror_run (operate=operate@entry=0x7fdf4fb9beb0 <dlopen_doit>, args=args@entry=0x7ffcbb190a90) at dlerror.c:163
#20 0x00007fdf4fb9bfa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#21 0x00007fdf2bb4506d in _PyImport_GetDynLoadFunc () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#22 0x00007fdf2bb7babe in _PyImport_LoadDynamicModule () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#23 0x00007fdf2bb7c900 in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#24 0x00007fdf2bb7cbc8 in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#25 0x00007fdf2bb7dcdb in PyImport_ImportModuleLevel () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#26 0x00007fdf2bb374f8 in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#27 0x00007fdf2bb315b9 in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#28 0x00007fdf2bc5a27c in PyEval_EvalCodeEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#29 0x00007fdf2bb2fb3d in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#30 0x00007fdf2bc5a27c in PyEval_EvalCodeEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#31 0x00007fdf2bb2fb3d in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#32 0x00007fdf2bc5a27c in PyEval_EvalCodeEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#33 0x00007fdf2bbbe060 in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#34 0x00007fdf2bb90f03 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#35 0x00007fdf2bbf77ec in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#36 0x00007fdf2bb90f03 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#37 0x00007fdf2bc596a7 in PyEval_CallObjectWithKeywords () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#38 0x00007fdf2bb2c406 in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#39 0x00007fdf2bc5a27c in PyEval_EvalCodeEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#40 0x00007fdf2bb28809 in PyEval_EvalCode () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#41 0x00007fdf351a7507 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/krosspython.so
#42 0x00007fdf57a7c74d in Kross::Action::slotTriggered() () from /usr/lib/x86_64-linux-gnu/libKF5KrossCore.so.5
#43 0x00007fdf57a86abd in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KrossCore.so.5
#44 0x00007fdf53cf0fca in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007fdf54a94412 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#46 0x00007fdf54a96898 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#47 0x0000000000492cec in ?? ()
#48 0x000000000048beaa in ?? ()
#49 0x00007fdf53cfd5b8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#50 0x00007fdf53cf1e53 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#51 0x00007fdf54a9e05c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#52 0x00007fdf54aa3516 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#53 0x00007fdf53cc262b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#54 0x00007fdf53d1789d in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#55 0x00007fdf53d17da1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#56 0x00007fdf4e867127 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007fdf4e867380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007fdf4e86742c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007fdf53d18a7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#60 0x00007fdf53cbfdea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#61 0x00007fdf53cc7e8c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#62 0x0000000000448d5c in ?? ()
#63 0x00007fdf53311830 in __libc_start_main (main=0x447ef0, argc=1, argv=0x7ffcbb192978, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcbb192968) at ../csu/libc-start.c:291
#64 0x0000000000448db9 in _start ()

Reported using DrKonqi
Comment 1 Jörg Lorenz 2016-06-16 10:13:08 UTC
Created attachment 99526 [details]
New crash information added by DrKonqi

parley (2.1.0) using Qt 5.5.1

- What I was doing when the application crashed: I want create a new voculabery document and filled in the basic information and then I wanted create the new ducument Parley crashed

-- Backtrace (Reduced):
#7  QList<QPrinter::PageSize>::QList (this=0x7fa4fd49c538 <QPrinterInfoPrivate::shared_null+24>) at ../../include/QtCore/../../src/corelib/tools/qlist.h:121
#8  QPrinterInfoPrivate::QPrinterInfoPrivate (name=..., this=0x7fa4fd49c520 <QPrinterInfoPrivate::shared_null>) at painting/qprinterinfo_p.h:71
#9  __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at painting/qprinterinfo.cpp:35
#10 _GLOBAL__sub_I_qprinterinfo.cpp(void) () at painting/qprinterinfo.cpp:163
#11 0x00007fa527ddf4ea in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7ffce37da3c8, env=env@entry=0x1aae850) at dl-init.c:72
Comment 2 Alexander Potashev 2016-06-16 15:24:34 UTC
This is reproducible when you have PyQt4 installed in your system. In this case the following happens:
 1. KF5Kross loads the Python interpreter library and starts Python scripts, including "google_images.py".
 2. google_images.py has "import [...] PyQt4" lines that make the interpreter library load Qt4 shared libraries.
When Qt4 libraries are loaded into a Qt5 application, it crashes because they are incompatible.
Comment 3 Alexander Potashev 2016-06-16 16:15:14 UTC
On the Kross side, we can blacklist libraries like PyQt4 to avoid crashes in like in the future.
Comment 4 Alexander Potashev 2016-06-17 19:41:37 UTC
Created attachment 99552 [details]
google_images.py ported from PyQt4 to the Kross module "forms"

For the record, I attach an incomplete draft of google_images.py script ported away from PyQt4 to make it work with KF5-based version of Parley. However, it won't work because the Google Image Search API is no longer available.
Comment 5 Alexander Potashev 2016-06-18 16:24:30 UTC
Git commit 45c5fb4fd3c6635fe9ae8b37b367eb8bb22125ac by Alexander Potashev.
Committed on 18/06/2016 at 16:26.
Pushed by aspotashev into branch 'Applications/16.04'.

Remove the google_images.py script: Google image search API is not available anymore
REVIEW: 128229

M  +0    -7    plugins/CMakeLists.txt
D  +0    -94   plugins/google_images.desktop
D  +0    -257  plugins/google_images.py
D  +0    -141  plugins/google_images.ui

http://commits.kde.org/parley/45c5fb4fd3c6635fe9ae8b37b367eb8bb22125ac
Comment 6 Jörg Lorenz 2016-06-19 17:46:24 UTC
Created attachment 99612 [details]
attachment-3009-0.html

Am 18.06.2016 um 18:24 schrieb Alexander Potashev via KDE Bugzilla:
> https://bugs.kde.org/show_bug.cgi?id=364373
>
> Alexander Potashev <aspotashev@gmail.com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|CONFIRMED                   |RESOLVED
>        Latest Commit|                            |http://commits.kde.org/parl
>                     |                            |ey/45c5fb4fd3c6635fe9ae8b37
>                     |                            |b367eb8bb22125ac
>           Resolution|---                         |FIXED
>
> --- Comment #5 from Alexander Potashev <aspotashev@gmail.com> ---
> Git commit 45c5fb4fd3c6635fe9ae8b37b367eb8bb22125ac by Alexander Potashev.
> Committed on 18/06/2016 at 16:26.
> Pushed by aspotashev into branch 'Applications/16.04'.
>
> Remove the google_images.py script: Google image search API is not available
> anymore
> REVIEW: 128229
>
> M  +0    -7    plugins/CMakeLists.txt
> D  +0    -94   plugins/google_images.desktop
> D  +0    -257  plugins/google_images.py
> D  +0    -141  plugins/google_images.ui
>
> http://commits.kde.org/parley/45c5fb4fd3c6635fe9ae8b37b367eb8bb22125ac
>
Hi Alexander Potashev,
I removed following files from usr/share/parley/plugins:

plugins/google_images.desktop
plugins/google_images.py
plugins/google_images.ui

Now I don't have a crash when I change from practice to editor. Now 
parley is running. But no scripts are available. Neither 
google-dictionary nor leo-dictionary nor parley-example nor 
wiktionary-sounds. But now I can work with it at least. Cheers Jörg
Comment 7 Christoph Feck 2017-09-27 16:59:14 UTC
*** Bug 384190 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2017-09-27 17:00:08 UTC
*** Bug 371886 has been marked as a duplicate of this bug. ***