Process [ApplicationName] killed due to message queue overflow

by BlackBerry Development Advisor on ‎02-16-2010 10:57 AM (3,280 Views)

Summary


This article applies to the following:

  • BlackBerry® Java® Development Environment (BlackBerry JDE)


Problem


You receive the following error message:

Process [ApplicationName] killed due to message queue overflow

or

Uncaught Exception: [ApplicationName] is not responding; process terminated

Cause


An application is blocking the main event thread.


The main event thread processes system messages. Blocking this thread prevents system messages from being processed and can lead to a message queue overflow.


Because there is a finite amount of storage space for messages, the issue is caused when these messages are not being processed. If an application stops processing messages for a long period of time, the system assumes that the application has stopped responding and is no longer functioning as expected. This is the reason why the process was terminated.


Resolution


Move long processes or processes that block to a separate background thread.