Trouble with Vitis Model Composer 2023.2! MATLAB R2021b crashes when I want to open the Model Composer Hub component.

63 views (last 30 days)
Hi everyone, I hope to find you all in a good mood.
I'm a fresh Ubuntu and AMD Vitis user! My OS is Ubuntu 22.04.3 LTS, and my system graphic card is Mesa Intel® UHD Graphics 630 (CFL GT2). Recently I installed AMD Vitis 2023.2 and Matlab R2021b, and I've also checked about the version compatibility, It seems that they are compatible.
I checked this GitHub repository: https://github.com/Xilinx/Vitis_Model_Composer/tree/2023.2/Tutorials/HDL_Library. and I just wanted to get started with the model composer, once it was set up, it got stuck in the HDL code-generating step. So I was forced to close the Matlab window. after that every time I tried to open the Model Composer Hub settings window I encountered this error: Dot indexing is not supported for variables of this type. and in the Matlab command window, the thread of errors comes up like this:
MathWorks::System::IUserException in WebControllerFactory::create(): [Error using matlab.internal.cef.webwindow (line 396)
MATLABWindow application failed to launch. Unable to launch the MATLABWindow application. The exit code was: 127
Error in matlab.internal.webwindow/createImplementation (line 313)
implObj = matlab.internal.cef.webwindow(varargin{:});
Error in matlab.internal.webwindow (line 161)
obj.impl = obj.createImplementation(varargin{:});
Error in matlab.ui.internal.controller.platformhost.CEFFigurePlatformHost/createView (line 65)
this.CEF = matlab.internal.webwindow(peerModelInfo.URL, peerModelInfo.DebugPort, position);
Error in matlab.ui.internal.controller.FigureController/createView (line 451)
this.PlatformHost.createView(this.PeerModelInfo, pos, title, visible, resizable, windowState, windowStyle);
Error in matlab.ui.internal.componentframework.WebComponentController/add (line 78)
obj.createView( parentController, parentView, pvPairs );
Error in matlab.ui.internal.controller.WebCanvasContainerController/add (line 43)
add@matlab.ui.internal.componentframework.WebContainerController( this, webComponent, parentController );
Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 94)
component.createController( parentController, [] );
Error in vmcHub/createProgressBar
Error in vmcHub/createComponents
Error in vmcHub
Error in vmcHubCallback]
as you can see in the attached picture:
According to my research in different forums, I tried to launch MATLABWindow from this directory ~/MATLAB/R2021b/bin/glnxa64 this error came up: [0212/032751.828388:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
as you can see in this picture:
Now I just wanna ask if is there anyone who can help me.
Thanks for your attention.

Accepted Answer

Alejandro
Alejandro on 13 Nov 2024
Moved: Stefanie Schwarz on 31 Mar 2025
Hi Zeinab,
The problem is compatibility from libraries, becuase Model_Composer adds the library path of Vivado
/tools/Xilinx/Vivado/2023.2/lib/lnx64.o
to the LD_LIBRARY_PATH dinamically.
Seems to be a problem of MATLABWindow application with the distribution of Vivado/Model_Composer 2023.2.
The fact is that Vivado 2023.2 comes from October 2023 and MATLAB R2022b Update 10 from September 2024. So the problem is from MATLABWindow incompatible with Vivado 2023.2
If you change the LD_LIBRARY_PATH manually from the MATLAB command Window removing the path from Vivado libraris, it works for a shoot. By it restores the path dinamically again.
I think is a library compatibility problem between MATLABWindow (2024) and Vivado 2023.2 (2023) or even 2023.2.2. It shoul be solved by MATHWORKS.
Alex
  2 Comments
Kiran Kintali
Kiran Kintali on 27 Nov 2024
Edited: Stefanie Schwarz on 11 Apr 2025
Hi Alejandro,
just wanted to clarify; the compatibility note of System Generator and Vitis Model Composer with MATLAB is determined by Xilinx/AMD.
AMD teams builds and tests their products on top of MathWorks released products, and are therefore responsible for the version compatibility. AMD VMC/XSG releases are usually couple of releases behind as they catch up to MathWorks A//B software yearly releases.
HDL Coder uses native blocks in Simulink and the generated code can directly integrate with latest Vivado and deployed on all AMD boards. Perhaps this could be an alternative for staying upto speed with latest releases of MathWorks.
Sorry for not being much of help here.
Thanks

Sign in to comment.

More Answers (3)

Kiran Kintali
Kiran Kintali on 12 Feb 2024
If you tried to run MATLABWindow outside of MATLAB and got an error message this is a MATLAB tech support issue.
However if you can successfully run MATLABWindow in MATLAB but still get errors in Model Composer, then it's a Model Composer issue that needs to be taken to AMD/Xilinx tech support team.
  3 Comments
Zeinab
Zeinab on 13 Feb 2024
Edited: Zeinab on 13 Feb 2024
"If you tried to run MATLABWindow outside of MATLAB and got an error message this is a MATLAB tech support issue. "
And also about this part of your answer, I should say that yes, I got a sandbox error even outside of MATLAB when I try to run MATLABWindow.
Alejandro
Alejandro on 13 Nov 2024
A popo, this table and comments should be more specific and modified:
Because it is FALSE, by now, that MATLAB R2022b (any Update) is compatible with Vitis Model Composer 2023.X.Y (Any version or update from Vivado 2023). At least under Linux.

Sign in to comment.


Hassaan
Hassaan on 12 Feb 2024
Edited: Stefanie Schwarz on 31 Mar 2025
@Zeinab Please see this compatability link:
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.
  3 Comments
Hassaan
Hassaan on 12 Feb 2024
Edited: Hassaan on 12 Feb 2024
@Zeinab As per this link Table Vitis 2023.2 Model composer is not officaly supported with MATLAB r2021 try using 2023.1 or below:
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.
Zeinab
Zeinab on 12 Feb 2024
I checked this link, https://www.xilinx.com/products/design-tools/vitis/vitis-model-composer.html and I faced with the sentence below:
  • MATLAB® tool version support​ : R2021a, R2021b Update 6, R2022a Update 6, R2022b
So it seems that the versions are compatible.
I think my issue is something beyond such a thing, in the Matlab Home tab I tried to check for updates, and again these errors came up!

Sign in to comment.


Alejandro
Alejandro on 4 Oct 2024
Hello,
Did you find the solution for this crash problem?
I have exactly the same problem in my working environment.
Best Regards,
Alex
  3 Comments
Alejandro
Alejandro on 17 Oct 2024
Edited: Alejandro on 17 Oct 2024
Hi Zeinab,
Thanks a lot for your answer.
I can't migrate to Windows, all my development environmet is under Linux and all scripts need to be run under Linux (Ubuntu).
I will feed back when I get a solution from official support.
Best Regards
Alejandro
Alejandro on 13 Nov 2024
Problem of MATLAB libraries compatibility.
MATLAB distribution is newer as Vitis Model Composer, no backward compatibility.
MATHWORKS is responsible.

Sign in to comment.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!