Login  Register

Re: JVM won't die after shader compile

Posted by Sven Gothel on Nov 12, 2010; 8:58pm
URL: https://forum.jogamp.org/JVM-won-t-die-after-shader-compile-tp1877330p1891442.html

On Friday, November 12, 2010 20:53:41 Jeff [via jogamp] wrote:
>
> Ok.. I got it to die.. but perhaps someone could give me some advice on
> minimizing the potential damage I may be doing, if any. Here is what I had
> to do.
>
> System.exit(0);

thx ..

we have to investigate this.

windows only I guess ..

maybe a non deamon thread is still alive ?

use jstack -l <pid>, or jvisualvm
when the app is waiting forever ..


>
> try {
> if (OS.startsWith("Windows")) {
> String pidstr =
> java.lang.management.ManagementFactory.getRuntimeMXBean().getName();
> String pid[] = pidstr.split("@");
> Runtime.getRuntime().exec("taskkill /F /PID " + pid[0]).waitFor();
> }
> }
> catch (Exception e) {
> }
>
> ______________________________________
> View message @ http://jogamp.762907.n3.nabble.com/JVM-won-t-die-after-shader-compile-tp1877330p1891121.html
> To start a new topic under jogl, email [hidden email]
> To unsubscribe from jogl, click http://jogamp.762907.n3.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=782158&code=c2dvdGhlbEBqYXVzb2Z0LmNvbXw3ODIxNTh8NDU1NjU4MjUx
>


--
health & wealth
mailto:[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; cell: +49 (151) 28145941
Timezone CET: PST+9, EST+6, UTC+1