Skip to content

[android] on "app exit" : Runtime exception at io.flutter.embedding.engine.FlutterJNI.ensureAttachedToNative #48063

@hosaysg

Description

@hosaysg

Below is the Flutter/Dart version I am using.

 • Flutter version 1.12.13+hotfix.5 
 • Framework revision 27321ebbad
 • Engine revision 2994f7e1e6
 • Dart version 2.7.0

Here is the crash log:

java.lang.RuntimeException: 
  at io.flutter.embedding.engine.FlutterJNI.ensureAttachedToNative (Unknown Source:9)
  at io.flutter.embedding.engine.FlutterJNI.markTextureFrameAvailable (Unknown Source:3)
  at io.flutter.embedding.engine.h.a.a (Unknown Source:2)
  at io.flutter.embedding.engine.h.a.a (Unknown Source)
  at io.flutter.embedding.engine.h.a$b$a.onFrameAvailable (Unknown Source:17)
  at android.graphics.SurfaceTexture$1.handleMessage (SurfaceTexture.java:206)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7073)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)

I am unable to reproduce this as I did not experience the issue myself. From the console, it seems to be affecting Android 8/9 users. Kindly advise how I can resolve this.

Metadata

Metadata

Assignees

Labels

a: productionIssues experienced in live production appsc: crashStack traces logged to the consolec: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.customer: googleVarious Google teamsengineflutter/engine related. See also e: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions