Page MenuHome

Disabling 'Use Material Caching' causes Blender to crash when calling LibLoad
Closed, ResolvedPublic

Description

System Information
Windows 7 64-bit
Intel HD Graphics 4000

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

Files

-- Contains an empty that runs the following script:

import bge

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

- 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 rB377822729cbf 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.