Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Test: heavy memory leak in iOS test app #104

@orangemocha

Description

@orangemocha

This could be due to the way we restart instances in JXcore, or could be due to the test app itself. In any case, it should be investigated before we release the restartable instance feature.

When running the iOS test app, used memory keeps growing unbounded. In a regular run, it goes from ~40MB at the beginning to ~1.3GB at the end. With a debug build, it goes up to ~2.85GB, which leads to out-of-memory errors on 32-bit devices.

I wanted to verify if the leaks were due to some functionality exercised by the tests, so I modified the app to run an empty test in a loop 10k times. The results show that this is enough to cause the leak.

After 2k iterations:

image

Memory is never recovered until we go to out-of-memory. This means that it's not a lazy-gc issue, it's an actual leak.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions