Skip to content

Android: renderer not initialized #7

@giacomoran

Description

@giacomoran

On Android I'm getting the following error when I add a TexImage widget:

E/AndroidRuntime(14339): FATAL EXCEPTION: DefaultDispatcher-worker-1
E/AndroidRuntime(14339): Process: com.example.latex_test, PID: 14339
E/AndroidRuntime(14339): kotlin.UninitializedPropertyAccessException: lateinit property renderer has not been initialized
E/AndroidRuntime(14339): 	at com.madlonkay.flutter_tex_js.FlutterTexJsPlugin.access$getRenderer$p(FlutterTexJsPlugin.kt:16)
E/AndroidRuntime(14339): 	at com.madlonkay.flutter_tex_js.FlutterTexJsPlugin$handleRender$1.invokeSuspend(FlutterTexJsPlugin.kt:99)
E/AndroidRuntime(14339): 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime(14339): 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
E/AndroidRuntime(14339): 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
E/AndroidRuntime(14339): 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
E/AndroidRuntime(14339): 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)

It reproduced in a couple sample apps.

It seems like onAttachedToEngine is getting called. I've tried to debug the issue but could get anywhere.

Happy to provide more information or test more if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions