Thread Issue Identified - Please Read for Large Chats


  • Bot Developer

    Hi!

    If you are getting something similar to the following in PhantomBot:

    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Timer-0”
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-1”
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “Thread-0”

    We recently discovered a thread release issue that was occurring. PhantomBot was allocating threads and not releasing all of them, resulting in the Java Virtual Machine, and PhantomBot, eventually unable to spawn any more threads and/or allocate any more memory (RAM). There is a patch for this in the latest Nightly Build that was just created.

    Please note that there are other enhancements in this Nightly Build as well. If you wish to try the Nightly Build if you are having issues, then you need to keep your current copy of PhantomBot. Install the Nightly into a new location and copy over your botlogin.txt and phantombot.db like you would during any other upgrade. Copy any custom scripts you might have as well. If you have issues with this build, please revert back to your previous version.


Log in to reply
 

Looks like your connection to PhantomBot Community Forums was lost, please wait while we try to reconnect.