Clear Filters
Clear Filters

When using reinforcement learning toolbox and CarSim for joint simulation, matlab always crashes

2 views (last 30 days)
When using reinforcement learning toolbox and CarSim for joint simulation, matlab always crashes, and then forcibly exits after sending an error report. What's the matter, please? How to solve it?

Answers (1)

Aditya
Aditya on 16 Oct 2023
Hi
I understand that your MATLAB is crashing when you try and use Reinforcement Learning Toolbox and CarSim together. Following might be the reason for the same.
1. Memory limitations: Insufficient memory can cause MATLAB to crash. Ensure that your system has enough available memory to handle the simulation. You can try closing unnecessary applications or reducing the memory usage of your code.
2. Compatibility issues: Check if the versions of MATLAB, Reinforcement Learning Toolbox, and CarSim are compatible with each other. Incompatibility between different versions can lead to stability issues. Consider updating to the latest versions or using compatible versions of the software.
3. MATLAB preferences: Resetting MATLAB preferences to their default values can sometimes resolve crashing issues. You can do this by running the following command in the MATLAB command window:
`com.mathworks.services.Prefs.setBooleanPref('EditorGraphicalDebugging', false);`
Hope this answer helps.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!