Simulink WebView export from R2014 not displayable in Chrome?

8 ビュー (過去 30 日間)
Robert
Robert 2014 年 12 月 2 日
回答済み: Dheeraj 2024 年 7 月 25 日
WebViews exported from R2013B work fine in Chrome for me. WebViews exported from R2014 display a blank screen. Using the debugging console, I see a javascript error:
Uncaught Error: declare: base class is not a callable constructor. webview.js:558
This is not the well-known local file reference problem (obviously, or the webview.js file would not have been loaded). The same exported WebView displays properly in Firefox and IE11. I need this to work in Chrome, as I have a project where the WebView is supposed to be displayed from inside an application using Chromium Embedded Framework. (I'm seeing the same behavior in the normal Desktop Chrome app and in CEF3). Any ideas what is wrong?
Thanks!

回答 (1 件)

Dheeraj
Dheeraj 2024 年 7 月 25 日
Hi Robert,
This is a known bug in Simulink Report Generator that causes Simulink Web Views generated in versions R2014b through R2016a to display a blank page when viewed in Google Chrome versions 68 and later.
The error appears in the Google Chrome console. This bug was resolved in MATLAB R2016b. If you continue using the same MATLAB version, you can follow the workaround mentioned in the MATLAB bug report linked below.

カテゴリ

Help Center および File ExchangeCreate Model Web Views についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by