Disabling 'Use Material Caching' causes Blender to crash when calling LibLoad #45267

Closed
opened 2015-07-02 02:03:29 +02:00 by mobious · 5 comments

System Information
Windows 7 64-bit
Intel HD Graphics 4000

Blender Version
Broken: 2.75 (c6b042b)
Worked: 2.74 (000dfc0)

Files
start.blend -- Contains an empty that runs the following script:

import bge

path = bge.logic.expandPath('//load.blend')
print('loading:', path)
bge.logic.LibLoad(path, 'Scene')

load.blend - Contains the default cube

Short description of error
Calling LibLoad in 'Scene' mode on any file causes Blender to crash if the 'Use Material Caching' option is disabled. This is almost certainly caused by fix 377822729c for another LibLoad/LibFree crash with material caching.

Exact steps for others to reproduce the error
Extract the attached files to the same location and open start.blend. Blender will immediately crash upon starting the game engine. Reopen the file and enable the 'Use Material Caching' option under Properties -> System. The crash should no longer occur and the cube should load properly.

Additional Notes

  • It does not seems to make any difference if the loaded cube has a material or not.
  • Attempting to load a file that contains no objects appears to always crash Blender regardless of the current material caching setting.
**System Information** Windows 7 64-bit Intel HD Graphics 4000 **Blender Version** Broken: 2.75 (c6b042b) Worked: 2.74 (000dfc0) **Files** [start.blend](https://archive.blender.org/developer/F199377/start.blend) -- Contains an empty that runs the following script: ``` import bge path = bge.logic.expandPath('//load.blend') print('loading:', path) bge.logic.LibLoad(path, 'Scene') ``` [load.blend](https://archive.blender.org/developer/F199378/load.blend) - Contains the default cube **Short description of error** Calling LibLoad in 'Scene' mode on any file causes Blender to crash if the 'Use Material Caching' option is disabled. This is almost certainly caused by fix 377822729c for another LibLoad/LibFree crash with material caching. **Exact steps for others to reproduce the error** Extract the attached files to the same location and open start.blend. Blender will immediately crash upon starting the game engine. Reopen the file and enable the 'Use Material Caching' option under Properties -> System. The crash should no longer occur and the cube should load properly. **Additional Notes** - It does not seems to make any difference if the loaded cube has a material or not. - Attempting to load a file that contains no objects appears to always crash Blender regardless of the current material caching setting.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @mobious

Added subscriber: @mobious

This issue was referenced by e61ead7d4c

This issue was referenced by e61ead7d4c0a0067fb55f6abb68f637a8fd21d1f

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This issue was referenced by 2d25656e05

This issue was referenced by 2d25656e051b74707b22e8af2202aafc0bb6e132
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#45267
No description provided.