Bug 168577 - hangs after start at a stage "generating package information"
Summary: hangs after start at a stage "generating package information"
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kpackage
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Toivo Pedaste
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 07:40 UTC by stanislav
Modified: 2009-12-20 14:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stanislav 2008-08-07 07:40:50 UTC
Version:           4.1.0-1 (using KDE 4.1.0)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Debian testing with KDE 4.1 from unstable/experimental.

/etc/apt/sources.list
deb http://debian.kuzbass.net/debian/ testing main non-free
deb http://debian.kuzbass.net/debian/ sid main
deb http://debian.kuzbass.net/debian/ experimental main

/etc/apt/preferences
Package: *
Pin: release a=testing
Pin-Priority: 900
Package: *
Pin: release a=unstable
Pin-Priority: 800
Package: *
Pin: release a=experimental
Pin-Priority: 101

Hangs after start at a stage "generating package information" - on a 2.6 GHZ it was taking all CPU, kpackage-window is white.

stanislav@home:/$ kpackage
kpackage(23661) pkgInterface::ifExe: Program not found:  "rpm"
kpackage(23661) KpTreeList::readTreePos: KpTreeList::readTreePos()
kpackage(23661) managementWidget::readPSeparator: managementWidget::readPSeparator()
kpackage(23661) KPKG::setupMenu: kpinterface[DEBt]->makeMenu
kpackage(23661) DEB::makeMenu: DEB::makeMenu
kpackage(23661) kpPty::breakUpCmd:  kpPty::run CMD=" "smart query --installed" " pty =  kpKProcIO(0x1bb9150)
kpackage(23661) kpPty::run: return Result= 0   984
kpackage(23661) kpPty::breakUpCmd:  kpPty::run CMD=" "/bin/sh -c 'smart info --urls >/tmp/kde-stanislav/smart.list'" " pty =  kpKProcIO(0x1bb9150)
kpackage(23661) kpPty::run: return Result= 1   1
Comment 1 Xavier Brochard 2008-10-16 16:35:10 UTC
Same here, using KDE 4.1.2 (Debian Linux unstable, AMD64).

Little differences in CLI output though:
-----------------------------------------------------
kpackage(16088) KpTreeList::readTreePos: KpTreeList::readTreePos()
kpackage(16088) managementWidget::readPSeparator: managementWidget::readPSeparator()
kpackage(16088) KPKG::setupMenu: kpinterface[DEBt]->makeMenu
kpackage(16088) DEB::makeMenu: DEB::makeMenu
kpackage(16088) kpPty::breakUpCmd:  kpPty::run CMD=" "smart query --installed" " pty =  kpKProcIO(0x1e82f20)
kpackage(16088) kpPty::run: return Result= 0   1512
kpackage(16088) kpPty::breakUpCmd:  kpPty::run CMD=" "/bin/sh -c 'smart info --urls >/home/xavier/.kde4/tmp-ahasverus/smart.list'" " pty =  kpKProcIO(0x1e82f20)
kpackage(16088) kpPty::run: return Result= 0   0
kpackage(16088) packageInfo::fixup: Package  "package"  has no group set.
kpackage(16088) packageInfo::fixup: Package  "http://lists.sourceforge.net/lists/listinfo/hfterm-hackers."  has no group set.

Process killed after running 2 hours. Was eating 99% of cpu.

Running alone, Smart Package Manager works well.
Comment 2 Igor Poboiko 2009-01-23 10:33:55 UTC
I can confirm this bug, KDE 4.1.4, Debian Lenny (from kde4.debian.net)

kpackage(6071) KpTreeList::readTreePos: KpTreeList::readTreePos()
kpackage(6071) managementWidget::readPSeparator: managementWidget::readPSeparator()
kpackage(6071) KPKG::setupMenu: kpinterface[DEBt]->makeMenu
kpackage(6071) DEB::makeMenu: DEB::makeMenu
kpackage(6071) kpPty::breakUpCmd:  kpPty::run CMD=" "smart query --installed" " pty =  kpKProcIO(0x813c3c0)
kpackage(6071) kpPty::run: return Result= 0   1904
kpackage(6071) kpPty::breakUpCmd:  kpPty::run CMD=" "/bin/sh -c 'smart info --urls >/tmp/kde-eol/smart.list'" " pty =  kpKProcIO(0x813c3c0)
kpackage(6071) kpPty::run: return Result= 0   0
Comment 3 Igor Poboiko 2009-02-04 20:56:02 UTC
Bug still exists in KDE 4.2.0 from Debian Experimental. KPackage gives same output.
Comment 4 Igor Poboiko 2009-03-09 23:12:58 UTC
i've uncommented some debug lines and compiled KPackage from KDE svn. In my case, kpackage generates info-file, using 'smart info --urls >/tmp/kde-eol/smart.list', and this file is large (28MB). Then kpackage tries to read&parse it - and do it very slow. When i asked my friend to run 'smart info --urls >testfile; du -h testfile' - it was only 700 KB. So i think it is SMART bug.. Now i'm trying to understand, where did smart get theese 30k packages o_O
Comment 5 Igor Poboiko 2009-03-09 23:32:30 UTC
Finally - i have compiled latest version of smartpm (1.2) - and all works fine! I had version 1.0 from Debian experimental. Can anyone confirm - is the problem in smartpm or it's just for me?
Comment 6 Igor Poboiko 2009-03-10 00:05:22 UTC
I'm finally shocked. I've just felt down to smart 1.0 from debian experimental repo, and all still work fine - smart generates 3.4mb-info file(but not 30mb, how it was!), and kpackage parse it only for 4-5 minutes - and then works fine! So maybe try to reinstall smartpm, if you have these bug. 

