LTPDA Toolbox™ | contents | ![]() ![]() |
A collection of trouble-shooting steps.
When loading or saving large XML files, MATLAB sometimes reports problems due to insufficient heap memory for the Java Virtual Machine.
Since MATLAB version 2010a can you increase the the heap space for the Java VM in the preferences.
You can change the java heap size by using the General Preferences dialog.
Since MATLAB version R2012b can you access this dialog on the Home tab, in the Environment section, by clicking Preferences.
Select MATLAB > General > Java Heap Memory.
In MATLAB versions earlier than R2012b can you access the dialog with: File > Preferences > General > Java Heap Memory
For older MATLAB versions (2009b) please use the following.
You can increase the heap space for the Java VM in MATLAB 6.0 and higher by creating a java.opts
file in the $MATLAB/bin/$ARCH (or in the current directory when you start MATLAB) containing the
following command:
-Xmx$MEMSIZE
Recommended:
-Xmx536870912
which is 512Mb of heap memory.
An additional workaround reported in case the above doesn't work: It sometimes happens with MATLAB R2007b on WinXP that after you create the java.opts file, MATLAB won't start (it crashes after the splash-screen).
The workaround is to set an environment variable MATLAB_RESERVE_LO=0.
This can be set by performing the following steps:
Problems have been seen on Windows machines if the LTPDA toolbox directory name contains '.'. In this case, just rename the base LTPDA directory before adding it to the MATLAB path.
User with the operating system "Windows XP" will get trouble if you want to execute MEX files. This happens if you are useing for example the methods 'detrend', 'smoother', 'lpsd', ...
You will get the following error:
User with a Ubuntu 12.04 LTS OS may have problems to open external links because Firefox needs a much newer libstdc++ library as MATLAB delivers. You can check if this workaround apply to you by typing "!firefox &" in the command window. The should you get the following error massage:
>> !firefox & XPCOMGlueLoad error for file /usr/lib/firefox/libxpcom.so: libxul.so: cannot open shared object file: No such file or directory Couldn't load XPCOM. firefox: Signal 127
cd $MATLABROOT/sys/os/$ARCH sudo mkdir old sudo mv libstdc++* old/
On some MacOS systems, the call to MATLAB's doc or web (that happen after clicking on the 'Parameters description' link in the help of methods or in call to the methods called toHtml) may lead to MATLAB being stuck. This issue is associated to the "Enable Access for Assistive Devices" setting. Details and proposed solutions are described here:
Mathworks supportJava 7 throws an error to get the local host information. The error occures with the following command:
127.0.0.1 your-machine-name
![]() |
Additional 3rd-party software | Introducing LTPDA Objects | ![]() |
©LTP Team