View Issue Details

IDProjectCategoryView StatusLast Update
0001313SkyChart1-Softwarepublic14-04-08 19:50
ReporterPatrick Chevalley Assigned ToPatrick Chevalley  
PrioritynormalSeveritymajorReproducibilitysometimes
Status resolvedResolutionfixed 
PlatformAllOSLinux, Mac OS XOS VersionAll
Product Version3.10 
Target Version4.0Fixed in Version3.11 SVN 
Summary0001313: Startup failed with message "Initialization Error" on Linux or Mac OS X
DescriptionIf 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.
TagsNo tags attached.

Relationships

related to 0001312 resolvedPatrick Chevalley Skychart Starts Up with Error Message 

Activities

Patrick Chevalley

14-04-08 19:47

administrator  

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];
fix1313.patch (680 bytes)   

Patrick Chevalley

14-04-08 19:50

administrator   ~0002857

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.

Issue History

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