Bug 590983

Summary: Game Store leads package manager into infinite loop
Product: [openSUSE] openSUSE 11.3 Reporter: Ilya Chernykh <anixx>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED WORKSFORME QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P3 - Medium CC: Greg.Freemyer
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Yast logs from a 11.3 infinit loop

Description Ilya Chernykh 2010-03-25 00:21:52 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.8) Gecko/20100204 SUSE/3.5.8-0.1.1 Firefox/3.5.8

When installing a game using Game Store, it leads Yast package manager (under Gnome) into infinite loop: it downloads the package, installs it, then again downloads and installs and so on until interrupted with system monitor.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Pavol Rusnak 2010-04-28 14:06:58 UTC
Sadly I cannot reproduce it on my 11.2 Gnome Machine. :-/
Guess there is something mis-configured on your one
Comment 2 Ilya Chernykh 2010-04-28 14:13:41 UTC
I have re-installed the system and experience the same problem after re-install.
Comment 3 Pavol Rusnak 2010-04-28 14:19:32 UTC
Use /sbin/save_y2logs to generate yast2logs and attach the file here ...
Comment 4 Greg Freemyer 2010-08-11 15:51:13 UTC
Created attachment 382282 [details]
Yast logs from a 11.3 infinit loop

I just had an infinite loop occur when installing debug packages from Dr. Kongi.

I was running 11.3 fully updated with online updates.

I was busy doing other things, so the same debug package was probably downloaded and installed 20+ times.
Comment 5 Michael Andres 2010-08-30 10:43:52 UTC
Seems to be a bug in YaST evaluating it's 'sw_single -S' return code; do

- grep 'genericfrontend\|rpm.*--root.*-U' y2log*

- check "'y2base' 'sw_single' '-S' '(libkde4-debuginfo)' '(libkde4-debuginfo)' '(libkde4-debuginfo)' '(libkde4-debuginfo)' 'qt'" calls.

- Normal exit "Exiting with client return value '`auto'" seems to cause the restart, while aborting the installation causes "Exiting with client return value '`next'" which ends the loop.

AFAIR there've been requests to re-enter sw_single after commit instead of returning to the control center. Maybe this was implemented without omitting the more or less non-interactive modes.
Comment 8 Ladislav Slezák 2010-11-12 13:31:00 UTC
I could not reproduce the bug - I have installed 11.3 + GNOME, in Game Store I selected SuperTux and FrozenBuble - both were installed correctly.

Then I set /etc/sysconfig/yast2:PKGMGR_ACTION_AT_EXIT="restart" and installed Ltris and GnuChess again without problems.

Could somebody describe a step-by-step example how to reproduce it?
Comment 9 Greg Freemyer 2010-11-12 17:35:00 UTC
Ladislav,

My use case was different, but I assume is the same underlying bug:

1) Have KDE running, but don't have the debug packages installed
2) Do something to crash KDE and cause Dr. Kongi to pop up.
(If you don't have a known way, I have a PPT file that crashes dolphin in preview mode.  I think they are easy to find similar examples.)
3) Dr. Kongi will say the debug packages are not installed, do you want me to install.  Go through the process until the debug packages are installing.  When they are done, you click OK or Finish.  Then the yast is relaunched and does it all over again.  I attached my yast logs earlier.

Or if you think this is an unrelated bug, I can open a new bugzilla.
Comment 10 Ilya Chernykh 2010-11-12 22:21:41 UTC
On 11.2 this was always reproducible in Game Store for me, but under 11.3 Game Store works well. I encountered this bug only once on 11.3 when I installed a package by double-clicking on it in KDE3. It first opened in Konq RPM browsing plugin and there was a button "install this package". I pressed it and Yast went into infinite loop. I do not remember which package was it exactly. Other packages install well this same way.
Comment 11 Ilya Chernykh 2010-11-12 22:32:55 UTC
Ladislav Slezak, can you install 11.2 and try to reproduce it in Game Store?
Comment 12 Ladislav Slezák 2011-08-05 08:24:41 UTC
I have checked gamestore in 11.2 and it seems that 11.2 is not supported anymore. The packages have been removed, 11.2 is too old.

Closing as WORKSFORME (see comment #8), but feel free to reopen if you can reproduce it in 11.4 or 12.1-pre (Factory).