Memory leak in io_import_images_as_planes when running in Python #105431

Open
opened 2024-08-06 19:18:02 +02:00 by Henry-Berger · 0 comments

System Information
Operating system: Linux-5.15.0-117-generic-x86_64-with-glibc2.35 64 Bits, X11 UI
Graphics card: Quadro P4000/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.183.01

Blender Version
Broken: version: 4.0.0, 3.6.0
Worked: Because I use Python 3.10, I wasn't able to test older versions

Addon Information
Name: Import Images as Planes (3, 5, 1)
Author: Florian Meyer (tstscr), mont29, matali, Ted Schundler (SpkyElctrc), mrbimax

Short description of error

I'm using Blender by running a Python script (in Python 3.10) and importing the bpy library. When I try to use the io_import_images_as_planes addon, I get the following error:

Error: Not freed memory blocks: 27558, total unfreed memory 9.215794 MB

Note that the amount of unfreed memory varies a bit between different computers and different Blender versions (3.6 vs 4.0)
If I actually use the addon before quitting, the amount of unfreed memory is greater.

Exact steps for others to reproduce the error

This is what I ran on my terminal. See error message at end

$ pip install bpy==4.0.0
$ python
Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import bpy
>>> bpy.ops.preferences.addon_enable(module='io_import_images_as_planes')
{'FINISHED'}
>>> ^D
Error: Not freed memory blocks: 27558, total unfreed memory 9.215794 MB
$ 

The same thing happens if I replace 4.0.0 with 3.6.0

**System Information** Operating system: Linux-5.15.0-117-generic-x86_64-with-glibc2.35 64 Bits, X11 UI Graphics card: Quadro P4000/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.183.01 **Blender Version** Broken: version: 4.0.0, 3.6.0 Worked: _Because I use Python 3.10, I wasn't able to test older versions_ **Addon Information** Name: Import Images as Planes (3, 5, 1) Author: Florian Meyer (tstscr), mont29, matali, Ted Schundler (SpkyElctrc), mrbimax **Short description of error** I'm using Blender by running a Python script (in Python 3.10) and importing the `bpy` library. When I try to use the `io_import_images_as_planes` addon, I get the following error: ``` Error: Not freed memory blocks: 27558, total unfreed memory 9.215794 MB ``` Note that the amount of unfreed memory varies a bit between different computers and different Blender versions (3.6 vs 4.0) If I actually use the addon before quitting, the amount of unfreed memory is greater. **Exact steps for others to reproduce the error** This is what I ran on my terminal. See error message at end ``` $ pip install bpy==4.0.0 $ python Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import bpy >>> bpy.ops.preferences.addon_enable(module='io_import_images_as_planes') {'FINISHED'} >>> ^D Error: Not freed memory blocks: 27558, total unfreed memory 9.215794 MB $ ``` The same thing happens if I replace 4.0.0 with 3.6.0
Henry-Berger added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-08-06 19:18:03 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 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-addons#105431
No description provided.