Flutter 应用程序崩溃并显示 std::bad_alloc 中止消息

Flutter Application crashing with std::bad_alloc abort message

我是一名新程序员,最近开始研究 flutter。我制作的应用程序有一半时间在启动时崩溃,而其他时间却运行良好。在 Logcat 中,它向我显示了以下我完全不理解的中止消息,这让我抓狂。

void abort_message(const char *, ...): assertion "terminating with uncaught exception of type St9bad_alloc: std::bad_alloc" failed

这是 flutter 中的一个错误,希望在本周修复:

https://github.com/flutter/flutter/issues/24058