Summary: | parley crashed when I changed from practice to the editor | ||
---|---|---|---|
Product: | [Applications] parley | Reporter: | Jörg Lorenz <beere_der_echte> |
Component: | scripts | Assignee: | parley bug tracker <parley-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aspotashev, beere_der_echte, jens.remer, samuel-allain |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/parley/45c5fb4fd3c6635fe9ae8b37b367eb8bb22125ac | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
google_images.py ported from PyQt4 to the Kross module "forms" attachment-3009-0.html |
Description
Jörg Lorenz
2016-06-16 09:57:27 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
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. On the Kross side, we can blacklist libraries like PyQt4 to avoid crashes in like in the future. 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.
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 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 *** Bug 384190 has been marked as a duplicate of this bug. *** *** Bug 371886 has been marked as a duplicate of this bug. *** |