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

[webview_flutter_lwe] Crash on emulator #733

Closed
JSUYA opened this issue Sep 5, 2024 · 1 comment · Fixed by #734
Closed

[webview_flutter_lwe] Crash on emulator #733

JSUYA opened this issue Sep 5, 2024 · 1 comment · Fixed by #734
Assignees

Comments

@JSUYA
Copy link
Member

JSUYA commented Sep 5, 2024

When running the webview_flutter_lwe example on a TV emulator, the app is crashed.
Since we can't check the log in the emulator, I set use_sw_backend in webview.cc to true and ran it on a TV Device.
I checked the similar(?) crash occurred.
This issue looks have occurred after #695.

+) SingleBufferPool used in sw backed is also used in webview_flutter_tizen and works normally.

[I] flutter: WebView is loading (progress : 10%)
[I] flutter: Page started loading: https://www.google.com
[I] flutter: WebView is loading (progress : 55%)
[I] flutter: WebView is loading (progress : 69%)
[I] flutter: WebView is loading (progress : 0%)
[E] terminate called after throwing an instance of '
[E] std::bad_function_call
[E] '
[E]   what():
[E] bad_function_call
[E]
[E] DotNET onSigabrt called on org.tizen.webview_flutter_lwe_example
diff --git a/packages/webview_flutter_lwe/tizen/src/webview.cc b/packages/webview_flutter_lwe/tizen/src/webview.cc
index 7b9e7b3f..dd86212a 100644
--- a/packages/webview_flutter_lwe/tizen/src/webview.cc
+++ b/packages/webview_flutter_lwe/tizen/src/webview.cc
@@ -107,7 +107,8 @@ WebView::WebView(flutter::PluginRegistrar* registrar, int view_id,
       texture_registrar_(texture_registrar),
       width_(width),
       height_(height) {
-  use_sw_backend_ = IsRunningOnEmulator();
+  use_sw_backend_ = true;
+  IsRunningOnEmulator();
   if (use_sw_backend_) {
     tbm_pool_ = std::make_unique<SingleBufferPool>(width, height);
   } else {
@bwikbs
Copy link
Member

bwikbs commented Sep 5, 2024

This issue will be resolved in lwe 1.3.0.

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

Successfully merging a pull request may close this issue.

4 participants