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

[BUG] Crash on new stable Flutter 2.10 #214

Closed
iBog opened this issue Feb 7, 2022 · 3 comments
Closed

[BUG] Crash on new stable Flutter 2.10 #214

iBog opened this issue Feb 7, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@iBog
Copy link

iBog commented Feb 7, 2022

E/OpenGLRenderer(10298): [SurfaceTexture-0-10298-1] attachToContext: SurfaceTexture is already attached to a context
I/flutter (10298): 
E/flutter (10298): [ERROR:flutter/fml/platform/android/jni_util.cc(211)] java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)
E/flutter (10298): 	at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:294)
E/flutter (10298): 	at io.flutter.embedding.engine.renderer.SurfaceTextureWrapper.attachToGLContext(SurfaceTextureWrapper.java:57)
E/flutter (10298): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (10298): 	at android.os.MessageQueue.next(MessageQueue.java:336)
E/flutter (10298): 	at android.os.Looper.loop(Looper.java:174)
E/flutter (10298): 	at android.app.ActivityThread.main(ActivityThread.java:7356)
E/flutter (10298): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter (10298): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/flutter (10298): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
E/flutter (10298): 
F/flutter (10298): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1301)] Check failed: fml::jni::CheckException(env). 

Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1301)] Check failed: fml::jni::CheckException(env). 
'
    eax 00000000  ebx 0000283a  ecx 0000283a  edx 00000006
    edi f0b8933e  esi ffdd9420
    ebp f2170ef0  esp ffdd93c8  eip f2170ef9
backtrace:
      #00 pc 00000ef9  [vdso] (__kernel_vsyscall+9)
      #01 pc 00092328  /apex/com.android.runtime/lib/bionic/libc.so (syscall+40) (BuildId: 471745f0fbbcedb3db1553d5bd6fcd8b)
      #02 pc 000ad651  /apex/com.android.runtime/lib/bionic/libc.so (abort+193) (BuildId: 471745f0fbbcedb3db1553d5bd6fcd8b)
      #03 pc 01422bea  /data/app/com.app.path.qa-m91HY01qFPO7-KbdWGaMHw==/lib/x86/libflutter.so (BuildId: bc2674e80bf793e9ed9bda34fe5506c5127bf8df)
      #04 pc 0144e149  /data/app/com.app.path.qa-m91HY01qFPO7-KbdWGaMHw==/lib/x86/libflutter.so (BuildId: bc2674e80bf793e9ed9bda34fe5506c5127bf8df)
      #05 pc 0142f461  /data/app/com.app.path.qa-m91HY01qFPO7-KbdWGaMHw==/lib/x86/libflutter.so (BuildId: bc2674e80bf793e9ed9bda34fe5506c5127bf8df)
      #06 pc 014213d8  /data/app/com.app.path.qa-m91HY01qFPO7-KbdWGaMHw==/lib/x86/libflutter.so (BuildId: bc2674e80bf793e9ed9bda34fe5506c5127bf8df)
      #07 pc 0009236b  [anon:libc_malloc]

flutter -v doctor
[√] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.19044.1466], locale ru-RU)
• Flutter version 2.10.0 at C:\Apps\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5f105a6ca7 (5 days ago), 2022-02-01 14:15:42 -0800
• Engine revision 776efd2034
• Dart version 2.16.0
• DevTools version 2.9.2

@iBog iBog added the bug Something isn't working label Feb 7, 2022
@tneotia
Copy link
Owner

tneotia commented Feb 12, 2022

This looks to be an internal issue with Flutter rendering. The webview uses hybrid composition to display the content, maybe you can use the useHybridComposition: false and see if the crash goes away?

@iBog
Copy link
Author

iBog commented Feb 18, 2022

Checked with
androidUseHybridComposition: false
from master branch, and crash is gone,
probably the source of crash is flutter/flutter#98155
hope this fix will be released in next stable flutter release after 2.10.1

@iBog
Copy link
Author

iBog commented Feb 22, 2022

Looks like 'attachToGLContext' crash fixed in latest stable Flutter 2.10.2

@tneotia tneotia closed this as completed Feb 22, 2022
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

2 participants