BGE startGame Memory Leak #39382

Closed
opened 2014-03-24 09:51:28 +01:00 by mobious · 7 comments

System Information
Windows 7 Home Premium 64-bit
ATI Mobility Radeon HD 4670

Blender Version
2.70 19e627c

Short description of error
Starting and stopping the game engine appears to leak memory when the startGame function (bge.logic.startGame) is called.

Exact steps for others to reproduce the error
Place the two attached .blend files in the same folder and open start.blend. Note the base amount of memory Blender is using. Start and stop the game engine repeatedly (by hitting P and Esc) and note how Blender's memory usage increases. An initial increase is expected after the first run since the internal player's resources are loaded, but after that there is still a steady increase in memory usage (of about 45Kb each time the game engine is started on my machine).

start.blend

other.blend

**System Information** Windows 7 Home Premium 64-bit ATI Mobility Radeon HD 4670 **Blender Version** 2.70 19e627c **Short description of error** Starting and stopping the game engine appears to leak memory when the startGame function (bge.logic.startGame) is called. **Exact steps for others to reproduce the error** Place the two attached .blend files in the same folder and open start.blend. Note the base amount of memory Blender is using. Start and stop the game engine repeatedly (by hitting P and Esc) and note how Blender's memory usage increases. An initial increase is expected after the first run since the internal player's resources are loaded, but after that there is still a steady increase in memory usage (of about 45Kb each time the game engine is started on my machine). [start.blend](https://archive.blender.org/developer/F82369/start.blend) [other.blend](https://archive.blender.org/developer/F82370/other.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @mobious

Added subscriber: @mobious

Added subscriber: @Moguri

Added subscriber: @Moguri

The current "leak" you're showing with this file feels like noise. It is almost impossible to hunt down (valgrind reports nothing). Even if I did find and fix a leak, I don't know if it is the one you're reporting or some other small leak. Also, sometimes operating systems do some caching that can inflate usage, which can add to the noise. In other words, it would be much more useful to have a file that demonstrates a large, obvious leak, but is still simple. Otherwise, there is little chance this issue will be fixed.

I do know of a small leak when initializing the BGE Python API, but this shouldn't cause problems.

The current "leak" you're showing with this file feels like noise. It is almost impossible to hunt down (valgrind reports nothing). Even if I did find and fix a leak, I don't know if it is the one you're reporting or some other small leak. Also, sometimes operating systems do some caching that can inflate usage, which can add to the noise. In other words, it would be much more useful to have a file that demonstrates a large, obvious leak, but is still simple. Otherwise, there is little chance this issue will be fixed. I do know of a small leak when initializing the BGE Python API, but this shouldn't cause problems.

The current "leak" you're showing with this file feels like noise. It is almost impossible to hunt down (valgrind reports nothing). Even if I did find and fix a leak, I don't know if it is the one you're reporting or some other small leak. Also, sometimes operating systems do some caching that can inflate usage, which can add to the noise. In other words, it would be much more useful to have a file that demonstrates a large, obvious leak, but is still simple. Otherwise, there is little chance this issue will be fixed.

I do know of a small leak when initializing the BGE Python API, but this shouldn't cause problems.

The current "leak" you're showing with this file feels like noise. It is almost impossible to hunt down (valgrind reports nothing). Even if I did find and fix a leak, I don't know if it is the one you're reporting or some other small leak. Also, sometimes operating systems do some caching that can inflate usage, which can add to the noise. In other words, it would be much more useful to have a file that demonstrates a large, obvious leak, but is still simple. Otherwise, there is little chance this issue will be fixed. I do know of a small leak when initializing the BGE Python API, but this shouldn't cause problems.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2014-04-02 22:05:52 +02:00

No answer since a week…

No answer since a week…
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#39382
No description provided.