View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001313 | SkyChart | 1-Software | public | 14-04-08 19:39 | 14-04-08 19:50 |
Reporter | Patrick Chevalley | Assigned To | Patrick Chevalley | ||
Priority | normal | Severity | major | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Platform | All | OS | Linux, Mac OS X | OS Version | All |
Product Version | 3.10 | ||||
Target Version | 4.0 | Fixed in Version | 3.11 SVN | ||
Summary | 0001313: Startup failed with message "Initialization Error" on Linux or Mac OS X | ||||
Description | If Xplanet is not installed on Linux or Mac OS X the program show the error message "Initialization Error: Failed to execute: 2" , and the program is no more usable. | ||||
Tags | No tags attached. | ||||
related to | 0001312 | resolved | Patrick Chevalley | Skychart Starts Up with Error Message |
|
fix1313.patch (680 bytes)
Index: skychart/u_util.pas =================================================================== --- skychart/u_util.pas (revision 2861) +++ skychart/u_util.pas (revision 2862) @@ -2316,6 +2316,7 @@ var p:TProcess; r:TStringList; buf:string; + ok: boolean; begin result:='0.0.0'; p:=TProcess.Create(nil); @@ -2334,8 +2335,13 @@ {$endif} p.Parameters.Add('--version'); p.Options:=[poWaitOnExit,poUsePipes,poNoConsole, poStdErrToOutput]; + try + ok:=true; p.Execute; - if p.ExitStatus=0 then begin + except + ok:=false; + end; + if ok and (p.ExitStatus=0) then begin r.LoadFromStream(p.Output); if r.Count>0 then begin buf:=r[0]; |
|
Revision 2862 now ignore an exception when calling Xplanet: http://sourceforge.net/p/skychart/code/2862/ The attached patch "fix1313.patch" can be applied to the 3.10 source code. |
Date Modified | Username | Field | Change |
---|---|---|---|
14-04-08 19:39 | Patrick Chevalley | New Issue | |
14-04-08 19:39 | Patrick Chevalley | Status | new => assigned |
14-04-08 19:39 | Patrick Chevalley | Assigned To | => Patrick Chevalley |
14-04-08 19:39 | Patrick Chevalley | Relationship added | related to 0001312 |
14-04-08 19:47 | Patrick Chevalley | File Added: fix1313.patch | |
14-04-08 19:50 | Patrick Chevalley | Note Added: 0002857 | |
14-04-08 19:50 | Patrick Chevalley | Status | assigned => resolved |
14-04-08 19:50 | Patrick Chevalley | Resolution | open => fixed |
14-04-08 19:50 | Patrick Chevalley | Fixed in Version | 0.3.0 => 3.11 SVN |