Ошибка пользовательского интерфейса Flutter:acquireNextBufferLocked: невозможно получить следующий буфер. Уже получен маAndroid

Форум для тех, кто программирует под Android
Anonymous
Ошибка пользовательского интерфейса Flutter:acquireNextBufferLocked: невозможно получить следующий буфер. Уже получен ма

Сообщение Anonymous »

Я работаю над приложением Flutter для Android, и в журналах появляется следующая ошибка:
E/BLASTBufferQueue( 7630): [SurfaceView[com.example.flutter/com.example.flutter.MainActivity]#9](f:1,a:4) acquireNextBufferLocked: Can't acquire next buffer. Already acquired max frames 4 max:2 + 2

Контекст:
I'm using Flutter 3.27.1 on VSCode.
The app uses native Android code (XML UI) and integrates with Flutter.
The app is for field-level medical representatives to order medicine and includes dashboards and analytics.
I have custom UI components and some animations in the app.

Что я пробовал:
Reducing UI rebuilds by using const widgets where possible.
Running flutter clean and rebuilding the app.
Ensuring debugRepaintRainbowEnabled = false.
Checking for heavy widgets and optimizing lists with ListView.builder.
Setting android:hardwareAccelerated="true" and android:largeHeap="true" in AndroidManifest.xml.

Вопросы:
What exactly causes this error, and how can I fix it effectively?
Is there a way to manage or increase buffer limits for Flutter's SurfaceView?
Would limiting the frame rate or optimizing native code help, and if so, how can I do that?


Подробнее здесь: https://stackoverflow.com/questions/794 ... already-ac

Вернуться в «Android»