<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Esri Desktop Application crashes when trying to run by double click on icon in Li in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/180#M4</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi sachin, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sure i am using a sample globe application containing globebean, toolbarbean and TOCbean, provided by ESRI, and on which i had do some customization like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.opening a Elevation layer in .dted1 format, and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Right click for zoom to layer on the specific layer which was loaded on the toolbar bean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i had corrected the -XSS parameter and also included the -Xmx and -Xms parameters while launching but the result is same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;checked with jconsole but when i try to run jconsole for memory leak the application with the pid the application crashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes my icon is just a shortcut of the script, i had also created the launcher for the same application and select the "run in terminal" as type and in both the case i am facing same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i run the same in the terminal window the application runs fine and smoothly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem what is understood before was the path variable ARCGISENGINE is not available in the terminal where i was trying to run the application, i had solved that after that my sample application runs for a while and after some clicks say about 10 clicks on the application, it will shows the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you provide some information about what exactly is the code doing? Is your icon just a shortcut to the script. From the command line you are using a different stack size than the one which crashed. &lt;BR /&gt;&lt;BR /&gt;Try defining your JVM parameters like -Xss -Xmx and -Xms explicitly while launching. &lt;BR /&gt;&lt;BR /&gt;Alternatively, use something like a jconsole to see if there is a memory leak in your application.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2013 06:30:36 GMT</pubDate>
    <dc:creator>GauravKumar3</dc:creator>
    <dc:date>2013-07-16T06:30:36Z</dc:date>
    <item>
      <title>Esri Desktop Application crashes when trying to run by double click on icon in Linux</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/178#M2</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting a problem when i am trying to run esri desktop application from double click on the icon created on linux, the application runs for a while and crashes showing core dump issue on the terminal window. Although the same application runs fine when i run it using terminal command or with shell script of the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the command i used to run the application directly on the terminal:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
$ java -jar -Xss10m /home/user/Desktop/sample.jar
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the command i used to run the application using shell script. the script file contains the above command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
$ ./runSample.sh
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and here is the output when i try to run the application using double click on icon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
/home/gisuser/arcgis/engine10.1/
file:/home/gisuser/Desktop/ADAssetwidTrack05072013.jar!/adaps.png
/home/gisuser/Desktop/runADAsset.sh: line 4:&amp;nbsp; 4738 Aborted&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (core dumped) java -jar -Xss5m /home/gisuser/Desktop/sample.jar
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please Help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 05:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/178#M2</guid>
      <dc:creator>GauravKumar3</dc:creator>
      <dc:date>2013-07-15T05:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Desktop Application crashes when trying to run by double click on icon in Li</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/179#M3</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you provide some information about what exactly is the code doing? Is your icon just a shortcut to the script. From the command line you are using a different stack size than the one which crashed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try defining your JVM parameters like -Xss -Xmx and -Xms explicitly while launching. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, use something like a jconsole to see if there is a memory leak in your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I am getting a problem when i am trying to run esri desktop application from double click on the icon created on linux, the application runs for a while and crashes showing core dump issue on the terminal window. Although the same application runs fine when i run it using terminal command or with shell script of the application.&lt;BR /&gt;&lt;BR /&gt;here is the command i used to run the application directly on the terminal:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
$ java -jar -Xss10m /home/user/Desktop/sample.jar
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;here is the command i used to run the application using shell script. the script file contains the above command.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
$ ./runSample.sh
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and here is the output when i try to run the application using double click on icon.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
/home/gisuser/arcgis/engine10.1/
file:/home/gisuser/Desktop/ADAssetwidTrack05072013.jar!/adaps.png
/home/gisuser/Desktop/runADAsset.sh: line 4:&amp;nbsp; 4738 Aborted&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (core dumped) java -jar -Xss5m /home/gisuser/Desktop/sample.jar
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Please Help.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:01:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/179#M3</guid>
      <dc:creator>SachinKanaujia</dc:creator>
      <dc:date>2021-12-10T20:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Desktop Application crashes when trying to run by double click on icon in Li</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/180#M4</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi sachin, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sure i am using a sample globe application containing globebean, toolbarbean and TOCbean, provided by ESRI, and on which i had do some customization like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.opening a Elevation layer in .dted1 format, and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Right click for zoom to layer on the specific layer which was loaded on the toolbar bean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i had corrected the -XSS parameter and also included the -Xmx and -Xms parameters while launching but the result is same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;checked with jconsole but when i try to run jconsole for memory leak the application with the pid the application crashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes my icon is just a shortcut of the script, i had also created the launcher for the same application and select the "run in terminal" as type and in both the case i am facing same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i run the same in the terminal window the application runs fine and smoothly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem what is understood before was the path variable ARCGISENGINE is not available in the terminal where i was trying to run the application, i had solved that after that my sample application runs for a while and after some clicks say about 10 clicks on the application, it will shows the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you provide some information about what exactly is the code doing? Is your icon just a shortcut to the script. From the command line you are using a different stack size than the one which crashed. &lt;BR /&gt;&lt;BR /&gt;Try defining your JVM parameters like -Xss -Xmx and -Xms explicitly while launching. &lt;BR /&gt;&lt;BR /&gt;Alternatively, use something like a jconsole to see if there is a memory leak in your application.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 06:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/180#M4</guid>
      <dc:creator>GauravKumar3</dc:creator>
      <dc:date>2013-07-16T06:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Desktop Application crashes when trying to run by double click on icon in Li</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/181#M5</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thats a bit strange. All I can suggest you is to print some environment variables from within your script (running as shortcut) which could make the difference, like JAVA_HOME, PATH, ARCGIS related path. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also there is a subtle difference in implementation of tools in 10.1 as compared to previous versions but it should have consistently failed either way. Try the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Set all the required paths&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) source init_java.sh or init_java.csh as the shell you are using before launching your java program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell me how you are doing any of the tools implementation??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 14:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/181#M5</guid>
      <dc:creator>SachinKanaujia</dc:creator>
      <dc:date>2013-07-16T14:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Desktop Application crashes when trying to run by double click on icon in Li</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/182#M6</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can see the path of ARCENGINEHOME in the first post i used echo command to display all the paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as for init_java.sh file it was written in esri website to copy and paste the init_java.sh and init_engine.sh file form arcgis engine installation directory to "/etc/profile.d/" which i had already done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if there might be any difference in the implementation then how come my application will run perfectly fine when i try to run it from the command prompt and it crashes when i try to run by double-click on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tell me is there any issue with the JVM getting low memory and how can i increase the same for my application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i had already tested -Xms and -Xmx parameters but none works for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thats a bit strange. All I can suggest you is to print some environment variables from within your script (running as shortcut) which could make the difference, like JAVA_HOME, PATH, ARCGIS related path. &lt;BR /&gt;&lt;BR /&gt;Also there is a subtle difference in implementation of tools in 10.1 as compared to previous versions but it should have consistently failed either way. Try the following&lt;BR /&gt;&lt;BR /&gt;1) Set all the required paths&lt;BR /&gt;&lt;BR /&gt;2) source init_java.sh or init_java.csh as the shell you are using before launching your java program.&lt;BR /&gt;&lt;BR /&gt;Can you tell me how you are doing any of the tools implementation??&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 18:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/esri-desktop-application-crashes-when-trying-to/m-p/182#M6</guid>
      <dc:creator>GauravKumar3</dc:creator>
      <dc:date>2013-07-19T18:18:43Z</dc:date>
    </item>
  </channel>
</rss>

