openframeworks / openframeworks/openFrameworks
OF app memory leaks when OpenBox sets the window to fullscreen
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Hi there,
I've been having some issues with OpenFrameworks where memory is constantly being called until OOM killer kicks in.
I'm using Toradex Apalis iMX6, an Arm Cortex A9 Dual core, and not all X capabilities are available (so I have to use EGL windows, unknown if this is related to this issue). Additionally, the OF_FULLSCREEN flag doesn't work because of this X limitation.
To workaround it, I set my window size to match my screen and in OpenBox (the window manager in Toradex modules), I added the following properties to my /home/root/.config/openbox/lxde-rc.xml file:
no yes The workaround works, but after some seconds, the OOM killer kicks in and kills the application. Checking more closely, the issue is with the fullscreen property.I could manage with only the decor set to no property, and no memory issue with that.
I don't know if this happens in x86 or other Arm devices or if its EGL dependant.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the leak on the Toradex Apalis iMX6 with EGL windows and the OpenBox configuration in /home/root/.config/openbox/lxde-rc.xml. Compare the fullscreen property with the decor-only workaround while monitoring memory, then identify the affected fullscreen path and verify that fullscreen no longer causes unbounded memory growth.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- desktop, operating-systems, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100