Actrivating Sun Position Addon causes not freed memory error #105201
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#105201
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux-6.1.77-2-MANJARO-x86_64-with-glibc2.39 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 545.29.06
Blender Version
Broken: version: 4.0.2, branch: makepkg (modified), commit date: 2023-12-05 07:41, hash:
9be62e85b727
Worked: (just discovered error)
Addon Information
Name: Sun Position (3, 5, 4)
Author: Michael Martin, Damien Picard
Short description of error
Activating Sun Position shows error on quit.
Blender quit
Error: Not freed memory blocks: 4, total unfreed memory 0.000458 MB
GLShader len: 120 0x7f039795c938
GLShaderInterface len: 240 0x7f039796b4f8
GLShaderInterface len: 64 0x7f0396b6e8b8
name_buffer len: 56 0x7f0396b6e938
Exact steps for others to reproduce the error
I can only reproduce the error with
--debug-memory
:blender --factory-startup --debug-memory --addons sun_position
Not sure why the error appears by default on your side, is it a debug build?
Thank you for your time Damien.
Without debug I get this error message:
Blender quit
Error: Not freed memory blocks: 4, total unfreed memory 0.000458 MB
I simplified the add-on and can still reproduce the error with this stub, but I’m not sure what’s causing the error. I don’t think it’s specific to Sun Position though.
Can you reproduce with this?
Python: Traceback (most recent call last): File "/home/edgarm/Downloads/untitled.blend/__init__.py", line 8, in <module> ImportError: attempted relative import with no known parent package
I think you opened the
__init__.py
file in a text editor in Blender? The zip file I attached is meant to be installed as an add-on through the preferences.I installed your sript and started Blender with:
blender --addons sun_position
Traceback (most recent call last):
File "/usr/share/blender/4.0/scripts/addons/sun_position/draw.py", line 158, in surface_update
addon_prefs = context.preferences.addons[package].preferences
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'bpy_prop_collection[key]: key "sun_position" not found'
File "/usr/share/blender/4.0/scripts/addons/sun_position/draw.py", line 155, in surface_update
Traceback (most recent call last):
File "/usr/share/blender/4.0/scripts/addons/sun_position/draw.py", line 118, in analemmas_update
addon_prefs = context.preferences.addons[package].preferences
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'bpy_prop_collection[key]: key "sun_position" not found'
File "/usr/share/blender/4.0/scripts/addons/sun_position/draw.py", line 115, in analemmas_update
Traceback (most recent call last):
File "/usr/share/blender/4.0/scripts/addons/sun_position/draw.py", line 98, in north_update
addon_prefs = context.preferences.addons[package].preferences
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'bpy_prop_collection[key]: key "sun_position" not found'
File "/usr/share/blender/4.0/scripts/addons/sun_position/draw.py", line 95, in north_update
Traceback (most recent call last):
File "/usr/share/blender/4.0/scripts/addons/sun_position/properties.py", line 56, in sun_update
move_sun(context)
File "/usr/share/blender/4.0/scripts/addons/sun_position/sun_calc.py", line 58, in move_sun
addon_prefs = context.preferences.addons[package].preferences
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'bpy_prop_collection[key]: key "sun_position" not found'
File "/usr/share/blender/4.0/scripts/addons/sun_position/properties.py", line 52, in sun_update
Traceback (most recent call last):
File "/usr/share/blender/4.0/scripts/addons/sun_position/properties.py", line 30, in lat_long_update
sun_update(self, context)
File "/usr/share/blender/4.0/scripts/addons/sun_position/properties.py", line 56, in sun_update
move_sun(context)
File "/usr/share/blender/4.0/scripts/addons/sun_position/sun_calc.py", line 58, in move_sun
addon_prefs = context.preferences.addons[package].preferences
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'bpy_prop_collection[key]: key "sun_position" not found'
File "/usr/share/blender/4.0/scripts/addons/sun_position/properties.py", line 27, in lat_long_update
When I install the SunPosition addon first and restart Blender without options I get the regular Error:
Blender quit
Error: Not freed memory blocks: 4, total unfreed memory 0.000458 MB
Thanks, that confirms the issue doesn’t come from the add-on itself. I opened a new bug report on the Blender repository.