Skip to main content

[JIRA] Resolved: (HDCOOKBOOK-220) Mosaic creation java process can exit with a non-zero status code

  • From: "chihiro_saito (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Resolved: (HDCOOKBOOK-220) Mosaic creation java process can exit with a non-zero status code
  • Date: Thu, 12 Jan 2012 23:50:23 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/HDCOOKBOOK-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

chihiro_saito resolved HDCOOKBOOK-220.
--------------------------------------

    Resolution: Fixed

A workaround for the tool is committed at r657.

> Mosaic creation java process can exit with a non-zero status code
> -----------------------------------------------------------------
>
>                 Key: HDCOOKBOOK-220
>                 URL: http://java.net/jira/browse/HDCOOKBOOK-220
>             Project: hdcookbook
>          Issue Type: Bug
>         Environment: Windows 7 64 bits, JRE 1.6.0_18-b07
>            Reporter: chihiro_saito
>            Assignee: chihiro_saito
>            Priority: Minor
>
> With my Windows 7 64 bits, JRE 1.6.0_18-b07, both with cygwin and ant, I've 
> observed that:
> 1) Mosaic creation process exits with non-zero return code, below.  This 
> causes our ant build process that uses the mosaic tool to halt. 
> Java returned: -1073741819
> 2) It occurs on my cygwin's raw java invocation too, not just within ant.  
> Only happens on Windows, it works fine on Mac.   The mosaic is created 
> successfully, just the exit code is non-zero.   
> 3) I've seen that the exit code becomes 0 if I add "-show_mosaic" option to 
> the tool invocation, or if I comment out the System.exit(0) line at the end 
> of Main.main(String[] args).
> While I suspect that this is a JDK problem, I'm going to remove this one 
> line from Main method because it should be harmless, and that there's one 
> posting on the hdcookbook forum reporting the same issue.
> $ svn diff
> Index: 
> jdktools/binaryconverter/src/com/hdcookbook/grin/binaryconverter/Main.java
> ===================================================================
> --- 
> jdktools/binaryconverter/src/com/hdcookbook/grin/binaryconverter/Main.java  
> (revision 656)
> +++ 
> jdktools/binaryconverter/src/com/hdcookbook/grin/binaryconverter/Main.java  
> (working copy)
> @@ -244,7 +246,8 @@
>              e.printStackTrace();
>              System.exit(1);
>          }
> -        System.exit(0);
> +        //System.exit(0); /// FIXME: This causes the negative value exit 
> problem
>     }
>      private static int argToInt(String s) {

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (HDCOOKBOOK-220) Mosaic creation java process can exit with a non-zero status code

chihiro_saito (JIRA) 01/12/2012

[JIRA] Work started: (HDCOOKBOOK-220) Mosaic creation java process can exit with a non-zero status code

chihiro_saito (JIRA) 01/12/2012

[JIRA] Resolved: (HDCOOKBOOK-220) Mosaic creation java process can exit with a non-zero status code

chihiro_saito (JIRA) 01/12/2012
 
 
Close
loading
Please Confirm
Close