Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

java.lang.OutOfMemoryError: unable to create new native thread

3 views
Skip to first unread message

John Thelen

unread,
Jun 11, 2004, 3:46:57 PM6/11/04
to
Hello,

I am collecting data from wireless sensors, but when they are out of
range I get these errors, and my script stops running.

Asking again for missing data: Receiver 3's packet #3
RSSI data msg received: 3 at 255 from 3
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at
com.mathworks.timer.TimerClock.retriggerTimer(TimerClock.java:434)
at com.mathworks.timer.TimerClock.timerEvent(TimerClock.java:368)
at com.mathworks.timer.TimerClock.run(TimerClock.java:518)
at java.lang.Thread.run(Unknown Source)
Got Receiver 3's overview.
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at
com.mathworks.timer.TimerClock.retriggerTimer(TimerClock.java:434)
at com.mathworks.timer.TimerClock.timerEvent(TimerClock.java:361)
at com.mathworks.timer.TimerClock.run(TimerClock.java:518)
at java.lang.Thread.run(Unknown Source)
??? Error while evaluating TimerFcn for timer 'RSSI Timer'

Error using ==> timer/start
Java exception occurred:
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at
com.mathworks.timer.TimerClock.retriggerTimer(TimerClock.java:434)
at com.mathworks.timer.TimerClock.timerEvent(TimerClock.java:368)
at com.mathworks.timer.TimerClock.start(TimerClock.java:413)
at timer objects.start(TimerTask.java:354)
at com.mathworks.jmi.NativeMatlab.nativeThreadMessage(Native Method)
at
com.mathworks.jmi.MatlabLooper.sendThreadMessage(MatlabLooper.java:437
)
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1764)
at
com.mathworks.timer.MWCallback$callbackEvent.run(MWCallback.java:383)
at
com.mathworks.jmi.MatlabLooper.dispatchMTRequests(MatlabLooper.java:40
7)
.

Tried to get Receiver 3's rssi data starting at 5 ****
>>

Thanks for any help, John

Brian Mearns

unread,
Jun 14, 2004, 8:50:38 AM6/14/04
to
http://www.mathworks.com/support/solutions/data/1-16F0N.html?solution=1-16F0N

Please make sure to search the news groups before posting.
Thank you.
-Brian


Stuart McGarrity

unread,
Jun 14, 2004, 12:06:33 PM6/14/04
to
Send this to support. A Java "out of memory" error like this is a bug and
not coverd in that Technical Solution. You will need to attached your code
that caused it also (narrowing it down as much as possible).

Stuart
"Brian Mearns" <bme...@mathworks.com> wrote in message
news:cak6uu$26c$1...@fred.mathworks.com...

0 new messages