New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interrupted exception after the program finishes #3028

Open
rkfg opened this Issue Mar 13, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@rkfg
Copy link

rkfg commented Mar 13, 2017

I only have some messy and non-OOP code I'm playing with but it produces a warning with a backtrace after completing the task: https://gist.github.com/rkfg/fdf00dca70f67416f3664d999f44041c

After 20th epoch I get this:

15:00:42,554 INFO  ~ Score at iteration 39 is 43.54585747292484
I = 909                                                                                       
Epoch complete: 100%                                                                  
[WARNING]                                                                                       
java.lang.RuntimeException: java.lang.InterruptedException                          
        at org.nd4j.jita.memory.impl.CudaCachingZeroProvider.ensureCacheHolder(CudaCachingZeroProvider.java:130)
        at org.nd4j.jita.memory.impl.CudaCachingZeroProvider.free(CudaCachingZeroProvider.java:159)
        at org.nd4j.jita.memory.impl.CudaFullCachingProvider.free(CudaFullCachingProvider.java:145)
        at org.nd4j.jita.handler.impl.CudaZeroHandler.free(CudaZeroHandler.java:475)
        at org.nd4j.jita.handler.impl.CudaZeroHandler.purgeZeroObject(CudaZeroHandler.java:1088)
        at org.nd4j.jita.allocator.impl.AtomicAllocator.purgeZeroObject(AtomicAllocator.java:418)
        at org.nd4j.jita.allocator.impl.AtomicAllocator$UnifiedGarbageCollectorThread.run(AtomicAllocator.java:617)
Caused by: java.lang.InterruptedException                                                                                         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.jav
a:1302)
        at java.util.concurrent.Semaphore.acquire(Semaphore.java:312)              
        at org.nd4j.jita.memory.impl.CudaCachingZeroProvider.ensureCacheHolder(CudaCachingZeroProvider.java:125)
        ... 6 more
[WARNING] thread Thread[ResourceGC thread 0,5,dlchat.Main] was interrupted but is still alive after waiting at least 14982
msecs                                                                                   
[WARNING] thread Thread[ResourceGC thread 0,5,dlchat.Main] will linger despite being asked to die via interruption       
[WARNING] thread Thread[ResourceGC thread 1,5,dlchat.Main] will linger despite being asked to die via interruption
[WARNING] thread Thread[ResourceGC thread 2,5,dlchat.Main] will linger despite being asked to die via interruption
[WARNING] thread Thread[ResourceGC thread 3,5,dlchat.Main] will linger despite being asked to die via interruption
[WARNING] thread Thread[UniGC thread 0,5,dlchat.Main] will linger despite being asked to die via interruption
[WARNING] thread Thread[UniGC thread 1,5,dlchat.Main] will linger despite being asked to die via interruption
[WARNING] thread Thread[UniGC thread 2,5,dlchat.Main] will linger despite being asked to die via interruption
[WARNING] thread Thread[UniGC thread 3,5,dlchat.Main] will linger despite being asked to die via interruption
[WARNING] thread Thread[UniGC thread 4,5,dlchat.Main] will linger despite being asked to die via interruption
[WARNING] thread Thread[NativeRandomDeallocator thread 0,5,dlchat.Main] will linger despite being asked to die via interru
ption
[WARNING] NOTE: 10 thread(s) did not finish despite being asked to  via interruption. This is not a problem with exec:java
, it is a problem with the running code. Although not serious, it should be remedied.
[WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=dlchat.Main,maxpri=10]
java.lang.IllegalThreadStateException
        at java.lang.ThreadGroup.destroy(ThreadGroup.java:778)
        at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:328)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.ja
va:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.232 s
[INFO] Finished at: 2017-03-13T15:00:57+03:00
[INFO] Final Memory: 61M/2108M
[INFO] ------------------------------------------------------------------------

Note that I'm running the program via maven exec: MAVEN_OPTS="-Xmx26G" mvn clean compile exec:java -Dexec.mainClass="dlchat.Main"

@raver119 raver119 self-assigned this Mar 13, 2017

@raver119 raver119 added the Bug label Mar 13, 2017

@raver119 raver119 removed their assignment Apr 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment