From BlenderWiki

Jump to: navigation, search
Note: This is an archived version of the Blender Developer Wiki. The current and active wiki is available on wiki.blender.org.

The Console Window

The Console Window is an operating system text window that displays messages about Blender operations, status, and internal errors. If Blender crashes on you, the Console Window may be able to indicate the cause.

Windows XP/Vista/7

The Blender Console Window on Windows XP and subsequent messages.

When Blender is started on a Windows operating system, the Console Window is first created as a separate window on the desktop. Assuming that the right start-up conditions are met, the main Blender window should also appear and the Console Window will then be toggled off. To display the console again, go to Help ยป Toggle System Console.

The screenshot on the right shows the Blender Console Window on Windows XP directly after starting Blender and then a short while later after opening a file along with the relevant messages.


Blender3D FreeTip.gif
Closing the Blender Console Window
The Blender Console Window must remain open while Blender is running. Closing the Console Window will also close Blender and you will lose any unsaved work. MS-DOS windows and the Blender Console Window can look very similar, so always make sure that you are closing the correct window.




Linux

Starting Blender from a Linux console window and subsequent messages.

The Blender Console Window in Linux will generally only be visible on the Desktop if Blender is started from a Linux Terminal/Console Window as Blender uses the Console Window it is started from to display Console output.

Depending on your Desktop Environment setup, a Blender icon may appear on your desktop or an entry for Blender added to your menu after you install Blender. When you start Blender using a Desktop icon or menu entry rather than a Terminal window, the Blender Console Window text will most likely be hidden on the Terminal that your XWindows server was started from.

This screenshot shows Blender started from a Linux Terminal/Console Window and the resulting console text being printed to it. This example shows that when Blender was started it was unable to access a library related to the Pulseaudio sound server. When Blender closed, it saved the recovery file to /tmp/quit.blend.

MacOS

Starting Blender from a Mac OS X console window and subsequent messages.

The process in MacOS is very similar to the one described for Linux. MacOS uses "files" with the .app extension called applications. These files are actually folders that appear as files in Finder. In order to run Blender you will have specify that path to the blender executable inside this folder, to get all output printed to the terminal. You can start a terminal from Applications -> Utilities. The path to the executable in the .app folder is ./blender.app/Contents/MacOS/blender.

If you have blender installed in the Applications folder, the following command could be used, adapted to the particular blender version: /Applications/blender-2.64/blender.app/Contents/MacOS/blender

Console Window Status and Error Messages

The Blender Console Window can display many different types of Status and Error Messages. Some messages simply inform the user what Blender is doing, but have no real impact on Blender's ability to function. Other messages can indicate serious errors that will most likely prevent Blender carrying out a particular task and may even make Blender non-responsive or shutdown completely. The Blender Console Window messages can also originate internally from within the Blender code or from external sources such as Python scripts.

Common messages

  • found bundled python: (FOLDER)
This message indicates that Blender was able to find the Python library for the Python interpreter embedded within Blender. If this folder is missing or unable to be found, it is likely that an error will occur, and this message will not appear.
  • malloc returns nil()
When Blender carries out operations that require extra memory (RAM), it calls a function called malloc (short for memory allocate) which tries to allocate a requested amount of memory for Blender. If this cannot be satisfied, malloc will return nil/null/0 to indicate that it failed to carry out the request. If this happens Blender will not be able to carry out the operation requested by the user. This will most likely result in Blender operating very slowly or shutting down. If you want to avoid running out of memory you can install more memory in your system, reduce the amount of detail in your Blender models, or shut down other programs and services which may be taking up memory that Blender could use.