Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Easy Feedback Form

Easy Feedback brings detailed player feedback and bug reporting to your Unity game directly to you! · By Noah Ratcliff

Possible Memory Leak?

A topic by GreenGuy202 created Jan 13, 2024 Views: 32 Replies: 1
Viewing posts 1 to 2

Hi, so first off, I really like Easy Feedback Form.  As the name suggests it's easy to set up and easy to use.

However, I might have found a possible memory leak you might want to take a look at. Maybe you're already aware of it or I'm using the asset wrong, but I had an issue with it causing a memory leak in my unity game. The class DebugLogCollector registers a functions:

 Application.logMessageReceived += HandleLog;

but it never removes the listener. So if you load a new scene, the DebugLogCollector shell still remains, despite its native object being already destroyed. This itself is not a big a deal but it has a reference to the FeedbackForm-Class and any functions registered with the events OnFeedbackSubmitted, OnFeedbackFormClosed, etc., and their classes will also remain in memory due to that. I had a manager class with a function registered to the event "OnFormSubmitted" and it had references to nearly everything in the scene. After a scene change most of it still remained in the memory, causing my game to take an additional 50mb on every reload of the scene.

I managed to resolve my issues by simply unregistering when the DebugLogCollector gets destroyed.

I hope this was helpful.

Developer

Ah yeah good catch! Internally we make the EF prefab persistent between scenes so I never caught that one. I'll make a note to get that fix rolled in to the next update.

Thanks!