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

Unhandled Exception: Exception: HTML editor is still loading, please wait before evaluating this JS: $('#summernote-2').summernote('code', '');![BUG] #527

Open
krishnapada opened this issue Jul 22, 2024 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@krishnapada
Copy link

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Unknown feature SUPPRESS_ERROR_PAGE, null, java.lang.RuntimeException: Unknown feature SUPPRESS_ERROR_PAGE
E/flutter ( 4843): at androidx.webkit.internal.WebViewFeatureInternal.isSupported(WebViewFeatureInternal.java:649)
E/flutter ( 4843): at androidx.webkit.internal.WebViewFeatureInternal.isSupported(WebViewFeatureInternal.java:618)
E/flutter ( 4843): at androidx.webkit.WebViewFeature.isFeatureSupported(WebViewFeature.java:611)
E/flutter ( 4843): at com.pichillilorenzo.flutter_inappwebview_android.webview.in_app_webview.InAppWebView.prepare(InAppWebView.java:436)
E/flutter ( 4843): at com.pichillilorenzo.flutter_inappwebview_android.webview.in_app_webview.FlutterWebView.(FlutterWebView.java:82)
E/flutter ( 4843): at com.pichillilorenzo.flutter_inappwebview_android.webview.FlutterWebViewFactory.create(FlutterWebViewFactory.java:67)
E/flutter ( 4843): at io.flutter.plugin.platform.PlatformViewsController.createPlatformView(PlatformViewsController.java:523)
E/flutter ( 4843): at io.flutter.plugin.platform.PlatformViewsController$1.createForPlatformViewLayer(PlatformViewsController.java:168)
E/flutter ( 4843): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:105)
E/flutter ( 4843): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:55)
E/flutter ( 4843): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/flutter ( 4843): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/flutter ( 4843): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/flutter ( 4843): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/flutter ( 4843): at android.os.Handler.handleCallback(Handler.java:942)
E/flutter ( 4843): at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter ( 4843): at android.os.Looper.loopOnce(Looper.java:201)
E/flutter ( 4843): at android.os.Looper.loop(Looper.java:288)
E/flutter ( 4843): at android.app.ActivityThread.main(ActivityThread.java:7872)
E/flutter ( 4843): at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 4843): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/flutter ( 4843): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/flutter ( 4843): )
E/flutter ( 4843): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter ( 4843): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter ( 4843):

@krishnapada krishnapada added the bug Something isn't working label Jul 22, 2024
@Siddharth2212
Copy link

Facing same issue after update to latest 2.6.0

@YudizAndroidKishan
Copy link

facing same issue

@AmmarTN
Copy link

AmmarTN commented Jul 29, 2024

any update?

@krishnapada
Copy link
Author

any update

@decisionslab2
Copy link

facing same issue

@Mehedi50200
Copy link

same issue...

@webdevonline
Copy link

webdevonline commented Oct 14, 2024

Has there been any progress on this bug? I am having the same issue, and it's been three months since it was reported.
The "bug fix" mentioned in the jawad111 reply does not work. It just creates new errors saying that the wrong field is being sent by html_editor.

Here's the error I am getting:
E/flutter (14267): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: HTML editor is still loading, please wait before evaluating this JS: $('#summernote-2').summernote('pasteHTML', '<img src="https://storage.googleapis.com/g-green-backend-bucket-1/bluetwotest%2FClover_small.jpg\" alt="image/jpeg" />');!

@krishnapada
Copy link
Author

krishnapada commented Oct 15, 2024 via email

@webdevonline
Copy link

webdevonline commented Oct 21, 2024

Yes, I am working on it. do this. flutter clean flutter pub cache clean flutter pub get

I had done that already and the error was still happening. I just did it again, and the same is still true. It doesn't happen every time. I am running on an emulator. But it happens more often than not. It happens when I make the following call:
htmlController.insertHtml('<img src="${theFile.full_path}" alt="${theFile.file_type}" />');

@webdevonline
Copy link

Has there been any update to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants