Crash when hovering asset category in geometry nodes add menu #104952

Closed
opened 2023-02-19 15:15:28 +01:00 by Dvorakir · 7 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94

Blender Version
Broken: version: 3.5.0 Beta, branch: blender-v3.5-release, commit date: 2023-02-18 05:38, hash: 46e13cf8a529
Worked: 3.4.1

Short description of error
Hovering over the menu entry for an asset category in the geometry nodes add menu can show wrong entries or crash blender.

This is a bug that I've only been able to reproduce with a small test asset library and the asset library imported via the Poly Haven Assets Add-on and with custom asset library attached below

Exact steps for others to reproduce the error

  1. Download the attached test asset library and extract somewhere
  2. Add the "test asset" folder as an asset library file path
  3. Create a new geometry node group modifier on the default cube
  4. Hover over the "Hair" menu entries several times

The menu might show a random (shader) node group or blender will crash outright.

If the crash does not happen, it might happen after restarting blender, as it seems to have something to do with loading assets in the geometry node editor

Test Asset
Image

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94 **Blender Version** Broken: version: 3.5.0 Beta, branch: blender-v3.5-release, commit date: 2023-02-18 05:38, hash: `46e13cf8a529` Worked: 3.4.1 **Short description of error** Hovering over the menu entry for an asset category in the geometry nodes add menu can show wrong entries or crash blender. This is a bug that I've only been able to reproduce with a small test asset library and the asset library imported via the [Poly Haven Assets Add-on](https://github.com/Poly-Haven/polyhavenassets) and with custom asset library attached below **Exact steps for others to reproduce the error** 1. Download the attached test asset library and extract somewhere 2. Add the "test asset" folder as an asset library file path 3. Create a new geometry node group modifier on the default cube 4. Hover over the "Hair" menu entries several times The menu might show a random (shader) node group or blender will crash outright. If the crash does not happen, it might happen after restarting blender, as it seems to have something to do with loading assets in the geometry node editor [Test Asset](https://projects.blender.org/attachments/09929e02-71c3-4326-8506-829ee97291a0) ![Image](https://projects.blender.org/attachments/c2431e38-27c4-4b63-be6b-0780fc28210f)
Dvorakir added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-02-19 15:15:28 +01:00

Probably a related crash.

Freshly build from git on Arch Linux.

"Segfault" when hovering GN "Add" menu:

image
Terminal output:

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string: construction from null is not valid
Abgebrochen (Speicherabzug geschrieben)

Bug is at least 5 days old.

Probably a related crash. Freshly build from git on Arch Linux. "Segfault" when hovering GN "Add" menu: ![image](/attachments/c9365d97-c7cc-4be1-834c-32a3707cc254) Terminal output: ``` terminate called after throwing an instance of 'std::logic_error' what(): basic_string: construction from null is not valid Abgebrochen (Speicherabzug geschrieben) ``` Bug is at least 5 days old.
351 KiB
Member

Hi, looks same as #104782, so closing this ticket.
Feel free to comment if there is misunderstanding.
Thanks for the report.

Hi, looks same as #104782, so closing this ticket. Feel free to comment if there is misunderstanding. Thanks for the report.
Pratik Borhade added
Status
Duplicate
and removed
Status
Needs Triage
labels 2023-02-21 07:30:39 +01:00
Author

Since #104782 was closed for missing steps to reproduce, I'm reopening this issue.

I'm still having the crash happen in the latest 3.5 beta, and now that the essentials library is included with blender, it is even easier to reproduce:

  1. add the poly haven asset library to blender (refer to the original post for how to download it)
  2. add a new geometry node group to the default cube
  3. open the add menu and go in and out of the Hair library a few times

I've included a video that shows the crash

Since #104782 was closed for missing steps to reproduce, I'm reopening this issue. I'm still having the crash happen in the latest 3.5 beta, and now that the essentials library is included with blender, it is even easier to reproduce: 1. add the poly haven asset library to blender (refer to the original post for how to download it) 2. add a new geometry node group to the default cube 3. open the add menu and go in and out of the Hair library a few times I've included a video that shows the crash
Dvorakir reopened this issue 2023-03-07 15:41:22 +01:00
Blender Bot added
Status
Needs Triage
and removed
Status
Duplicate
labels 2023-03-07 15:41:22 +01:00
Member

Hi, thanks for reopening.

Use the add-on to fetch the poly haven library (will be about 2-5 GB when fully downloaded)

Though downloading 2-5 GB of assets is not very reliable way for reproducing the bug.
cc @mano-wii

Hi, thanks for reopening. > Use the add-on to fetch the poly haven library (will be about 2-5 GB when fully downloaded) Though downloading 2-5 GB of assets is not very reliable way for reproducing the bug. cc @mano-wii
Author

Someone in the other report suggested it might happen when asset libraries get very large, so I did some testing and found that I can reproduce it even with a simple asset library consisting of the default blend file (containing assets) copied many many times.

With 1196 blend files in the asset library (the same number as the polyhaven library), i could easily reproduce the crash, but I also tested with 523 files and it would sometimes crash and other times show the wrong entries: image

I've attached the 523-file asset library

Someone in the other report suggested it might happen when asset libraries get very large, so I did some testing and found that I can reproduce it even with a simple asset library consisting of the default blend file (containing assets) copied many many times. With 1196 blend files in the asset library (the same number as the polyhaven library), i could easily reproduce the crash, but I also tested with 523 files and it would sometimes crash and other times show the wrong entries: ![image](/attachments/c2431e38-27c4-4b63-be6b-0780fc28210f) I've attached the 523-file asset library
Member

Thanks. I can now replicate the crash locally.

>	blender.exe!blender::asset_system::AssetRepresentation::get_name() Line 72	C++
 	blender.exe!AS_asset_representation_name_get(const AssetRepresentation * asset_handle) Line 145	C++
 	blender.exe!ED_asset_handle_get_name(const AssetHandle * asset) Line 23	C++
 	blender.exe!blender::ed::space_node::node_add_catalog_assets_draw(const bContext * C, Menu * menu) Line 190	C++
 	blender.exe!UI_menutype_draw(bContext * C, MenuType * mt, uiLayout * layout) Line 5905	C++
 	blender.exe!ui_item_menutype_func(bContext * C, uiLayout * layout, void * arg_mt) Line 2964	C++
 	blender.exe!ui_popup_menu_create::__l2::<lambda_1>::operator()(bContext * C, uiLayout * layout) Line 437	C++
 	[External Code]	
 	blender.exe!ui_block_func_POPUP(bContext * C, uiPopupBlockHandle * handle, void * arg_pup) Line 230	C++
 	blender.exe!ui_popup_block_refresh(bContext * C, uiPopupBlockHandle * handle, ARegion * butregion, uiBut * but) Line 566	C++
 	blender.exe!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 796	C++
 	blender.exe!ui_popup_menu_create(bContext * C, ARegion * butregion, uiBut * but, const char * title, std::function<void __cdecl(bContext *,uiLayout *)> menu_func) Line 418	C++
 	blender.exe!ui_popup_menu_create(bContext * C, ARegion * butregion, uiBut * but, void(*)(bContext *, uiLayout *, void *) menu_func, void * arg) Line 438	C++
 	blender.exe!ui_block_open_begin(bContext * C, uiBut * but, uiHandleButtonData * data) Line 4246	C++
 	blender.exe!button_activate_state(bContext * C, uiBut * but, uiHandleButtonState state) Line 8359	C++
 	blender.exe!ui_handle_button_event(bContext * C, const wmEvent * event, uiBut * but) Line 9192	C++
 	blender.exe!ui_handle_menu_button(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu) Line 10110	C++
 	blender.exe!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 10753	C++
 	blender.exe!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 11244	C++
 	blender.exe!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 11191	C++
 	blender.exe!ui_popup_handler(bContext * C, const wmEvent * event, void * userdata) Line 11470	C++
 	blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, const bool always_pass) Line 808	C++
 	blender.exe!wm_handlers_do_intern(bContext * C, wmWindow * win, wmEvent * event, ListBase * handlers) Line 3297	C++
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3414	C++
 	blender.exe!wm_event_do_handlers(bContext * C) Line 4015	C++
 	blender.exe!WM_main(bContext * C) Line 644	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 588	C
Thanks. I can now replicate the crash locally. ```lines=10 > blender.exe!blender::asset_system::AssetRepresentation::get_name() Line 72 C++ blender.exe!AS_asset_representation_name_get(const AssetRepresentation * asset_handle) Line 145 C++ blender.exe!ED_asset_handle_get_name(const AssetHandle * asset) Line 23 C++ blender.exe!blender::ed::space_node::node_add_catalog_assets_draw(const bContext * C, Menu * menu) Line 190 C++ blender.exe!UI_menutype_draw(bContext * C, MenuType * mt, uiLayout * layout) Line 5905 C++ blender.exe!ui_item_menutype_func(bContext * C, uiLayout * layout, void * arg_mt) Line 2964 C++ blender.exe!ui_popup_menu_create::__l2::<lambda_1>::operator()(bContext * C, uiLayout * layout) Line 437 C++ [External Code] blender.exe!ui_block_func_POPUP(bContext * C, uiPopupBlockHandle * handle, void * arg_pup) Line 230 C++ blender.exe!ui_popup_block_refresh(bContext * C, uiPopupBlockHandle * handle, ARegion * butregion, uiBut * but) Line 566 C++ blender.exe!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 796 C++ blender.exe!ui_popup_menu_create(bContext * C, ARegion * butregion, uiBut * but, const char * title, std::function<void __cdecl(bContext *,uiLayout *)> menu_func) Line 418 C++ blender.exe!ui_popup_menu_create(bContext * C, ARegion * butregion, uiBut * but, void(*)(bContext *, uiLayout *, void *) menu_func, void * arg) Line 438 C++ blender.exe!ui_block_open_begin(bContext * C, uiBut * but, uiHandleButtonData * data) Line 4246 C++ blender.exe!button_activate_state(bContext * C, uiBut * but, uiHandleButtonState state) Line 8359 C++ blender.exe!ui_handle_button_event(bContext * C, const wmEvent * event, uiBut * but) Line 9192 C++ blender.exe!ui_handle_menu_button(bContext * C, const wmEvent * event, uiPopupBlockHandle * menu) Line 10110 C++ blender.exe!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 10753 C++ blender.exe!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 11244 C++ blender.exe!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 11191 C++ blender.exe!ui_popup_handler(bContext * C, const wmEvent * event, void * userdata) Line 11470 C++ blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, const bool always_pass) Line 808 C++ blender.exe!wm_handlers_do_intern(bContext * C, wmWindow * win, wmEvent * event, ListBase * handlers) Line 3297 C++ blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3414 C++ blender.exe!wm_event_do_handlers(bContext * C) Line 4015 C++ blender.exe!WM_main(bContext * C) Line 644 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 588 C ```
Author

Closing this as the issue is no longer present the latest build, probably fixed by a958ae36e8

Closing this as the issue is no longer present the latest build, probably fixed by a958ae36e8cbe687c77f77b375a2dd21c01d271d
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-03-17 04:16:07 +01:00
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
3 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#104952
No description provided.