Maniphest T65968

ctest: script_load_addons fails
Closed, Resolved

Assigned To
Germano Cavalcante (mano-wii)
Authored By
Ray Molenkamp (LazyDodo)
Jun 20 2019, 8:08 PM
Tags
  • BF Blender
Subscribers
Bastien Montagne (mont29)
Brecht Van Lommel (brecht)
Ray Molenkamp (LazyDodo)

Description

System Information
Operating system: Win64
Graphics card: N/A

Blender Version
Broken: 2f77175fecc7
Worked:

Short description of error

running script_load_addons crashes with an assert

edit: managed to crash it in a release build as well, asan will probably find it on linux as well.

[HANDLER_VERBOSE_OUTPUT] 
UpdateCTestConfiguration  from :K:/BlenderGit/build_windows_Full_x64_vc16_Debug/DartConfiguration.tcl

UpdateCTestConfiguration  from :K:/BlenderGit/build_windows_Full_x64_vc16_Debug/DartConfiguration.tcl
[HANDLER_OUTPUT] 
Test project K:/BlenderGit/build_windows_Full_x64_vc16_Debug

[HANDLER_VERBOSE_OUTPUT] 
Constructing a list of tests

Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 39
[HANDLER_OUTPUT] 
    Start 39: script_load_addons

[HANDLER_VERBOSE_OUTPUT] 

39: Test command: K:\BlenderGit\build_windows_Full_x64_vc16_Debug\bin\Debug\blender.exe "--background" "-noaudio" "--factory-startup" "--python" "K:/BlenderGit/blender/tests/python/bl_load_addons.py"

39: Test timeout computed to be: 10000000
39: Blender 2.80 (sub 74) (hash 2f77175fecc7 built Thu 06/20/2019 09:23 AM)
39: found bundled python: K:\BlenderGit\build_windows_Full_x64_vc16_Debug\bin\Debug\2.80\python
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'API key used to refresh the token regularly.' description from 'api_key_refresh' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'When this is on, BlenderKit is trying to connect and login.' description from 'login_attempt' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'If not marked private, your asset will go into the validation process automatically
39: Private assets are limited by quota.' description from 'is_private' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'If not marked private, your asset will go into the validation process automatically
39: Private assets are limited by quota.' description from 'is_private' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'If not marked private, your asset will go into the validation process automatically
39: Private assets are limited by quota.' description from 'is_private' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'If not marked private, your asset will go into the validation process automatically
39: Private assets are limited by quota.' description from 'is_private' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'If not marked private, your asset will go into the validation process automatically
39: Private assets are limited by quota.' description from 'is_private' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Fill tags for asset. Now run before upload, no need to interact from user side.' description from 'OBJECT_OT_blenderkit_auto_tags' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Download and link asset to scene. Only link if asset allready available locally.' description from 'SCENE_OT_blenderkit_download' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Kill a download.' description from 'SCENE_OT_blenderkit_download_kill' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Remove  processes in background.' description from 'OBJECT_OT_kill_bg_process' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Bring linked object hierarchy to scene and make it editable.' description from 'OBJECT_OT_blenderkit_bring_to_scene' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Bring linked object hierarchy to scene and make it editable.' description from 'WM_OT_blenderkit_login' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Cancel login attempt.' description from 'WM_OT_blenderkit_login_cancel' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Bring linked object hierarchy to scene and make it editable.' description from 'WM_OT_blenderkit_logout' '' ends with a '.' !
39: Warning: class IMPORT_SCENE_OT_import_chan contains a properties which should be an annotation!
39: K:\BlenderGit\build_windows_Full_x64_vc16_Debug\bin\Debug\2.80\scripts\addons\io_anim_nuke_chan\__init__.py:144
39:     make annotation: IMPORT_SCENE_OT_import_chan.rotation_order
39: Warning: class EXPORT_OT_export_chan contains a properties which should be an annotation!
39: K:\BlenderGit\build_windows_Full_x64_vc16_Debug\bin\Debug\2.80\scripts\addons\io_anim_nuke_chan\__init__.py:145
39:     make annotation: EXPORT_OT_export_chan.rotation_order
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'Bake resolution.' description from 'bake_resolution' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'Applink folder size.' description from 'folder_size' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'Number of frames you want to skip.' description from 'skip_frames' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'Choose the number of images between 2 keys.' description from 'images_per_key' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'Choose a different atom shape.' description from 'replace_objs' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'Choose a different material.' description from 'replace_objs_material' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'Choose a special atom shape.' description from 'replace_objs_special' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1604 RNA_def_property_ui_text: 'Charge state of the ions if existing.' description from 'radius_type_ionic' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Use default shapes and colors for atoms.' description from 'ATOM_BLEND_OT_default_atoms' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Replace selected atoms with atoms of different shape.' description from 'ATOM_BLEND_OT_replace_atom' '' ends with a '.' !
39: WARN (rna.define): K:\BlenderGit\blender\source\blender\makesrna\intern\rna_define.c:1196 RNA_def_struct_ui_text: 'Measure the distance between two atoms (objects).' description from 'ATOM_BLEND_OT_button_distance' '' ends with a '.' !
39: Error   : EXCEPTION_BREAKPOINT
39: Address : 0x000007FEE36B1225
39: Module  : C:\Windows\system32\ucrtbased.dll
39: Writing: C:\Users\Ray\AppData\Local\Temp\blender.crash.txt
[HANDLER_OUTPUT] 
1/1 Test #39: script_load_addons ...............
***Failed    6.78 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   6.87 sec

The following tests FAILED:
	 39 - script_load_addons (Failed)
[ERROR_MESSAGE] 
Errors while running CTest

