MATLAB: Does the AMD64 beta of MATLAB 7.0 crash when creating a surface object

64bitamdkleinlanglibmwbridgelinuxMATLABopteronsurfsystemunsetenvvariable

The MATLAB 7.0 beta for AMD64 crashes when I create a surface object. For example, when I run the Klein Bottle demo (XPKLEIN), I get the following error:
------------------------------------------------------------------------
Assertion detected at Mon Jul 26 10:00:07 2004
------------------------------------------------------------------------
Assertion failed: fi->fstruct != NULL, at line 1078 of file "font_x.cpp".
Configuration:
MATLAB Version: 7.0.0.1277 (R14)
Operating System: Linux 2.4.21-15.0.3.ELsmp #1 SMP Tue Jun 29 17:46:55 EDT 2004 x86_64
Window System: The XFree86 Project, Inc (40300000), display :0.0
Current Visual: 0x21 (class 4, depth 24)
Virtual Machine: Java 1.4.2 with Blackdown Java-Linux Team Java HotSpot(TM) 64-Bit Server VM
(mixed mode)
Default Charset: UTF-8
Stack Trace:
[0] libmwbridge.so:ThrowAssertion()(0x6f69747265737341, 0x64656c696166206e, 0x696c207461207325, 0x666f20642520656e) + 164 bytes
[1] libmwbridge.so:MATLABAssertFcn(char const*, char const*, int, char const*)(0x2a98e919f8 ": fi->fstruct != NULL,", 0x008f0b20, 7, 0x2a9d6fd720) + 161 bytes
[2] libut.so:ut_assert(48, 1, 0x7fbffd6f90, 0x2a98e28728) + 55 bytes
[3] libmwuix.so:UIX_GetFontStruct(mwXFont*, uixDisplayInformation*)(1, 0, 0, 0) + 61 bytes
[4] libmwuix.so:UIX_DrawStringIntoBitmap(0, 0x2a9562d810, 6, 0) + 4168 bytes
<SNIP>

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This has been verified as a bug in MATLAB 7.0 (R14) related to the system's locale, as specified by the LANG environment variable.
Currently, to work around this issue, unset LANG by running the following command before launching MATLAB:
unsetenv LANG