Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView2 - Aborted()... isue #19089

Open
datovy-edam opened this issue Dec 15, 2024 · 0 comments
Open

WebView2 - Aborted()... isue #19089

datovy-edam opened this issue Dec 15, 2024 · 0 comments

Comments

@datovy-edam
Copy link

What do you need help with?

UNO Platform is great... keep working on it.

I have an issue while sending commands within WebView2 that generate an exception:

ex = RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
    at abort (http://localhost:5000/package_15aa0a6170c57a44ee682886b8f3ac37aa69718f/dotnet.native.js:8:9137)
    at _abort (http://localhost:5000/package_15aa0a6170c57a44ee682886b8f3ac37aa6971...

The previous is returned while sending a command, for example:

   public async Task SetLanguageAsync(string languageId)
   {
      if (MonacoEditorWebView.CoreWebView2 != null)
      {
         CurrentCodeLanguage = languageId;
         string command = $"editor.setModel(monaco.editor.createModel(editor.getValue(), '{languageId}'));";

         try
         {
            await this.MonacoEditorWebView.ExecuteScriptAsync(command);

            // Reset the change content event
            await this.RegisterContentChangingEvent();
         }
         catch (Exception ex)
         {
            ResultLog.Trace(ex, "MonacoEditor.LoadContent");
         }
      }
   }

I am using Uno 5.3, .net8, Windows and WebAssembly platforms. Interestingly, all works as expected under Windows but it generates the above exception in WebAssembly. Some exploration/troubleshooting along with other previously reported issues point at the possibility of some assemblies not supported under .net8, but so far have not found such culprit.

This started to appear under WebAssembly when I updated the libraries as suggested for 5.3 to allow the use of the DataGrid (CommunityToolkit).

If any may provide some of their experiences with this kind of issue will be very useful.

Hope to hear form any of you...

I am working on the following GITHUB project: [https://github.com/datovy-edam/Edam.Data.Catalog]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant