MATLAB: Does MATLAB 7.6 (R2008a) use 100% of the CPU even after exiting when Perforce SCM Source Control is used

cpufreezehangMATLABperforcesimulinkverctrl

If I choose Perforce SCM in the MATLAB source control preferences, restart MATLAB and run Simulink, I notice the CPU usage of the MATLAB.exe process reaches 100% (50% on a dual core CPU). The MATLAB.exe process and CPU usage still persists at 100% even after I exit MATLAB.

Best Answer

This issue is due to an incompatibility with the Perforce software due to conflicts between the qt.dll library used by Perforce and the version used by Simulink. Simulink uses one version of Qt in Simulink, Perforce uses a different one, and trying to run both those different versions of Qt in the same process gives problems.
To recover from the problem, you must exit MATLAB using the Windows Task Manager tool. Then after a restart of MATLAB unselect Perforce SCM in the MATLAB source control preferences.
The only workaround is that Simulink users who also use Perforce should not use our Source Control interface to link the two.
Related Question