wlstks7 / interactive-spaces

Automatically exported from code.google.com/p/interactive-spaces
Other
0 stars 0 forks source link

OutOfMemoryError: Direct buffer memory #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build a Live Activity Group with a bunch of Activities and a bunch of Routes
2. Deploy and relaunch this Live Activity Group
3. Keep doing that, Shutdown, Build, Deploy, Start Up 
4. Eventually you will have a memory error

What is the expected output? What do you see instead?
See error below (also attached as file). It is the output from the controller.

What version of the product are you using? On what operating system?
IS 1.1.1 and OSX 10.8 Mountain Lion

Please provide any additional information below.
! INFO  11:22:40,440 interactivespaces [pool-1-thread-733] - Starting up 
activity 653d4bfb-5051-4ed0-a100-11f8e6403d26
INFO  11:22:40,440 interactivespaces [pool-1-thread-732] - Starting up activity 
60b1b862-ded0-4267-bd0c-0903e59268d5
INFO  11:22:40,440 interactivespaces [pool-1-thread-733] - Attempting startup 
of activity 653d4bfb-5051-4ed0-a100-11f8e6403d26
INFO  11:22:40,440 interactivespaces [pool-1-thread-732] - Attempting startup 
of activity 60b1b862-ded0-4267-bd0c-0903e59268d5
INFO  11:22:40,440 interactivespaces [pool-1-thread-731] - Starting up activity 
4ecce6c9-24cb-456c-bc81-c2374bf2f8d5
INFO  11:22:40,440 interactivespaces [pool-1-thread-731] - Attempting startup 
of activity 4ecce6c9-24cb-456c-bc81-c2374bf2f8d5
INFO  11:22:40,440 interactivespaces [pool-1-thread-729] - Starting up activity 
374ddbb6-2b2a-4355-b517-265b3bcbcdb8
INFO  11:22:40,440 interactivespaces [pool-1-thread-729] - Attempting startup 
of activity 374ddbb6-2b2a-4355-b517-265b3bcbcdb8
INFO  11:22:40,440 interactivespaces [pool-1-thread-730] - Starting up activity 
c48f4227-fc8e-48f1-ba56-de2aeb365e15
INFO  11:22:40,441 interactivespaces [pool-1-thread-730] - Attempting startup 
of activity c48f4227-fc8e-48f1-ba56-de2aeb365e15
INFO  11:22:40,454 
interactivespaces.activity.653d4bfb-5051-4ed0-a100-11f8e6403d26 
[pool-1-thread-733] - identifier: ${identifier}
INFO  11:22:40,455 
interactivespaces.activity.60b1b862-ded0-4267-bd0c-0903e59268d5 
[pool-1-thread-732] - identifier: ${identifier}
INFO  11:22:40,456 
interactivespaces.activity.c48f4227-fc8e-48f1-ba56-de2aeb365e15 
[pool-1-thread-730] - identifier: ${identifier}
INFO  11:22:40,455 
interactivespaces.activity.4ecce6c9-24cb-456c-bc81-c2374bf2f8d5 
[pool-1-thread-731] - identifier: ${identifier}
INFO  11:22:40,455 
interactivespaces.activity.374ddbb6-2b2a-4355-b517-265b3bcbcdb8 
[pool-1-thread-729] - identifier: ${identifier}
INFO  11:22:40,539 
interactivespaces.activity.653d4bfb-5051-4ed0-a100-11f8e6403d26 
[pool-1-thread-733] - Starting component web.server
INFO  11:22:40,539 
interactivespaces.activity.60b1b862-ded0-4267-bd0c-0903e59268d5 
[pool-1-thread-732] - Starting component web.server
INFO  11:22:40,539 
interactivespaces.activity.374ddbb6-2b2a-4355-b517-265b3bcbcdb8 
[pool-1-thread-729] - Starting component web.server
INFO  11:22:40,544 
interactivespaces.activity.653d4bfb-5051-4ed0-a100-11f8e6403d26 
[pool-1-thread-733] - Starting component web.browser
INFO  11:22:40,545 
interactivespaces.activity.60b1b862-ded0-4267-bd0c-0903e59268d5 
[pool-1-thread-732] - Starting component web.browser
INFO  11:22:40,545 interactivespaces [pool-1-thread-733] - Native activity 
starting up /Applications/Google Chrome.app/Contents/MacOS/Google Chrome 
--enable-udd-profiles 
--user-data-dir=/Applications/interactivespaces/controller/controller/activities
/installed/653d4bfb-5051-4ed0-a100-11f8e6403d26/tmp/google-chrome --new-page 
--activate-on-launch --allow-file-access-from-files --no-first-run=1 
http://localhost:6014/youtubePlayer/index.html?id=explore&lab_gofullscreen=false
&e=d&debug=5&idle=500&transition=lib-fpo1.jpg&commander=false 
INFO  11:22:40,545 interactivespaces [pool-1-thread-732] - Native activity 
starting up /Applications/Google Chrome.app/Contents/MacOS/Google Chrome 
--enable-udd-profiles 
--user-data-dir=/Applications/interactivespaces/controller/controller/activities
/installed/60b1b862-ded0-4267-bd0c-0903e59268d5/tmp/google-chrome --new-page 
--activate-on-launch --allow-file-access-from-files --no-first-run=1 
http://localhost:6013/youtubePlayer/index.html?id=engage&lab_gofullscreen=false&
e=d&debug=5&idle=500&transition=lib-fpo1.jpg&commander=false 
INFO  11:22:40,575 
interactivespaces.activity.374ddbb6-2b2a-4355-b517-265b3bcbcdb8 
[pool-1-thread-729] - Starting component web.browser
INFO  11:22:40,585 
interactivespaces.activity.653d4bfb-5051-4ed0-a100-11f8e6403d26 
[pool-1-thread-733] - Starting component comm.ros
INFO  11:22:40,589 
interactivespaces.activity.60b1b862-ded0-4267-bd0c-0903e59268d5 
[pool-1-thread-732] - Starting component comm.ros
INFO  11:22:40,590 interactivespaces [pool-1-thread-729] - Native activity 
starting up /Applications/Google Chrome.app/Contents/MacOS/Google Chrome 
--enable-udd-profiles 
--user-data-dir=/Applications/interactivespaces/controller/controller/activities
/installed/374ddbb6-2b2a-4355-b517-265b3bcbcdb8/tmp/google-chrome --new-page 
--activate-on-launch --allow-file-access-from-files --no-first-run=1 
http://localhost:6011/youtubePlayer/index.html?id=decide&lab_gofullscreen=false&
e=d&debug=5&idle=500&transition=lib-fpo1.jpg&commander=false 
INFO  11:22:40,590 
interactivespaces.activity.4ecce6c9-24cb-456c-bc81-c2374bf2f8d5 
[pool-1-thread-731] - Starting component web.server
INFO  11:22:40,607 
interactivespaces.activity.374ddbb6-2b2a-4355-b517-265b3bcbcdb8 
[pool-1-thread-729] - Starting component comm.ros
INFO  11:22:40,615 
interactivespaces.activity.c48f4227-fc8e-48f1-ba56-de2aeb365e15 
[pool-1-thread-730] - Starting component web.server
INFO  11:22:40,629 
interactivespaces.activity.4ecce6c9-24cb-456c-bc81-c2374bf2f8d5 
[pool-1-thread-731] - Starting component web.browser
INFO  11:22:40,630 interactivespaces [pool-1-thread-731] - Native activity 
starting up /Applications/Google Chrome.app/Contents/MacOS/Google Chrome 
--enable-udd-profiles 
--user-data-dir=/Applications/interactivespaces/controller/controller/activities
/installed/4ecce6c9-24cb-456c-bc81-c2374bf2f8d5/tmp/google-chrome --new-page 
--activate-on-launch --allow-file-access-from-files --no-first-run=1 
http://localhost:6012/youtubePlayer/index.html?id=discover&lab_gofullscreen=fals
e&e=d&debug=5&idle=500&transition=lib-fpo1.jpg&commander=false 
INFO  11:22:40,650 
interactivespaces.activity.c48f4227-fc8e-48f1-ba56-de2aeb365e15 
[pool-1-thread-730] - Starting component web.browser
INFO  11:22:40,652 interactivespaces [pool-1-thread-730] - Native activity 
starting up /Applications/Google Chrome.app/Contents/MacOS/Google Chrome 
--enable-udd-profiles 
--user-data-dir=/Applications/interactivespaces/controller/controller/activities
/installed/c48f4227-fc8e-48f1-ba56-de2aeb365e15/tmp/google-chrome --new-page 
--activate-on-launch --allow-file-access-from-files --no-first-run=1 
http://localhost:6010/flowCommander/index.html?e=d&volumeGroup=cbwVolume&trans=s
creen&id=share&transition=lib-fpo1.jpg&lab_gofullscreen=false&idle=500&commander
=true&debug=5 
INFO  11:22:40,653 
interactivespaces.activity.60b1b862-ded0-4267-bd0c-0903e59268d5 
[pool-1-thread-732] - Start up ROS activity component with ROS node name 
/controller1/youtubePlayer_engage
INFO  11:22:40,674 
interactivespaces.activity.4ecce6c9-24cb-456c-bc81-c2374bf2f8d5 
[pool-1-thread-731] - Starting component comm.ros
INFO  11:22:40,684 
interactivespaces.activity.60b1b862-ded0-4267-bd0c-0903e59268d5 
[pool-1-thread-732] - Starting component comm.router.ros
INFO  11:22:40,680 
interactivespaces.activity.c48f4227-fc8e-48f1-ba56-de2aeb365e15 
[pool-1-thread-730] - Starting component comm.ros
ERROR 11:22:40,687 
interactivespaces.activity.60b1b862-ded0-4267-bd0c-0903e59268d5 
[pool-1-thread-732] - Adding subscribers
ERROR 11:22:40,687 
interactivespaces.activity.60b1b862-ded0-4267-bd0c-0903e59268d5 
[pool-1-thread-732] - Adding subscriber topic /youtubePlayer/data
INFO  11:22:41,139 
interactivespaces.activity.653d4bfb-5051-4ed0-a100-11f8e6403d26 
[pool-1-thread-733] - Start up ROS activity component with ROS node name 
/controller1/youtubePlayer_explore
INFO  11:22:41,139 
interactivespaces.activity.653d4bfb-5051-4ed0-a100-11f8e6403d26 
[pool-1-thread-733] - Starting component comm.router.ros
ERROR 11:22:41,139 
interactivespaces.activity.653d4bfb-5051-4ed0-a100-11f8e6403d26 
[pool-1-thread-733] - Adding subscribers
ERROR 11:22:41,139 
interactivespaces.activity.653d4bfb-5051-4ed0-a100-11f8e6403d26 
[pool-1-thread-733] - Adding subscriber topic /youtubePlayer/data
INFO  11:22:41,147 
interactivespaces.activity.374ddbb6-2b2a-4355-b517-265b3bcbcdb8 
[pool-1-thread-729] - Start up ROS activity component with ROS node name 
/controller1/youtubePlayer_decide
INFO  11:22:41,147 
interactivespaces.activity.374ddbb6-2b2a-4355-b517-265b3bcbcdb8 
[pool-1-thread-729] - Starting component comm.router.ros
ERROR 11:22:41,147 
interactivespaces.activity.374ddbb6-2b2a-4355-b517-265b3bcbcdb8 
[pool-1-thread-729] - Adding subscribers
ERROR 11:22:41,148 
interactivespaces.activity.374ddbb6-2b2a-4355-b517-265b3bcbcdb8 
[pool-1-thread-729] - Adding subscriber topic /youtubePlayer/data
Exception in thread "pool-1-thread-731" java.lang.OutOfMemoryError: Direct 
buffer memory
    at java.nio.Bits.reserveMemory(Bits.java:632)
    at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:97)
    at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$Preallocation.<init>(SocketSendBufferPool.java:158)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.<init>(SocketSendBufferPool.java:40)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:123)
    at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:44)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:34)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:26)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.<init>(AbstractNioWorkerPool.java:58)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:29)
    at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.<init>(NioServerSocketChannelFactory.java:131)
    at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.<init>(NioServerSocketChannelFactory.java:115)
    at org.ros.internal.transport.tcp.TcpRosServer.start(TcpRosServer.java:78)
    at org.ros.internal.node.server.SlaveServer.start(SlaveServer.java:85)
    at org.ros.internal.node.DefaultNode.<init>(DefaultNode.java:151)
    at org.ros.node.DefaultNodeFactory.newNode(DefaultNodeFactory.java:42)
    at org.ros.node.DefaultNodeFactory.newNode(DefaultNodeFactory.java:47)
    at org.ros.osgi.common.SimpleRosEnvironment.newNode(SimpleRosEnvironment.java:170)
    at interactivespaces.activity.component.ros.RosActivityComponent.startupComponent(RosActivityComponent.java:90)
    at interactivespaces.activity.component.ActivityComponentCollection.startupComponents(ActivityComponentCollection.java:101)
    at interactivespaces.activity.impl.BaseActivity.startup(BaseActivity.java:120)
    at interactivespaces.controller.client.node.ActiveControllerActivity.startup(ActiveControllerActivity.java:143)
    at interactivespaces.controller.client.node.BaseSpaceController.attemptActivityStartup(BaseSpaceController.java:770)
    at interactivespaces.controller.client.node.BaseSpaceController.startupActivity(BaseSpaceController.java:568)
    at interactivespaces.controller.client.node.ros.RosSpaceController.handleActivityRuntimeRequest(RosSpaceController.java:332)
    at interactivespaces.controller.client.node.ros.RosSpaceController.access$200(RosSpaceController.java:63)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:167)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:163)
    at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:77)
    at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:74)
    at org.ros.concurrent.ListenerCollection$1.run(ListenerCollection.java:108)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)
