Cycles: Don't use guarded vector for statically initialized data

This will confuse hell of a guarded allocators because it is possible
to have allocation happened prior to Blender's guarded allocator is
fully initialized.

This was causing crashes and assert failures when running blender
with fully guarded memory allocator.
This commit is contained in:
Sergey Sharybin 2016-10-24 14:18:22 +02:00
parent 21bf863934
commit e8299c8100
Notes: blender-bot 2023-02-14 07:51:28 +01:00
Referenced by issue #53563, BGE X any Y doesn't work right
Referenced by issue #53529, Rip tool on single edge crashes Blender
Referenced by issue #52505, Selection Bug Report
Referenced by issue #52428, blender crash after pressing "F"
Referenced by issue #52390, Fire simulation
Referenced by issue #52185, Material ID aliasing artifacts
Referenced by issue #51880, blender error: "File format is not supported in file"
Referenced by issue #51644, Crash upon Startup
Referenced by issue #51214, Dynamic Paint Works Only in Viewport Render
Referenced by issue #51153, VSE Interlaced Video FPS not being honored
Referenced by issue #50936, Crash
Referenced by issue #50911, Broken user interface in render result window when image size matches screen resolution
Referenced by issue #50850, Blender crash with cycles rendered viewport shading when changing settings of material with external jpg texture
Referenced by issue #50846, Blender crashes when adding inverse kinematics
Referenced by issue #50805, "Light path"-"is Singular Ray" node Affects material visibility trough a glass material different way in two Blender versions
Referenced by issue #50757, Alembic material import bug
Referenced by issue #50734, Blender crash without error message
Referenced by issue #50745, Shape key editing on bezier objects broken with Rendered Viewport Shading
Referenced by issue #50698, cycles bake artifacts with transparent textures and no color option
Referenced by issue #50699, Gpu Cycles error with MacOs and Gtx580 - Render viewport and No glossy materials (render in black)
Referenced by issue #50700, Possible NaNs with refractive BSDF
Referenced by issue #50692, Python console shows no output
Referenced by issue #50623, Blender doesn't quit after python script/render in background mode (stuck trying to close OpenAL device)
Referenced by issue #50633, Keyboard & Mouse stop working correctly on Ubuntu 16.04
Referenced by issue #50610, Cycles black render with adaptive subdivision and normal map tangent
Referenced by issue #50615, Node Editor> Compositor > Texture Node : Crashes Blender
Referenced by issue #50597, Gizmo position is wrong for meshes with modifiers
Referenced by issue #50565, Transform: Planar constraints don't work properly with non-Blender key configurations
Referenced by issue #50567, Blender 2.78a crashes when using environment texture (GPU)
Referenced by issue #50578, Image Preview for Scene strips in the Video Sequence Editor doesn't update accurately when Scenes use Linked Libraries
Referenced by issue #50543, Entering a 0 infront any number gives an error
Referenced by issue #50550, GPUShader: compile error - Background image not showing in viewport
Referenced by issue #50531, Blender closes when reduced to icon, Windows 10
Referenced by issue #50527, Blender crashed right after add texture node in compositor
Referenced by issue #50529, Invalid curves from exported alembic cache
Referenced by issue #50504, Blender's renderer provides partially blackened images on this .blend file
Referenced by issue #50506, blender windows 10 build 15014white screen
Referenced by issue #50493, GLSL Shading with Textured shading caused UI freezing
Referenced by issue #50477, File Explorer opens extremely slowly (sometimes Blendes itself opens very slowly)
Referenced by issue #50450, Breakdowner doesn't work in Tweak Mode on translated NLA Strips
Referenced by issue #50465, Blender crashes while inserting texture node into compositor
Referenced by issue #50432, Crash with texture node
Referenced by issue #50399, Imported FBX Animation (coming from Unreal Engine) makes Blender switch to 25 FPS
Referenced by issue #50406, Blender shutdown when use scale with shrinkwrapped objects
Referenced by issue #50408, Port EXCEPTION_ACCESS_VIOLATION fix to 2.76b
Referenced by issue #50409, texture to compositig cause crash
Referenced by issue #50384,  Blender Crashes when switching to Cycles
Referenced by issue #50375, Subsurf modifier: animating subdivisions crashes graphics card driver
Referenced by issue #50382, Fluid sim broken when domain/fluid are at large coordinates
Referenced by issue #50353, Grid floor not parallel at big scales in perspective mode
Referenced by issue #50361, Fresnel node not working properly
Referenced by issue #50343, Meta Families
Referenced by issue #50347, Jumping grid lines in perspective views
Referenced by issue #50333, Blender closes when using texture paint in 3d view
Referenced by issue #50285, Sculpt mode, matcap, multires
Referenced by issue #50275, numpy arctan2 gives incorrect angles
Referenced by issue #50266, Blender crashes after multiple right clicks
Referenced by issue #50269, OpenCL kernels compilation error with AMDGPU-PRO
Referenced by issue #50274, Crash opening User Preferences window while in Fullscreen mode and Unable to use Alt+Tab
Referenced by issue #50249, Blender crashes when bringing in a texture node in compositor
Referenced by issue #50254, Blender 2.78a crash when making Single User copy
Referenced by issue #50261, App crashes adding Inverse Kinematics
Referenced by issue #50242, Random crash to desktop in Edit Mode when try to select multiple face.
Referenced by issue #50210, Blender 2.78A crashes opening files created in previous versions
Referenced by issue #50215, Blender crashes, when I add Input/Texture node
Referenced by issue #50216, Using Weight trasfer from an object without faces crash blender
Referenced by issue #50183, This smoke duplicated domain makes Blender crash
Referenced by issue #50184, Grease Pencil Layer synchronization between Dope Sheet and Properties panel
Referenced by issue #50171, Blender 2.78a crashes using in Node Editor [Input] - [Texture]
Referenced by issue #50157, IK Disallow movement failure when add pole target
Referenced by issue #50161, Crash when loading huge OpenEXR files
Referenced by issue #50136, Blender crashes as soon as I open the file
Referenced by issue #50115, sequencer render to stereoscopic video file memory leak
Referenced by issue #50117, Hard crash when adding texture input node to compositor.
Referenced by issue #50096, Maybe grease pencil's bug I guess?
Referenced by issue #50076, Blender Cycles crashes
Referenced by issue #50068, error while opening a file using dependency graph
Referenced by issue #50062, Mask - Clicking in ActivePoint Parent makes Blender crash.
Referenced by issue #50043, Modifying multiple parameters not right on Dimensions
Referenced by issue #50046, Segmentation fault due to out-of-range VertexGroup.weight() call
Referenced by issue #50012, Opencl rendering not working on latest release
Referenced by issue #50015, Video stays on frame one in UV/video editor
Referenced by issue #49977, Imperial Inches Unit Scale Increments in Feet instead
Referenced by issue #49946, Blender crash when you add a node texture in compositing nodes.
Referenced by issue #49956, Cuda error illegal address when rendering more than 5-10 frames of an animation
Referenced by issue #49899, blender crashes when add a inverse kineatics constraint to bone
Referenced by issue #49887, Middle Mouse button for Rotate 3D view does not work (Mouse: Logitech MX Anywhere 2)
Referenced by issue #49874, FirePro GPU Render No Longer Working
Referenced by issue #49877, Gizmo rotation (manipulator)
Referenced by issue #49869, lost maps projection (cube, cilinder etc) in viewport "material view"
Referenced by issue #49857, blender crashes after adding texture node to compositing tree
Referenced by issue #48544, PASCAL GPUs can't perform renders (Cuda binary kernel 6.1 not found)
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ struct NodeType
ustring name;
Type type;
vector<SocketType> inputs;
vector<SocketType> outputs;
vector<SocketType, std::allocator<SocketType> > inputs;
vector<SocketType, std::allocator<SocketType> > outputs;
CreateFunc create;
static NodeType *add(const char *name, CreateFunc create, Type type = NONE);