Summary: | Segmentation fault at project from the link | ||
---|---|---|---|
Product: | [Developer tools] kdev-python | Reporter: | Dmitriy A. Perlow <dap.darkness> |
Component: | general | Assignee: | Sven Brauch <mail> |
Status: | RESOLVED NOT A BUG | ||
Severity: | crash | CC: | dap.darkness, jerry, mail |
Priority: | NOR | ||
Version: | 1.5.x | ||
Target Milestone: | 1.6.0 | ||
Platform: | openSUSE | ||
OS: | Linux | ||
URL: | https://github.com/DAP-DarkneSS/Randorator | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Dmitriy A. Perlow
2013-05-03 16:22:43 UTC
I can't reproduce it, at least the repository parses fine in 1.5 (didn't try the 1.4 -> 1.5 step since I think it's unrelated). Anyways, to me this looks like a broken setup. Can you please verify that $KDEDIRS/share/apps/kdevpythonsupport/documentation_files/ exists and is readable ($KDEDIRS is /usr on my distros)? Ah, if that's not it, then please try deleting ~/.kdevduchain and ~/.cache/kdevduchain. Created attachment 79671 [details]
New crash information added by DrKonqi
kdevelop (4.5.0) on KDE Platform 4.9.5 "release 4" using Qt 4.8.4
%echo $KDEDIRS
%LANG=en_GB.UTF-8 ls -l /usr/share/kde4/apps/kdevpythonsupport/
total 24
drwxr-xr-x 4 root root 4096 May 3 19:35 .
drwxr-xr-x 205 root root 12288 May 3 19:37 ..
drwxr-xr-x 2 root root 4096 May 3 19:35 debugger
drwxr-xr-x 3 root root 4096 May 3 09:22 encodings
% rm -rf ~/.kdevduchain ~/.cache/kdevduchain
% kdevelop
-- Backtrace (Reduced):
#6 QString::operator= (this=0x7ff451258d18 <Python::Helper::dataDir>, other=...) at tools/qstring.cpp:1410
#7 0x00007ff45101f477 in Python::Helper::getDataDir () at /usr/src/debug/kdev-python-v1.5.0/duchain/helpers.cpp:263
#8 0x00007ff45101f93d in Python::Helper::getSearchPaths (workingOnDocument=...) at /usr/src/debug/kdev-python-v1.5.0/duchain/helpers.cpp:297
#9 0x00007ff451027c3d in Python::ContextBuilder::findModulePath (this=0x7ff43c033740, name=...) at /usr/src/debug/kdev-python-v1.5.0/duchain/contextbuilder.cpp:348
#10 0x00007ff4510306d6 in Python::DeclarationBuilder::createModuleImportDeclaration (this=this@entry=0x7ff43c033740, moduleName=..., declarationName=..., declarationIdentifier=declarationIdentifier@entry=0x7ff43c131d00, rangeNode=rangeNode@entry=0x0, createProblem=createProblem@entry=Python::DeclarationBuilder::DontCreateProblems) at /usr/src/debug/kdev-python-v1.5.0/duchain/declarationbuilder.cpp:781
The data dir must contain a documentation_files directory. It contains the python API, which is read by the parser and is vital to the correct functioning of the plugin. The plugin shouldn't crash but display an error message instead (I'll fix that) but the problem is that it's not installed correctly. If this is from your distribution's package, please report a bug with them about it. Closing as invalid. Cheers, Sven Thanks a lot! As a workaround, you can try git clone git://anongit.kde.org/kdev-python sudo cp -R kdev-python/documentation_files/ /usr/share/kde4/apps/kdevpythonsupport/ There is doc-subpackage at openSUSE, but it isn't required y the main one. Thanks! Did you check, and does installing the doc package work? That's good ;) Should I tell the SuSE people, or did you create a report already? I should probably pick a less confusing name for the directory to make sure people don't get it wrong again. Yes, I did. No, I'll do it. Would you mind posting the link to the report here, for future reference? Thanks. I've already posted: https://build.opensuse.org/request/diff/174462 (In reply to comment #4) > The data dir must contain a documentation_files directory. It contains the > python API, which is read by the parser and is vital to the correct > functioning of the plugin. The plugin shouldn't crash but display an error > message instead (I'll fix that) but the problem is that it's not installed > correctly. If this is from your distribution's package, please report a bug > with them about it. > Additionally, you could add a README.packagers (or whatever name) with this notice Yes, that's what I was planning to do. Thanks for the link (and for the report in the first place). It's a pleasure! Great thanks for immediate reply! Git commit 75928062e2bf9aebc39de4de500240d0ac75eb3e by Sven Brauch. Committed on 03/05/2013 at 20:40. Pushed by brauch into branch '1.5'. Add a PACKAGERS readme file. This should help prevent issues such as bug 319284. A +29 -0 README.packagers http://commits.kde.org/kdev-python/75928062e2bf9aebc39de4de500240d0ac75eb3e *** Bug 321765 has been marked as a duplicate of this bug. *** |