the generated stack dump

# Blender 2.80 (sub 74), Commit date: 2019-06-20 15:03, Hash 2f77175fecc7

# backtrace
64: BLI_system_backtrace - 0x14083E940
63: sig_handle_crash_backtrace - 0x1403CC180
62: sig_handle_crash - 0x1403CC1D0
61: windows_exception_handler - 0x1403CC440
60: UnhandledExceptionFilter - 0x7749B850
59: longjmp - 0x7758CD20
58: _C_specific_handler - 0x775772FC
57: _chkstk - 0x7758BEE0
56: RtlInitializeResource - 0x7755FF00
55: KiUserExceptionDispatcher - 0x7758B5F0
54: get_wide_winmain_command_line - 0x7FEE36B0F10
53: get_wide_winmain_command_line - 0x7FEE36B0F10
52: wassert - 0x7FEE36B3960
51: PyDict_Update - 0x7FEC43133B4
50: PyDict_Update - 0x7FEC43133B4
49: PyDict_Update - 0x7FEC43133B4
48: PyDict_Update - 0x7FEC43133B4
47: pyrna_subtype_set_rna - 0x140A40150
46: pyrna_register_class - 0x140A41330
45: PyDict_Update - 0x7FEC43133B4
44: PyDict_Update - 0x7FEC43133B4
43: PyDict_Update - 0x7FEC43133B4
42: PyDict_Update - 0x7FEC43133B4
41: PyDict_Update - 0x7FEC43133B4
40: PyDict_Update - 0x7FEC43133B4
39: PyDict_Update - 0x7FEC43133B4
38: PyDict_Update - 0x7FEC43133B4
37: PyDict_Update - 0x7FEC43133B4
36: PyDict_Update - 0x7FEC43133B4
35: PyDict_Update - 0x7FEC43133B4
34: PyDict_Update - 0x7FEC43133B4
33: PyDict_Update - 0x7FEC43133B4
32: PyDict_Update - 0x7FEC43133B4
31: PyDict_Update - 0x7FEC43133B4
30: PyDict_Update - 0x7FEC43133B4
29: PyDict_Update - 0x7FEC43133B4
28: PyDict_Update - 0x7FEC43133B4
27: PyDict_Update - 0x7FEC43133B4
26: PyDict_Update - 0x7FEC43133B4
25: PyDict_Update - 0x7FEC43133B4
24: PyDict_Update - 0x7FEC43133B4
23: PyDict_Update - 0x7FEC43133B4
22: PyDict_Update - 0x7FEC43133B4
21: PyDict_Update - 0x7FEC43133B4
20: PyDict_Update - 0x7FEC43133B4
19: PyDict_Update - 0x7FEC43133B4
18: PyDict_Update - 0x7FEC43133B4
17: PyDict_Update - 0x7FEC43133B4
16: PyDict_Update - 0x7FEC43133B4
15: PyDict_Update - 0x7FEC43133B4
14: PyDict_Update - 0x7FEC43133B4
13: PyDict_Update - 0x7FEC43133B4
12: PyDict_Update - 0x7FEC43133B4
11: python_script_exec - 0x140A29C10
10: BPY_execute_filepath - 0x140A28270
9: arg_handle_python_file_run - 0x1403C9ED0
8: BLI_argsParse - 0x14083BB90
7: main_args_setup_post - 0x1403C68C0
6: main - 0x1403C4DE0
5: invoke_main - 0x144035BE0
4: __scrt_common_main_seh - 0x144035990
3: __scrt_common_main - 0x144035970
2: mainCRTStartup - 0x144035CA0
1: BaseThreadInitThunk - 0x77415560
0: RtlUserThreadStart - 0x77573840

Exact steps for others to reproduce the error
Make a debug build, run the script_load_addons test

Related Objects

Mentioned In
T66156: ctest: script_load_addons fails (again)
rBAfcea7efd6058: mesh_snap_utilities_line: Fix unregistry of global keymaps.
Mentioned Here
rBAfcea7efd6058: mesh_snap_utilities_line: Fix unregistry of global keymaps.
rB2f77175fecc7: Fix sculpt mask not visible in EEVEE

Event Timeline

Ray Molenkamp (LazyDodo) created this task.Jun 20 2019, 8:08 PM
Ray Molenkamp (LazyDodo) renamed this task from ctest: script_load_addons fails in debug build to ctest: script_load_addons fails.Jun 20 2019, 8:40 PM
Ray Molenkamp (LazyDodo) updated the task description.
Brecht Van Lommel (brecht) assigned this task to Bastien Montagne (mont29).Jun 21 2019, 12:26 PM
Brecht Van Lommel (brecht) lowered the priority of this task from 90 to 50.Jun 21 2019, 4:50 PM
Brecht Van Lommel (brecht) reassigned this task from Bastien Montagne (mont29) to Germano Cavalcante (mano-wii).Jun 24 2019, 7:24 PM
Brecht Van Lommel (brecht) added subscribers: Bastien Montagne (mont29), Brecht Van Lommel (brecht).

This is caused by mesh_snap_utilities_line.

It seem to handle keymaps registration/unregistration in a way that is quite different than other add-ons. One thing it definitely should not be doing is removing keymaps as a whole, it should only remove keymap items since other add-ons might have added items in the same keymap.

Germano Cavalcante (mano-wii) mentioned this in rBAfcea7efd6058: mesh_snap_utilities_line: Fix unregistry of global keymaps..Jun 25 2019, 2:04 AM
Germano Cavalcante (mano-wii) changed the task status from Unknown Status to Resolved.Jun 25 2019, 3:37 PM

Resolved by rBAfcea7efd6058