Page MenuHome

Crash in graph editor on right-click after baking sound to F-curve
Closed, ResolvedPublicBUG

Description

System Information
Operating system: win 10
Graphics card: nvidia gtx 1080

Blender Version
Broken: 2.91, 2.92
Worked: 2.90.1, 2.83.9

Short description of error
Blender crashes when trying to open a menu when a baked f curve is in the graph editor.

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file.

  1. Select cube
  2. Insert a location key frame
  3. Open the graph editor
  4. Select e.g. the X location channel of the cube
  5. Use the menu Key > Bake Sound to F-Curves
  6. Select a music file
  7. Right-click on a channel in the hierarchy

*crash*

Event Timeline

Robert Guetzkow (rjg) changed the task status from Needs Triage to Needs Information from User.Dec 2 2020, 12:41 PM

I've tested this in 2.91.0 and 2.92.0 and couldn't reproduce a crash.

Please open Blender's installation directory and double click on the blender_debug_log.cmd. This will start Blender in debug mode and create log files. Try to make Blender crash again. Once it crashes the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located in C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt (or simply type %TEMP% into the path bar of the Windows Explorer).

Does this only happen when using a particular music file?



No, this was actually crashing on my friend using his own music so I reproduced the issue and filed the bug. I selected a random song from my local collection. I tried another song and also had the same crash results.

Robert Guetzkow (rjg) renamed this task from crashes when opening a menu when a baked f curve is in the graph editor to Crash in graph editor on right-click after baking sound to F-curve.Dec 3 2020, 12:34 PM
Robert Guetzkow (rjg) updated the task description. (Show Details)
Robert Guetzkow (rjg) changed the task status from Needs Information from User to Confirmed.Dec 3 2020, 12:38 PM

I can reproduce the crash now. The crash happens because bezt is NULL in screen_ctx_selected_editable_keyframes.

screen_ctx_selected_editable_keyframes(const bContext * C, bContextDataResult * result) Line 1008	C
ed_screen_context(const bContext * C, const unsigned char * member, bContextDataResult * result) Line 1115	C
ctx_data_get(bContext * C, const unsigned char * member, bContextDataResult * result) Line 351	C
CTX_data_get(const bContext * C, const unsigned char * member, PointerRNA * r_ptr, ListBase * r_lb, short * r_type) Line 497	C
pyrna_struct_getattro(BPy_StructRNA * self, _object * pyname) Line 4278	C
[External Code]	
bpy_class_call(bContext * C, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 8522	C
menu_draw(const bContext * C, Menu * menu) Line 875	C
UI_menutype_draw(bContext * C, MenuType * mt, uiLayout * layout) Line 5740	C
UI_popup_menu_invoke(bContext * C, const unsigned char * idname, ReportList * reports) Line 571	C
wm_call_menu_exec(bContext * C, wmOperator * op) Line 1798	C
wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1308	C
wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const unsigned char * kmi_idname) Line 2143	C
wm_handlers_do_keymap_with_keymap_handler(bContext * C, wmEvent * event, ListBase * handlers, wmEventHandler_Keymap * handler, wmKeyMap * keymap, const bool do_debug_handler) Line 2453	C
wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2750	C
wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2874	C
wm_event_do_handlers(bContext * C) Line 3370	C
WM_main(bContext * C) Line 638	C
main(int argc, const unsigned char * * UNUSED_argv_c) Line 526	C
[External Code]
Robert Guetzkow (rjg) updated the task description. (Show Details)
Robert Guetzkow (rjg) updated the task description. (Show Details)
Sybren A. Stüvel (sybren) changed the subtype of this task from "Report" to "Bug".