Exception in thread "pool-1-thread-733" java.lang.OutOfMemoryError: Direct 
buffer memory
653d4bfb-5051-4ed0-a100-11f8e6403d26 changed from ActivityState 
[state=STARTUP_ATTEMPT, description=null, exception=null] to ActivityState 
[state=STARTUP_ATTEMPT, description=null, exception=null]
    at java.nio.Bits.reserveMemory(Bits.java:632)
    at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:97)
    at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$Preallocation.<init>(SocketSendBufferPool.java:158)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.<init>(SocketSendBufferPool.java:40)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:123)
    at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:44)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:34)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:26)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.<init>(AbstractNioWorkerPool.java:58)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:29)
    at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:149)
    at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:114)
    at org.ros.internal.transport.tcp.TcpClientConnectionManager.<init>(TcpClientConnectionManager.java:56)
    at org.ros.internal.node.topic.DefaultSubscriber.<init>(DefaultSubscriber.java:91)
    at org.ros.internal.node.topic.DefaultSubscriber.newDefault(DefaultSubscriber.java:77)
    at org.ros.internal.node.topic.SubscriberFactory.newSubscriber(SubscriberFactory.java:60)
    at org.ros.internal.node.topic.TopicManager.newOrExistingSubscriber(TopicManager.java:124)
    at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:257)
    at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:264)
    at interactivespaces.util.ros.RosSubscribers.addSubscribers(RosSubscribers.java:78)
    at interactivespaces.activity.component.ros.RosMessageRouterActivityComponent.startupComponent(RosMessageRouterActivityComponent.java:202)
    at interactivespaces.activity.component.ActivityComponentCollection.startupComponents(ActivityComponentCollection.java:101)
    at interactivespaces.activity.impl.BaseActivity.startup(BaseActivity.java:120)
    at interactivespaces.controller.client.node.ActiveControllerActivity.startup(ActiveControllerActivity.java:143)60b1b862-ded0-4267-bd0c-0903e59268d5
 changed from   at interactivespaces.controller.client.node.BaseSpaceController.attemptActivityStartup(BaseSpaceController.java:770)
