Exception thrown when blender script terminates #52203

Closed
opened 2017-07-27 17:56:46 +02:00 by Agorgianitis Loukas · 17 comments

Using blender as a python module exception thrown when script exits if import scene operation is performed:

Exception ignored in: <bound method CyclesRender.__del__ of <bpy_struct, Struct("CYCLES")>>
Traceback (most recent call last):
File "/home/theartist/.local/lib/python3.6/site-packages/2.78/scripts/addons/cycles/__init__.py", line 66, in __del__
TypeError: 'NoneType' object is not callable
Error: Not freed memory blocks: 8, total unfreed memory 0.008392 MB

After some inspection, note that in this line it is not the 'engine' object that is None, but rather its member 'free'.
The tested import_scene operations that currently reproduce this bug are obj and fbx.

Reproduce steps:

  1. Open python shell
  2. import bpy
  3. bpy.ops.import_scene.obj(filename="anyobjmodel.obj")
  4. Ctrl-D to exit python console

System: Arch Linux
Blender: 2.78.5

Using blender as a python module exception thrown when script exits if import scene operation is performed: ``` Exception ignored in: <bound method CyclesRender.__del__ of <bpy_struct, Struct("CYCLES")>> Traceback (most recent call last): File "/home/theartist/.local/lib/python3.6/site-packages/2.78/scripts/addons/cycles/__init__.py", line 66, in __del__ TypeError: 'NoneType' object is not callable Error: Not freed memory blocks: 8, total unfreed memory 0.008392 MB ``` After some inspection, note that in this line it is not the 'engine' object that is None, but rather its member 'free'. The tested import_scene operations that currently reproduce this bug are obj and fbx. Reproduce steps: 1) Open python shell 2) import bpy 3) bpy.ops.import_scene.obj(filename="anyobjmodel.obj") 4) Ctrl-D to exit python console System: Arch Linux Blender: 2.78.5

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @agorg_louk

Added subscriber: @agorg_louk

Added subscriber: @ArtoKitula

Added subscriber: @ArtoKitula

Reproduced on latest master, macOS, python3.6

Reproduced on latest master, macOS, python3.6

Added subscribers: @ideasman42, @Sergey

Added subscribers: @ideasman42, @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2017-07-28 10:19:17 +02:00

Thanks for the report, but blender as a module is not officially supported feature.

Maybe @ideasman42 can have a look in his spare time tho.

Thanks for the report, but blender as a module is not officially supported feature. Maybe @ideasman42 can have a look in his spare time tho.

Added subscriber: @XiumingZhang

Added subscriber: @XiumingZhang

Reproduced on Ubuntu 14.04.

Any updates on this issue? @ideasman42 many thanks!

Also, does "not officially supported" imply bugs specific to Blender as module will be fixed? @Sergey thanks a ton!

Reproduced on Ubuntu 14.04. Any updates on this issue? @ideasman42 many thanks! Also, does "not officially supported" imply bugs specific to Blender as module will be fixed? @Sergey thanks a ton!

Added subscriber: @AmirS

Added subscriber: @AmirS

Any updates on this?

Any updates on this?

Added subscriber: @raptop

Added subscriber: @raptop

Getting this issue on basic obj import using:

bpy.ops.import_scene.obj(filepath=filepath)

Exception ignored in: <function CyclesRender.__del__ at 0x0000020A190FB510>
Traceback (most recent call last):
  File "C:\Users\Simon\Anaconda3\envs\PolyReduction\2.80\scripts\addons\cycles\__init__.py", line 67, in __del__
TypeError: 'NoneType' object is not callable

Would love if this got some attention. What is the chance of this seeing as this has been archived?

Getting this issue on basic obj import using: ``` bpy.ops.import_scene.obj(filepath=filepath) Exception ignored in: <function CyclesRender.__del__ at 0x0000020A190FB510> Traceback (most recent call last): File "C:\Users\Simon\Anaconda3\envs\PolyReduction\2.80\scripts\addons\cycles\__init__.py", line 67, in __del__ TypeError: 'NoneType' object is not callable ``` Would love if this got some attention. What is the chance of this seeing as this has been archived?

Would probably be best to inform about such issues be reported to our mailing list.

Would probably be best to inform about such issues be reported to our mailing list.

Added subscriber: @chewitt

Added subscriber: @chewitt

Added subscriber: @Coolbreeze

Added subscriber: @Coolbreeze

so how to solve this problem?

so how to solve this problem?
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
8 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#52203
No description provided.