Bug 163740

Summary: Software Management quits on start
Product: [openSUSE] SUSE Linux 10.1 Reporter: David Wright <david.wright>
Component: YaST2Assignee: Michael Andres <ma>
Status: RESOLVED FIXED QA Contact: Stanislav Visnovsky <visnov>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Beta 9   
Target Milestone: ---   
Hardware: PC   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs for quitting Software Management window
y2logs for quitting Software Management window

Description David Wright 2006-04-05 12:28:40 UTC
When an FTP or HTTP software source is enabled, Software Management quits on startup (window opens for a few seconds, then closes again).
Comment 1 David Wright 2006-04-05 12:44:10 UTC
Created attachment 76645 [details]
y2logs for quitting Software Management window
Comment 2 Michael Gross 2006-04-05 12:45:52 UTC
Please try to start the module from a shell:

%yast2 sw_single

and copy the output. Furthermore: Attach /var/log/YaST2 as tarball here.
Comment 3 David Wright 2006-04-05 12:53:47 UTC
Trying to upload y2 logs at moment, had a gateway timeout on first try to upload...
Comment 4 David Wright 2006-04-05 12:54:33 UTC
Created attachment 76648 [details]
y2logs for quitting Software Management window
Comment 5 David Wright 2006-04-05 12:57:48 UTC
Output from terminal:

terminate called after throwing an instance of 'zypp::Exception'
  what():  Corrupt source, Expected SHA1 90056eab2d58a51a1a69f80bfcf3fc1a2f3c0cc1, got 351c0dfaaa88b243e9b9a929c96ff017c360f281 for /var/lib/zypp/cache/1/DATA/descr/packages
/sbin/yast2: line 219:  6182 Aborted                 $ybindir/y2base $module "$@" qt "$Y2_GEOMETRY" $Y2QT_ARGS

Think this is related to the automaticly generated entry from successful registration during installation! When I try and delete the ftp.lug.ro entry that the installer generated, I get the same error...
Comment 6 David Wright 2006-04-05 13:02:24 UTC
Disabled the automatically generated entry from the installer and it works.
Comment 7 Stanislav Visnovsky 2006-04-06 11:30:58 UTC
Looks like pkg-bindings do not catch an exception.
Comment 8 Ladislav Slezák 2006-04-07 10:50:21 UTC
No, it seems that QT UI doesn't catch the exception.

The log contains:

2006-04-05 14:28:16 <1> dcwtuxws03(5701) [wfm] clients/inst_packages.ycp:24 Pkg Builtin called: SaveState
2006-04-05 14:28:16 <1> dcwtuxws03(5701) [qt-pkg] YQPackageSelectorBase.cc(YQPackageSelectorBase):94 PackageSelectorBase init done
[...]
2006-04-05 14:28:17 <5> dcwtuxws03(5701) [base] Exception.cc(log):94 SuseTagsImpl.cc(verifyFile):404 THROW:    SuseTagsImpl.cc(verifyFile):404: Corrupt source, Expected SHA1 90056eab2d58a51a1a69f80bfcf3fc1a2f3c0cc1, got 351c0dfaaa88b243e9b9a929c96ff017c360f281 for /var/lib/zypp/cache/1/DATA/descr/packages

inst_packages calls Pkg::SaveState and then it displays the package selector widget
Comment 9 Stefan Hundhammer 2006-04-07 11:33:33 UTC
Duplicate

Why should the UI take care of exceptions that are to be handled on one of the lib levels? The UI has no way to handle those exceptions.
Comment 10 Michael Andres 2006-12-04 16:09:37 UTC
Pkg bindings improved their exception handling. Fixed.