ActivityState [state=STARTUP_ATTEMPT, description=null, exception=null] to  at 
interactivespaces.controller.client.node.BaseSpaceController.startupActivity(Bas
eSpaceController.java:568)
ActivityState [state=STARTUP_ATTEMPT, description=null, exception=null] at 
interactivespaces.controller.client.node.ros.RosSpaceController.handleActivityRu
ntimeRequest(RosSpaceController.java:332)

    at interactivespaces.controller.client.node.ros.RosSpaceController.access$200(RosSpaceController.java:63)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:167)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:163)
4ecce6c9-24cb-456c-bc81-c2374bf2f8d5    at 
org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessage
Queue.java:77) changed from 
ActivityState [state=STARTUP_ATTEMPT, description=null, exception=null] at 
org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMes to 
sageQueue.java:74)ActivityState [state=STARTUP_ATTEMPT, description=null, 
exception=null]
374ddbb6-2b2a-4355-b517-265b3bcbcdb8 changed from ActivityState 
[state=STARTUP_ATTEMPT, description=null, exception=null] to ActivityState 
[state=STARTUP_ATTEMPT, description=null, exception=null]

    at org.ros.concurrent.ListenerCollection$1.run(ListenerCollection.java:108)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)
Exception in thread "pool-1-thread-729" java.lang.OutOfMemoryError: Direct 
buffer memory
    at java.nio.Bits.reserveMemory(Bits.java:632)
    at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:97)
    at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$Preallocation.<init>(SocketSendBufferPool.java:158)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.<init>(SocketSendBufferPool.java:40)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:123)
    at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:44)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:34)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:26)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.<init>(AbstractNioWorkerPool.java:58)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:29)
    at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:149)
    at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:114)
    at org.ros.internal.transport.tcp.TcpClientConnectionManager.<init>(TcpClientConnectionManager.java:56)
    at org.ros.internal.node.topic.DefaultSubscriber.<init>(DefaultSubscriber.java:91)
    at org.ros.internal.node.topic.DefaultSubscriber.newDefault(DefaultSubscriber.java:77)
    at org.ros.internal.node.topic.SubscriberFactory.newSubscriber(SubscriberFactory.java:60)
    at org.ros.internal.node.topic.TopicManager.newOrExistingSubscriber(TopicManager.java:124)
    at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:257)
    at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:264)
    at interactivespaces.util.ros.RosSubscribers.addSubscribers(RosSubscribers.java:78)
    at interactivespaces.activity.component.ros.RosMessageRouterActivityComponent.startupComponent(RosMessageRouterActivityComponent.java:202)
    at interactivespaces.activity.component.ActivityComponentCollection.startupComponents(ActivityComponentCollection.java:101)
    at interactivespaces.activity.impl.BaseActivity.startup(BaseActivity.java:120)
    at interactivespaces.controller.client.node.ActiveControllerActivity.startup(ActiveControllerActivity.java:143)
    at interactivespaces.controller.client.node.BaseSpaceController.attemptActivityStartup(BaseSpaceController.java:770)
    at interactivespaces.controller.client.node.BaseSpaceController.startupActivity(BaseSpaceController.java:568)
    at interactivespaces.controller.client.node.ros.RosSpaceController.handleActivityRuntimeRequest(RosSpaceController.java:332)
    at interactivespaces.controller.client.node.ros.RosSpaceController.access$200(RosSpaceController.java:63)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:167)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:163)
    at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:77)
    at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:74)
    at org.ros.concurrent.ListenerCollection$1.run(ListenerCollection.java:108)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)