[12:50 eol:~]$ smart --version
smart 1.0

[12:50 eol:~]$ kpackage
                                                                            
kpackage(18860) KpTreeList::readTreePos: KpTreeList::readTreePos()                                                                          
kpackage(18860) managementWidget::readPSeparator: managementWidget::readPSeparator()                                                        
kpackage(18860) KPKG::setupMenu: kpinterface[DEBt]->makeMenu                                                                                
kpackage(18860) DEB::makeMenu: DEB::makeMenu                                                                                                
kpackage(18860) kpPty::breakUpCmd:  kpPty::run CMD=" "smart query --installed" " pty =  kpKProcIO(0x811da20)                                
kpackage(18860) kpPty::run: return Result= 0   1917                                                                                         
kpackage(18860) kpPty::breakUpCmd:  kpPty::run CMD=" "/bin/sh -c 'smart info --urls >/tmp/kde-eol/smart.list'" " pty =  kpKProcIO(0x811da20)
kpackage(18860) kpPty::run: return Result= 0   0                                                                                            
kpackage(18860) managementWidget::checkMarked: checkMarked()  0   0                                                                         
kpackage(18860) kpPty::startSession: kpPty::startSession
kpackage(18860) kpPty::startSession: kpPty::startSession TRUE
kpackage(18860) kpPty::startSession: privCmd= 1   0   1
kpackage(18860) kpPty::startSu: startSu()
kpackage(18860) kpPty::startSession: Loopst
kpackage(18860) kpPty::readLines: true   "ÐаÑолÑ: "  Match password p
kpackage(18860) kpPty::startSession: Loopfn Result= -2000
kpackage(18860) kpPty::startSession: H= ""  PT= false
kpackage(18860) kpPty::startSession: Passwd= "ÐаÑолÑ: "
kpackage(18860) kpPty::startSession: Loopst
kpackage(18860) kpPty::startSession: Loopfn Result= -1000
kpackage(18860) kpPty::startSession: kpPty::startSession TRUE
kpackage(18860) kpPty::startSession: kpPty::startSession
kpackage(18860) kpPty::startSession: kpPty::startSession Not needed
kpackage(18860) kpPty::run: CMDroot=' "smart update" '
kpackage(18860) kpPty::run:  kpPty::run session

[12:55 eol:~]$ du -h /tmp/kde-eol/smart.list
3,4M    /tmp/kde-eol/smart.list
Comment 7 Igor Poboiko 2009-03-10 00:12:40 UTC
Oh, i understood. After running 'smart update' smart.list occupies 28MB again. Anyway, in my case it's smartpm bug.
Comment 8 Igor Poboiko 2009-03-10 09:33:45 UTC
file pkgInterface.cpp, function pkgInterface::collectInfo() parses package information for 1 package from smart list. This debug output

  kDebug() << "!!!!" << key << "," << val << "\n";
  if (key == "name" || key == "package") {
    a.insert("name", val);
    haveName = true;
...

shows, that key is in my system language, not in english! It prints something like: 
...
kpackage(16964) pkgInterface::collectInfo: !!!! "каналы" , "sid - main contrib non-free"          
kpackage(16964) pkgInterface::collectInfo: !!!! "флаги" , "new"                                                                                                                       
kpackage(16964) pkgInterface::collectInfo: !!!! "сводка" , "AOLserver 4 module: module for accessing MySQL databases"          
...             

[10:33 eol:~/projects/other/kdeadmin/kpackage]$ locale
LANG=ru_UA.UTF-8
LANGUAGE=
LC_CTYPE="ru_UA.UTF-8"
LC_NUMERIC="ru_UA.UTF-8"
LC_TIME="ru_UA.UTF-8"
LC_COLLATE="ru_UA.UTF-8"
LC_MONETARY="ru_UA.UTF-8"
LC_MESSAGES="ru_UA.UTF-8"
LC_PAPER="ru_UA.UTF-8"
LC_NAME="ru_UA.UTF-8"
LC_ADDRESS="ru_UA.UTF-8"
LC_TELEPHONE="ru_UA.UTF-8"
LC_MEASUREMENT="ru_UA.UTF-8"
LC_IDENTIFICATION="ru_UA.UTF-8"
LC_ALL=

and if i run 'LANG="en" kpackage' - all works really fast! So maybe you must to run smartpm with modified LANG enviroment variable or add parsing other languages...
Comment 9 Xavier Brochard 2009-03-10 09:35:29 UTC
you should report this bug to Debian, against smartpm
Comment 10 Igor Poboiko 2009-03-10 10:09:51 UTC
But it's not smartpm bug - it's because kpackage works only with english smartpm (please see bug #186735, that i've created). This bug really complicated me..
Comment 11 Dario Andres 2009-12-20 14:01:16 UTC
KPackage was recently removed from KDE SC (since 4.4 beta2) as it was completely broken and unmaintained.

Most of the common GNU/Linux distributions offer their own tools to deal with packages, and KDE is working on an universal package manager replacement named "Shaman" (to superseed KPackageKit)

Closing the KPackage's bug reports as UNMAINTAINED.

Regards