Closed TergelEnkhtur closed 2 months ago
You are running into this issue caused by a bug in Flutter 3.19. This should be fixed in Flutter 3.22.
If you have to use Flutter 3.19, your only option is to use the useAndroidViewSurface: true
parameter. This changes the Flutter embedding mode to an alternative that isn't affected by this specific bug.
If you upgrade to Flutter 3.24, you have to use the workaround in this issue as that version requires a small fix in the plugin that isn't on pub.dev yet.
For the Unity version, use 2022.3.x .
Thank you for you quick reply! I will be sure to try this and report back.
It is working so far, so I will close this, thank you again!
Describe the bug E/BufferQueueProducer(21658): ImageReader-904x2190f22m4-21658-0 dequeueBuffer: BufferQueue has been abandoned
When I try to do it myself with no other functionality other than to just start it and display it, I get the following error message which is infinitely repeated and nothing shows up on the phone screen.
To Reproduce Steps to reproduce the behavior: I followed all the instructions on the documentation page for Android on the main github (https://github.com/juicycleff/flutter-unity-view-widget/tree/master) as well as the pub.dev (https://pub.dev/packages/flutter_unity_widget) and bunch of Youtube video tutorials and online articles which all did conficting steps, were outdated, and did not work.
Literally just the basic instructions of this library. I followed the Android section to a tee.
Expected behavior A clear and concise description of what you expected to happen. For the flutter app to display unity app.
Screenshots If applicable, add screenshots to help explain your problem.
Unity (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
Hi all, lovely day for you I hope as I am having a very difficult time with making flutter work with unity. There is a library called flutter_unity_widget by xraph.com on pub.dev which I am trying to make work.
Specs:
Android, not using emulators/simulators and just my real/physical phone (Samsung Galaxy Z Fold 4 on Android v14 API 34)
Unity 2022.3.30f1. Currently downloading to try on 2022.2.0f1 as the current fuw-XXXX.unitypackage file, found in the unitypackages folder. "Try to use the most recent unitypackage available." is what the dev wrote, and the current versions in the github folder is fuw-2022.2.0, fuw-2022.1.7f1, fuw-2022.1.1-v2. The versions correspond to Unity Version.
Flutter
Under known issues, it says Unity freezes and crashes on Android, please use OpenGL3 as Graphics API. I have tried doing this, no difference.
I manually stop the program up there as the "BufferQueue has been abandoned" message gets repeated infinitely and on the screen is just the page full of yellow.
Any help is welcome! @juicycleff