Exception in thread "pool-1-thread-732" java.lang.OutOfMemoryError: Direct 
buffer memory
    at java.nio.Bits.reserveMemory(Bits.java:632)
    at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:97)
    at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$Preallocation.<init>(SocketSendBufferPool.java:158)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.<init>(SocketSendBufferPool.java:40)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:123)
    at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:44)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:34)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:26)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.<init>(AbstractNioWorkerPool.java:58)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:29)
    at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:149)
    at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:114)
    at org.ros.internal.transport.tcp.TcpClientConnectionManager.<init>(TcpClientConnectionManager.java:56)
    at org.ros.internal.node.topic.DefaultSubscriber.<init>(DefaultSubscriber.java:91)
    at org.ros.internal.node.topic.DefaultSubscriber.newDefault(DefaultSubscriber.java:77)
    at org.ros.internal.node.topic.SubscriberFactory.newSubscriber(SubscriberFactory.java:60)
    at org.ros.internal.node.topic.TopicManager.newOrExistingSubscriber(TopicManager.java:124)
    at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:257)
    at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:264)
    at interactivespaces.util.ros.RosSubscribers.addSubscribers(RosSubscribers.java:78)
    at interactivespaces.activity.component.ros.RosMessageRouterActivityComponent.startupComponent(RosMessageRouterActivityComponent.java:202)
    at interactivespaces.activity.component.ActivityComponentCollection.startupComponents(ActivityComponentCollection.java:101)
    at interactivespaces.activity.impl.BaseActivity.startup(BaseActivity.java:120)
    at interactivespaces.controller.client.node.ActiveControllerActivity.startup(ActiveControllerActivity.java:143)
    at interactivespaces.controller.client.node.BaseSpaceController.attemptActivityStartup(BaseSpaceController.java:770)
    at interactivespaces.controller.client.node.BaseSpaceController.startupActivity(BaseSpaceController.java:568)
    at interactivespaces.controller.client.node.ros.RosSpaceController.handleActivityRuntimeRequest(RosSpaceController.java:332)
    at interactivespaces.controller.client.node.ros.RosSpaceController.access$200(RosSpaceController.java:63)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:167)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:163)
    at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:77)
    at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:74)
    at org.ros.concurrent.ListenerCollection$1.run(ListenerCollection.java:108)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)
Exception in thread "pool-1-thread-730" java.lang.OutOfMemoryError: Direct 
buffer memory
c48f4227-fc8e-48f1-ba56-de2aeb365e15 changed from ActivityState 
[state=STARTUP_ATTEMPT, description=null, exception=null] to ActivityState 
[state=STARTUP_ATTEMPT, description=null, exception=null]
    at java.nio.Bits.reserveMemory(Bits.java:632)
    at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:97)
    at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$Preallocation.<init>(SocketSendBufferPool.java:158)
    at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.<init>(SocketSendBufferPool.java:40)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:123)
    at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:44)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:34)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:26)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.<init>(AbstractNioWorkerPool.java:58)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:29)
    at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.<init>(NioServerSocketChannelFactory.java:131)
    at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.<init>(NioServerSocketChannelFactory.java:115)
    at org.ros.internal.transport.tcp.TcpRosServer.start(TcpRosServer.java:78)
    at org.ros.internal.node.server.SlaveServer.start(SlaveServer.java:85)
    at org.ros.internal.node.DefaultNode.<init>(DefaultNode.java:151)
    at org.ros.node.DefaultNodeFactory.newNode(DefaultNodeFactory.java:42)
    at org.ros.node.DefaultNodeFactory.newNode(DefaultNodeFactory.java:47)
    at org.ros.osgi.common.SimpleRosEnvironment.newNode(SimpleRosEnvironment.java:170)
    at interactivespaces.activity.component.ros.RosActivityComponent.startupComponent(RosActivityComponent.java:90)
    at interactivespaces.activity.component.ActivityComponentCollection.startupComponents(ActivityComponentCollection.java:101)
    at interactivespaces.activity.impl.BaseActivity.startup(BaseActivity.java:120)
    at interactivespaces.controller.client.node.ActiveControllerActivity.startup(ActiveControllerActivity.java:143)
    at interactivespaces.controller.client.node.BaseSpaceController.attemptActivityStartup(BaseSpaceController.java:770)
    at interactivespaces.controller.client.node.BaseSpaceController.startupActivity(BaseSpaceController.java:568)
    at interactivespaces.controller.client.node.ros.RosSpaceController.handleActivityRuntimeRequest(RosSpaceController.java:332)
    at interactivespaces.controller.client.node.ros.RosSpaceController.access$200(RosSpaceController.java:63)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:167)
    at interactivespaces.controller.client.node.ros.RosSpaceController$3.onNewMessage(RosSpaceController.java:163)
    at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:77)
    at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:74)
    at org.ros.concurrent.ListenerCollection$1.run(ListenerCollection.java:108)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)

Original issue reported on code.google.com by eric@adaptedstudio.com on 17 Aug 2012 at 6:34

Attachments:

GoogleCodeExporter commented 9 years ago
I believe I have found this, a new version coming soon.

Original comment by khug...@google.com on 23 Aug 2012 at 12:59

GoogleCodeExporter commented 9 years ago
An attempt at this is in the new version. There were issues with netty and  
some errors in rosjava about ROS messages which threw exceptions.

Original comment by khug...@google.com on 27 Aug 2012 at 1:54

GoogleCodeExporter commented 9 years ago
No one has mentioned this again, so I am labelling it fixed.

Original comment by khug...@google.com on 19 Dec 2012 at 5:34