Page MenuHome

Curve widget crash when resetting curve with bad clipping values
Closed, ResolvedPublic

Description

System Information
Operating system: Linux-5.2.8-1-MANJARO-x86_64-with-arch-Manjaro-Linux 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.40

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: rBf6cb5f54494e

Short description of error
When using the curve widget (e.g. render color management), if you reset the curve and the clipping values are bad, it will cause a crash.

Exact steps for others to reproduce the error
Start with a default cube scene.
In the properties editor, go to the Render tab, and then at the bottom enable Color Management, and then checkmark Use Curves. Press the Clipping options button (looks like a filled circle). Set the Clipping "Min X" to 1 or higher, and then in the tools drop down (looks like a 'v') go to Reset Curve. Blender will immediately crash.

I also tried this in a shading editor by making a Vector Curve node and setting the clipping values to nonsense values and resetting. The same thing occurred.

Here's a backtrace:

Blender 2.80 (sub 75), Commit date: 2019-07-29 14:47, Hash f6cb5f54494e

bpy.context.space_data.context = 'RENDER' # Property
bpy.context.scene.view_settings.use_curve_mapping = True # Property

backtrace

/home/mark/Downloads/blender-2.80/blender(BLI_system_backtrace+0x1d) [0x1369c1d]
/home/mark/Downloads/blender-2.80/blender() [0x1153279]
/usr/lib/libc.so.6(+0x3a7e0) [0x7f730576c7e0]
/home/mark/Downloads/blender-2.80/blender(immAttr2f+0x35) [0x40f6e65]
/home/mark/Downloads/blender-2.80/blender(immVertex2f+0x9) [0x40f7119]
/home/mark/Downloads/blender-2.80/blender() [0x2af0959]
/home/mark/Downloads/blender-2.80/blender(ui_draw_but_CURVE+0x2ed) [0x2af4b2d]
/home/mark/Downloads/blender-2.80/blender(ui_draw_but+0x1366) [0x2b42356]
/home/mark/Downloads/blender-2.80/blender(UI_block_draw+0x1d6) [0x2aec066]
/home/mark/Downloads/blender-2.80/blender(UI_panels_draw+0x5f) [0x2b1c48f]
/home/mark/Downloads/blender-2.80/blender(ED_region_panels_draw+0x80) [0x2d4af90]
/home/mark/Downloads/blender-2.80/blender(ED_region_do_draw+0x851) [0x2d4ebf1]
/home/mark/Downloads/blender-2.80/blender(wm_draw_update+0x483) [0x1517513]
/home/mark/Downloads/blender-2.80/blender(WM_main+0x30) [0x1514c30]
/home/mark/Downloads/blender-2.80/blender(main+0x2fe) [0x10c0abe]
/usr/lib/libc.so.6(__libc_start_main+0xf3) [0x7f7305758ee3]
/home/mark/Downloads/blender-2.80/blender() [0x114fb9c]

Details

Type
Bug