Yay! I’m now back building my app using Web and Android simulator. I did come across a memory issue where I had to move my repos into separate workspaces. Then I hit the impeller issue where disabling it worked.
ONLY WORKING SOLUTION
flutter run --no-enable-impeller
This did not work
Clean and Rebuild:
flutter clean
flutter pub
get flutter run
Main Issues:
- Impeller/Vulkan Errors:
[ERROR:flutter/impeller/renderer/backend/vulkan/android/ahb_texture_source_vk.cc(108)] Break on 'ImpellerValidationBreak' to inspect point of failure: Could not find memory type of external image.
[ERROR:flutter/impeller/renderer/backend/vulkan/swapchain/ahb/ahb_texture_pool_vk.cc(69)] Break on 'ImpellerValidationBreak' to inspect point of failure: Could not create hardware buffer texture source for swapchain image of size: (1080, 1854)
[ERROR:flutter/impeller/renderer/backend/vulkan/swapchain/ahb/ahb_swapchain_impl_vk.cc(110)] Break on 'ImpellerValidationBreak' to inspect point of failure: Could not create AHB texture source.
[ERROR:flutter/shell/gpu/gpu_surface_vulkan_impeller.cc(95)] No surface available.
- These errors indicate that the Impeller rendering engine, which uses Vulkan on Android, is failing to create the necessary textures and surfaces to render the UI. The specific errors suggest problems with Android Hardware Buffers (AHB), which are used to efficiently share memory between the CPU and GPU.
- Skipped frames:
I/Choreographer(12604): Skipped 262 frames! The application may be doing too much work on its main thread.
- This indicates that there is to much computation or heavy operations done on the main thread.
- Disable Impeller (Temporary Workaround):
- If the problem is with Impeller itself, you can temporarily disable it to see if that fixes the crash. This will revert to the older Skia rendering engine.
- Add the
--no-enable-impeller
flag when running your app: