LibFree crashing #32775

Closed
opened 2012-10-05 09:21:16 +02:00 by Geoff sdfgeoff · 6 comments

Category: Python

%%%When you libLoad a blend file with the 'Scene' type, an overlay scene from the loaded blend, and then libFree the blend blender crashes with:

pure virtual method called
terminate called without an active exception
Aborted

If after the libFree, but before the next frame you call 'bge.logic.getSceneList()' then blender will crash with a segmentation fault.

I have attached two zip files:

libFree1.zip

Extract the zip and open 'load.blend'
Hit P and blender will crash.
This is an example of the first crash.

libFree2.zip

Extract the zip and open 'load.blend'
Hit P and blender will crash.
This is an example of the second crash.

A temporary fix is to remove any added scenes before libFreeing, but this is often impracticable due to not knowing the name of added scenes.%%%

**Category**: Python %%%When you libLoad a blend file with the 'Scene' type, an overlay scene from the loaded blend, and then libFree the blend blender crashes with: pure virtual method called terminate called without an active exception Aborted If after the libFree, but before the next frame you call 'bge.logic.getSceneList()' then blender will crash with a segmentation fault. I have attached two zip files: libFree1.zip Extract the zip and open 'load.blend' Hit P and blender will crash. This is an example of the first crash. libFree2.zip Extract the zip and open 'load.blend' Hit P and blender will crash. This is an example of the second crash. A temporary fix is to remove any added scenes before libFreeing, but this is often impracticable due to not knowing the name of added scenes.%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%I forgot to say, but this bug is in both blender 2.63 and 2.64 RC2%%%

%%%I forgot to say, but this bug is in both blender 2.63 and 2.64 RC2%%%

%%%The first crash is caused because LibLoad() assumes that any scenes it adds is merged with the current scene. Therefor, when the blendfile is freed, the scene information is just freed, but never actually removed from the scenes list. This is fine in most cases, but breaks if you actually have a running scene from the blendfile (like you do when you add an overlay scene).

I haven't yet investigated the second crash, but I get the feeling it's a similar problem.%%%

%%%The first crash is caused because LibLoad() assumes that any scenes it adds is merged with the current scene. Therefor, when the blendfile is freed, the scene information is just freed, but never actually removed from the scenes list. This is fine in most cases, but breaks if you actually have a running scene from the blendfile (like you do when you add an overlay scene). I haven't yet investigated the second crash, but I get the feeling it's a similar problem.%%%
Member

%%%Fixed problem 2 in r57626. I can not reproduce the first problem with the supplied blend file. It may have been fixed previously. Can you confirm that these bugs are resolved as of r57626?%%%

%%%Fixed problem 2 in r57626. I can not reproduce the first problem with the supplied blend file. It may have been fixed previously. Can you confirm that these bugs are resolved as of r57626?%%%
Member

%%%Closing.

If a problem still exists, please open a new bug report.%%%

%%%Closing. If a problem still exists, please open a new bug report.%%%
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#32775
No description provided.