MATLAB Answers

Invalid character code sequence detected. error using parfor on MATLAB2020b

조회 수: 130(최근 30일)
btskzn
btskzn 13 Nov 2020
답변: Priysha LNU 25 Nov 2020
I am on MacOS Big Sur matlab version 2020b. When I call parfor from a script it gives error message ": Invalid character code sequence detected.". When I looked a bit more I got the below message:
The list of cluster profiles failed to load and so they are unusable. To recover, check the reason and restart MATLAB.
Reason: Invalid character code sequence detected. Any idea how to solve this?
  댓글 수: 3
btskzn
btskzn 17 Nov 2020
When I click on create and manage clusters I have this error message:
"Invalid character code sequence detected.
The list of cluster profiles failed to load and so they are unusable. To recover, check the reason and restart MATLAB.
Reason: Invalid character code sequence detected.
com.mathworks.mvm.exec.MvmRuntimeException: Dot indexing is not supported for variables of this type.
Error in ==> /Applications/MATLAB_R2020b.app/toolbox/parallel/cluster/+parallel/+internal/+ui/AbstractValidationManager.m>AbstractValidationManager.AbstractValidationManager at 21
Error in ==> /Applications/MATLAB_R2020b.app/toolbox/parallel/cluster/+parallel/+internal/+ui/ValidationManager.m>ValidationManager.ValidationManager at 48
Error in ==> /Applications/MATLAB_R2020b.app/toolbox/parallel/cluster/+parallel/+internal/+ui/ValidationManager.m>ValidationManager.getOrCreateInstance at 23 "

댓글을 달려면 로그인하십시오.

채택된 답변

Priysha LNU
Priysha LNU 25 Nov 2020
Hi,
The first reason this issue can occur is if you are trying to run Parallel Computing Toolbox on a non-English local machine.
"Invalid character code sequence detected." usually means non-English characters are in a path or file name. Some potential paths that can cause this issue:
>> tempdir
>> prefdir
>> matlabroot
>> !hostname
Check those paths and make sure they do not contain non-English characters. If they do, change it and then you should be able to use the Cluster Profile Manager.
If you are still experiencing the issue after checking the paths, run the following command within the MATLAB command prompt:
>>parallel.Settings
If it returns the following message, this is a known issue with a fix still in the works.
Invalid character code sequence detected
The current workaround to resolve this is to downgrade to MATLAB R2020a.
Hope this helps!
DISCLAIMER: These are my own views and in no way depict those of MathWorks.

추가 답변(0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by