Crash when opening the Add > Mesh menu or pressing SHIFT+A #83829

Closed
opened 2020-12-16 07:14:09 +01:00 by Nicolas Macilvoy · 19 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.89

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-12-15 23:20, hash: 977bd7937a
Worked: 2.92.0 Alpha, branch: master, commit date: 2020-12-14 13:00, hash: 732d0b458b

Short description of error
SHIFT+A crashes latest experimental build of Blender.

Exact steps for others to reproduce the error

  • Open Blender
  • Enable Archipack
  • Press SHIFT+A

The problem can be reproduce by pressing {key F3}.

blender.crash.txt
exp crash.blend

BKE_previewimg_id_supports_jobs(const ID * id) Line 436	C++
icon_set_image(const bContext * C, Scene * scene, ID * id, PreviewImage * prv_img, eIconSizes size, const bool use_job) Line 1419	C
ui_id_preview_image_render_size(const bContext * C, Scene * scene, ID * id, PreviewImage * pi, int size, const bool use_job) Line 1951	C
ui_icon_ensure_deferred(const bContext * C, const int icon_id, const bool big) Line 1358	C
ui_def_but_icon(uiBut * but, const int icon, const int flag) Line 4128	C
uiDefIconTextMenuBut(uiBlock * block, void(*)(bContext *, uiLayout *, void *) func, void * arg, int icon, const unsigned char * str, int x, int y, short width, short height, const unsigned char * tip) Line 6396	C
ui_item_menu(uiLayout * layout, const unsigned char * name, int icon, void(*)(bContext *, uiLayout *, void *) func, void * arg, void * argN, const unsigned char * tip, bool force_menu) Line 2882	C
uiItemM_ptr(uiLayout * layout, MenuType * mt, const unsigned char * name, int icon) Line 2929	C
uiItemM(uiLayout * layout, const unsigned char * menuname, const unsigned char * name, int icon) Line 2939	C
rna_uiItemM(uiLayout * layout, const unsigned char * menuname, const unsigned char * name, const unsigned char * text_ctxt, bool translate, int icon, int icon_value) Line 442	C
UILayout_menu_call(bContext * C, ReportList * reports, PointerRNA * _ptr, ParameterList * _parms) Line 2304	C
RNA_function_call(bContext * C, ReportList * reports, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 7529	C
pyrna_func_call(BPy_FunctionRNA * self, _object * args, _object * kw) Line 6317	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 5745	C
ui_item_menutype_func(bContext * C, uiLayout * layout, void * arg_mt) Line 2825	C
ui_block_func_POPUP(bContext * C, uiPopupBlockHandle * handle, void * arg_pup) Line 182	C
ui_popup_block_refresh(bContext * C, uiPopupBlockHandle * handle, ARegion * butregion, uiBut * but) Line 590	C
ui_popup_block_create(bContext * C, ARegion * butregion, uiBut * but, uiBlock *(*)(bContext *, ARegion *, void *) create_func, uiBlock *(*)(bContext *, uiPopupBlockHandle *, void *) handle_create_func, void * arg, void(*)(void *) arg_free) Line 824	C
ui_popup_menu_create(bContext * C, ARegion * butregion, uiBut * but, void(*)(bContext *, uiLayout *, void *) menu_func, void * arg) Line 356	C
ui_block_open_begin(bContext * C, uiBut * but, uiHandleButtonData * data) Line 4094	C
button_activate_state(bContext * C, uiBut * but, uiHandleButtonState state) Line 8007	C
ui_handle_button_event(bContext * C, const wmEvent * event, uiBut * but) Line 8797	C
ui_handle_menu_button(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu) Line 9520	C
ui_handle_menu_event(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu, int level, const bool is_parent_inside, const bool is_parent_menu, const bool is_floating) Line 10151	C
ui_handle_menus_recursive(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu, int level, const bool is_parent_inside, const bool is_parent_menu, const bool is_floating) Line 10642	C
ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10787	C
wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 636	C
wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2762	C
wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2870	C
wm_event_do_handlers(bContext * C) Line 3293	C
WM_main(bContext * C) Line 638	C
main(int argc, const unsigned char * * UNUSED_argv_c) Line 526	C
 	[External Code]
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.89 **Blender Version** Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-12-15 23:20, hash: `977bd7937a` Worked: 2.92.0 Alpha, branch: master, commit date: 2020-12-14 13:00, hash: `732d0b458b` **Short description of error** SHIFT+A crashes latest experimental build of Blender. **Exact steps for others to reproduce the error** - Open Blender - Enable Archipack - Press SHIFT+A The problem can be reproduce by pressing {key F3}. [blender.crash.txt](https://archive.blender.org/developer/F9512493/blender.crash.txt) [exp crash.blend](https://archive.blender.org/developer/F9512501/exp_crash.blend) ```lines BKE_previewimg_id_supports_jobs(const ID * id) Line 436 C++ icon_set_image(const bContext * C, Scene * scene, ID * id, PreviewImage * prv_img, eIconSizes size, const bool use_job) Line 1419 C ui_id_preview_image_render_size(const bContext * C, Scene * scene, ID * id, PreviewImage * pi, int size, const bool use_job) Line 1951 C ui_icon_ensure_deferred(const bContext * C, const int icon_id, const bool big) Line 1358 C ui_def_but_icon(uiBut * but, const int icon, const int flag) Line 4128 C uiDefIconTextMenuBut(uiBlock * block, void(*)(bContext *, uiLayout *, void *) func, void * arg, int icon, const unsigned char * str, int x, int y, short width, short height, const unsigned char * tip) Line 6396 C ui_item_menu(uiLayout * layout, const unsigned char * name, int icon, void(*)(bContext *, uiLayout *, void *) func, void * arg, void * argN, const unsigned char * tip, bool force_menu) Line 2882 C uiItemM_ptr(uiLayout * layout, MenuType * mt, const unsigned char * name, int icon) Line 2929 C uiItemM(uiLayout * layout, const unsigned char * menuname, const unsigned char * name, int icon) Line 2939 C rna_uiItemM(uiLayout * layout, const unsigned char * menuname, const unsigned char * name, const unsigned char * text_ctxt, bool translate, int icon, int icon_value) Line 442 C UILayout_menu_call(bContext * C, ReportList * reports, PointerRNA * _ptr, ParameterList * _parms) Line 2304 C RNA_function_call(bContext * C, ReportList * reports, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 7529 C pyrna_func_call(BPy_FunctionRNA * self, _object * args, _object * kw) Line 6317 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 5745 C ui_item_menutype_func(bContext * C, uiLayout * layout, void * arg_mt) Line 2825 C ui_block_func_POPUP(bContext * C, uiPopupBlockHandle * handle, void * arg_pup) Line 182 C ui_popup_block_refresh(bContext * C, uiPopupBlockHandle * handle, ARegion * butregion, uiBut * but) Line 590 C ui_popup_block_create(bContext * C, ARegion * butregion, uiBut * but, uiBlock *(*)(bContext *, ARegion *, void *) create_func, uiBlock *(*)(bContext *, uiPopupBlockHandle *, void *) handle_create_func, void * arg, void(*)(void *) arg_free) Line 824 C ui_popup_menu_create(bContext * C, ARegion * butregion, uiBut * but, void(*)(bContext *, uiLayout *, void *) menu_func, void * arg) Line 356 C ui_block_open_begin(bContext * C, uiBut * but, uiHandleButtonData * data) Line 4094 C button_activate_state(bContext * C, uiBut * but, uiHandleButtonState state) Line 8007 C ui_handle_button_event(bContext * C, const wmEvent * event, uiBut * but) Line 8797 C ui_handle_menu_button(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu) Line 9520 C ui_handle_menu_event(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu, int level, const bool is_parent_inside, const bool is_parent_menu, const bool is_floating) Line 10151 C ui_handle_menus_recursive(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu, int level, const bool is_parent_inside, const bool is_parent_menu, const bool is_floating) Line 10642 C ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10787 C wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 636 C wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2762 C wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2870 C wm_event_do_handlers(bContext * C) Line 3293 C WM_main(bContext * C) Line 638 C main(int argc, const unsigned char * * UNUSED_argv_c) Line 526 C [External Code] ``` ```

Added subscriber: @Macilvoy

Added subscriber: @Macilvoy

#83986 was marked as duplicate of this issue

#83986 was marked as duplicate of this issue

#83860 was marked as duplicate of this issue

#83860 was marked as duplicate of this issue

#83844 was marked as duplicate of this issue

#83844 was marked as duplicate of this issue

#83809 was marked as duplicate of this issue

#83809 was marked as duplicate of this issue

Added subscriber: @rjg

Added subscriber: @rjg

I can't reproduce this on Linux or Windows.

I can't reproduce this on Linux or Windows.

I can reproduce this issue, but like #83776 it requires an add-on like archipack to be enabled. The id was NULL.

BKE_previewimg_id_supports_jobs(const ID * id) Line 436	C++
icon_set_image(const bContext * C, Scene * scene, ID * id, PreviewImage * prv_img, eIconSizes size, const bool use_job) Line 1419	C
ui_id_preview_image_render_size(const bContext * C, Scene * scene, ID * id, PreviewImage * pi, int size, const bool use_job) Line 1951	C
ui_icon_ensure_deferred(const bContext * C, const int icon_id, const bool big) Line 1358	C
ui_def_but_icon(uiBut * but, const int icon, const int flag) Line 4128	C
uiDefIconTextMenuBut(uiBlock * block, void(*)(bContext *, uiLayout *, void *) func, void * arg, int icon, const unsigned char * str, int x, int y, short width, short height, const unsigned char * tip) Line 6396	C
ui_item_menu(uiLayout * layout, const unsigned char * name, int icon, void(*)(bContext *, uiLayout *, void *) func, void * arg, void * argN, const unsigned char * tip, bool force_menu) Line 2882	C
uiItemM_ptr(uiLayout * layout, MenuType * mt, const unsigned char * name, int icon) Line 2929	C
uiItemM(uiLayout * layout, const unsigned char * menuname, const unsigned char * name, int icon) Line 2939	C
rna_uiItemM(uiLayout * layout, const unsigned char * menuname, const unsigned char * name, const unsigned char * text_ctxt, bool translate, int icon, int icon_value) Line 442	C
UILayout_menu_call(bContext * C, ReportList * reports, PointerRNA * _ptr, ParameterList * _parms) Line 2304	C
RNA_function_call(bContext * C, ReportList * reports, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 7529	C
pyrna_func_call(BPy_FunctionRNA * self, _object * args, _object * kw) Line 6317	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 5745	C
ui_item_menutype_func(bContext * C, uiLayout * layout, void * arg_mt) Line 2825	C
ui_block_func_POPUP(bContext * C, uiPopupBlockHandle * handle, void * arg_pup) Line 182	C
ui_popup_block_refresh(bContext * C, uiPopupBlockHandle * handle, ARegion * butregion, uiBut * but) Line 590	C
ui_popup_block_create(bContext * C, ARegion * butregion, uiBut * but, uiBlock *(*)(bContext *, ARegion *, void *) create_func, uiBlock *(*)(bContext *, uiPopupBlockHandle *, void *) handle_create_func, void * arg, void(*)(void *) arg_free) Line 824	C
ui_popup_menu_create(bContext * C, ARegion * butregion, uiBut * but, void(*)(bContext *, uiLayout *, void *) menu_func, void * arg) Line 356	C
ui_block_open_begin(bContext * C, uiBut * but, uiHandleButtonData * data) Line 4094	C
button_activate_state(bContext * C, uiBut * but, uiHandleButtonState state) Line 8007	C
ui_handle_button_event(bContext * C, const wmEvent * event, uiBut * but) Line 8797	C
ui_handle_menu_button(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu) Line 9520	C
ui_handle_menu_event(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu, int level, const bool is_parent_inside, const bool is_parent_menu, const bool is_floating) Line 10151	C
ui_handle_menus_recursive(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu, int level, const bool is_parent_inside, const bool is_parent_menu, const bool is_floating) Line 10642	C
ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10787	C
wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 636	C
wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2762	C
wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2870	C
wm_event_do_handlers(bContext * C) Line 3293	C
WM_main(bContext * C) Line 638	C
main(int argc, const unsigned char * * UNUSED_argv_c) Line 526	C
 	[External Code]
I can reproduce this issue, but like #83776 it requires an add-on like archipack to be enabled. The `id` was `NULL`. ```lines BKE_previewimg_id_supports_jobs(const ID * id) Line 436 C++ icon_set_image(const bContext * C, Scene * scene, ID * id, PreviewImage * prv_img, eIconSizes size, const bool use_job) Line 1419 C ui_id_preview_image_render_size(const bContext * C, Scene * scene, ID * id, PreviewImage * pi, int size, const bool use_job) Line 1951 C ui_icon_ensure_deferred(const bContext * C, const int icon_id, const bool big) Line 1358 C ui_def_but_icon(uiBut * but, const int icon, const int flag) Line 4128 C uiDefIconTextMenuBut(uiBlock * block, void(*)(bContext *, uiLayout *, void *) func, void * arg, int icon, const unsigned char * str, int x, int y, short width, short height, const unsigned char * tip) Line 6396 C ui_item_menu(uiLayout * layout, const unsigned char * name, int icon, void(*)(bContext *, uiLayout *, void *) func, void * arg, void * argN, const unsigned char * tip, bool force_menu) Line 2882 C uiItemM_ptr(uiLayout * layout, MenuType * mt, const unsigned char * name, int icon) Line 2929 C uiItemM(uiLayout * layout, const unsigned char * menuname, const unsigned char * name, int icon) Line 2939 C rna_uiItemM(uiLayout * layout, const unsigned char * menuname, const unsigned char * name, const unsigned char * text_ctxt, bool translate, int icon, int icon_value) Line 442 C UILayout_menu_call(bContext * C, ReportList * reports, PointerRNA * _ptr, ParameterList * _parms) Line 2304 C RNA_function_call(bContext * C, ReportList * reports, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 7529 C pyrna_func_call(BPy_FunctionRNA * self, _object * args, _object * kw) Line 6317 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 5745 C ui_item_menutype_func(bContext * C, uiLayout * layout, void * arg_mt) Line 2825 C ui_block_func_POPUP(bContext * C, uiPopupBlockHandle * handle, void * arg_pup) Line 182 C ui_popup_block_refresh(bContext * C, uiPopupBlockHandle * handle, ARegion * butregion, uiBut * but) Line 590 C ui_popup_block_create(bContext * C, ARegion * butregion, uiBut * but, uiBlock *(*)(bContext *, ARegion *, void *) create_func, uiBlock *(*)(bContext *, uiPopupBlockHandle *, void *) handle_create_func, void * arg, void(*)(void *) arg_free) Line 824 C ui_popup_menu_create(bContext * C, ARegion * butregion, uiBut * but, void(*)(bContext *, uiLayout *, void *) menu_func, void * arg) Line 356 C ui_block_open_begin(bContext * C, uiBut * but, uiHandleButtonData * data) Line 4094 C button_activate_state(bContext * C, uiBut * but, uiHandleButtonState state) Line 8007 C ui_handle_button_event(bContext * C, const wmEvent * event, uiBut * but) Line 8797 C ui_handle_menu_button(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu) Line 9520 C ui_handle_menu_event(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu, int level, const bool is_parent_inside, const bool is_parent_menu, const bool is_floating) Line 10151 C ui_handle_menus_recursive(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu, int level, const bool is_parent_inside, const bool is_parent_menu, const bool is_floating) Line 10642 C ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10787 C wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 636 C wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2762 C wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2870 C wm_event_do_handlers(bContext * C) Line 3293 C WM_main(bContext * C) Line 638 C main(int argc, const unsigned char * * UNUSED_argv_c) Line 526 C [External Code] ```

Before I can confirm this ticket, I will have to check what version worked properly before.

Before I can confirm this ticket, I will have to check what version worked properly before.

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Robert Guetzkow changed title from SHIFT+A crashes Blender to Crash when opening the Add > Mesh menu or pressing SHIFT+A 2020-12-16 11:34:17 +01:00

Added subscriber: @MLSpence

Added subscriber: @MLSpence
Member

Added subscribers: @JulianEisel, @lichtwerk

Added subscribers: @JulianEisel, @lichtwerk
Member
CC @JulianEisel
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Julian Eisel self-assigned this 2020-12-16 12:15:36 +01:00
Member

Fixed with 4f128269b2.

Fixed with 4f128269b2.

For reference the issue was introduced by 9363132c86

For reference the issue was introduced by 9363132c86

Added subscriber: @1029910278

Added subscriber: @1029910278

Added subscriber: @Esteban-G-Vega

Added subscriber: @Esteban-G-Vega

Added subscriber: @kanani

Added subscriber: @kanani
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#83829
No description provided.