2

When I run my app sometimes I receive an message in the console stating:

W/System : A resource failed to call release.

It doesn't always happen, so I'm having a hard time tracking down the problem. Is there a way to make the console specify which resource it was?

Thanks

Haplo
  • 154
  • 2
  • 11
  • You can look at memory profiler because you can't get alot from your logcat. – Hussam Apr 07 '20 at 03:43
  • This turns out to be the same as this question https://stackoverflow.com/a/63386527/1864688 (not immediately obvious due to slightly different message--turns out the message is generated programmatically). I've posted an answer there about how to get more diagnostic info. – guest Aug 13 '20 at 00:52
  • @guest That seems promising, but how could I implement that in Flutter? Your answer for that question is relevant for Java. Thanks – Haplo Aug 14 '20 at 15:04
  • do you have a way to add java code to your project? the good thing is the snippet from the other answer doesn't have to be integrated with your app code. it just needs to run independently to flip that switch. – guest Aug 14 '20 at 16:43

1 Answers1

0

You can track it by using Flutter DevTools. Although, in one of the SO post mentioned that the warning could be due some memory leak. It could be best that you could verify it yourself using the said Flutter DevTools.

Here are some references that you might find helpful:

MαπμQμαπkγVπ.0
  • 5,887
  • 1
  • 27
  • 65