Crash on (curve) Alembic file import #99854
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#99854
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On latest 3.3 alpha builds, both on OsX and Windows, I am getting a crash on Import of a curve alembic file (just do a File>Import>Alembic on it).
This maybe started happening two weeks ago (I think it worked fine on a build from 6/28, but crashed on a build from 6/30 and there onward).
Pretty sure it is related to some internal conversion to the new curve type. Here is the stack trace from the crash (on today's build).
blender.exe :0x00007FF6FB945BA0 customData_add_layer__internal C:\Users\chery\blender-git\blender\source\blender\blenkernel\intern\customdata.cc:2794
blender.exe :0x00007FF6FB946940 CustomData_add_layer_named C:\Users\chery\blender-git\blender\source\blender\blenkernel\intern\customdata.cc:2824
blender.exe :0x00007FF6FBA245F0 blender::bke::CurvesGeometry::nurbs_orders_for_write C:\Users\chery\blender-git\blender\source\blender\blenkernel\intern\curves_geometry.cc:405
blender.exe :0x00007FF6FBA2FDE0 <lambda_ca479d998cf15eb7bb9c4e8c447e911d>::operator() C:\Users\chery\blender-git\blender\source\blender\blenkernel\intern\curve_legacy_convert.cc:172
Try with this simple abc file (exported from Houdini):
crashTest.abc
(Just to be clear, start from an empty blender session and simply do File>Import>Alembic on that file)
Added subscriber: @Christophe-Hery
Added subscriber: @mod_moder
Please complete your report form.
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Needs User Info'
Thanks for the report. Attached alembic loads fine here.
Can you check again in latest 3.3 build: https://builder.blender.org/download/daily
Confirming it crashes with today's official experimental 3.3.0 alpha build from blender.org.
(Happens both on Windows, in OptiX, Cuda and CPU mode, as well as on OsX)
Full stack from it (Windows build):
Blender 3.3.0, Commit date: 2022-07-18 22:26, Hash
135e530356
bpy.context.space_data.system_bookmarks_active = 3 # Property
bpy.ops.wm.alembic_import(filepath="C:\Users\chery\Downloads\crashTest.abc", relative_path=True, as_background_job=True) # Operator
backtrace
Exception Record:
ExceptionCode : EXCEPTION_ACCESS_VIOLATION
Exception Address : 0x00007FF6172265A6
Exception Module : blender.exe
Exception Flags : 0x00000000
Exception Parameters : 0x2
Stack trace:
blender.exe :0x00007FF617226210 customData_add_layer__internal
blender.exe :0x00007FF617226FB0 CustomData_add_layer_named
blender.exe :0x00007FF617304C60 blender::bke::CurvesGeometry::nurbs_orders_for_write
blender.exe :0x00007FF617310450 <lambda_ca479d998cf15eb7bb9c4e8c447e911d>::operator()
blender.exe :0x00007FF61730FB10 tbb::interface9::internal::dynamic_grainsize_mode<tbb::interface9::internal::adaptive_mode<tbb::int
blender.exe :0x00007FF6173112C0 tbb::interface9::internal::start_for<tbb::blocked_range<__int64>,<lambda_d5d1ad793f9a2379792c00089a
tbb.dll :0x00007FFE48EBF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll :0x00007FFE48EBF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll :0x00007FFE48EBF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire
blender.exe :0x00007FF61730ECA0 blender::FunctionRef<void __cdecl(blender::IndexMask)>::callback_fn<<lambda_3df9691e523016cb0bf643a
blender.exe :0x00007FF6173DB730 <lambda_4790674753a38efa8f1b70eac0f18483>::operator()
blender.exe :0x00007FF6173DD140 blender::bke::curves::foreach_curve_by_type
blender.exe :0x00007FF6173109C0 blender::bke::curve_legacy_to_curves
blender.exe :0x00007FF617203280 curve_calc_modifiers_post
blender.exe :0x00007FF617203FE0 evaluate_curve_type_object
blender.exe :0x00007FF617205CC0 BKE_displist_make_curveTypes
blender.exe :0x00007FF6172A6F50 BKE_object_handle_data_update
blender.exe :0x00007FF6172A6DF0 BKE_object_eval_uber_data
blender.exe :0x00007FF617520410 blender::deg::
anonymous namespace'::evaluate_node blender.exe :0x00007FF6175203C0 blender::deg::
anonymous namespace'::deg_task_run_funcblender.exe :0x00007FF61C3F65E0 tbb::internal::function_task::execute
tbb.dll :0x00007FFE48EBF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll :0x00007FFE48EBF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire
blender.exe :0x00007FF617E95E60 tbb::internal::task_group_base::wait
blender.exe :0x00007FF61751FF40 blender::deg::deg_evaluate_on_refresh
blender.exe :0x00007FF617174B60 BKE_scene_graph_update_for_newframe
blender.exe :0x00007FF6174329B0 wm_event_do_notifiers
blender.exe :0x00007FF6174176A0 WM_main
blender.exe :0x00007FF6165112A0 main
blender.exe :0x00007FF61C5EFF70 __scrt_common_main_seh
KERNEL32.DLL :0x00007FFE5BA17020 BaseThreadInitThunk
ntdll.dll :0x00007FFE5BDE2630 RtlUserThreadStart
This crash, similar to dereferenced memory, can be caused depending on the garbage in the memory. To check, you need to run the program several times. I can get 1 correct out of 3 times and 2 failures
As I said also, this Alembic file did not generate any crash on fresh builds from master branch source from 6/28, but then crashes started happening from 6/30 on (though I did not test/rebuild on 6/29).
Try to open the file several times, undo the action or reopen the program and do it
The whole beta reproduces the error, from the versions that I have
Exactly. These are likely due to some relatively recent code changes in master branch (between 6/28 and 6/30).
Changed status from 'Needs User Info' to: 'Needs Triage'
Changed status from 'Needs Triage' to: 'Confirmed'
Can confirm the crash. Looks like a regression (Will check later today)
Note that the crash is different on a build from source today (or maybe there is an earlier one masking the one we had):
backtrace
Exception Record:
ExceptionCode : EXCEPTION_INT_DIVIDE_BY_ZERO
Exception Address : 0x00007FF6CCC4AA5B
Exception Module : blender.exe
Exception Flags : 0x00000000
Exception Parameters : 0x0
Stack trace:
blender.exe :0x00007FF6CCC4A8D0 blender::bke::curves::nurbs::interpolate_to_evaluated_rational<blender::vec_base<float,3> > C:\Users\chery\blender-git\blender\source\blender\blenkernel\intern\curve_nurbs.cc:220
blender.exe :0x00007FF6CCC4B750 <lambda_c144d0f2bd0621d674c5d0c1a3302cb9>::operator() C:\Users\chery\blender-git\blender\source\blender\blenlib\BLI_cpp_type.hh:733
blender.exe :0x00007FF6CCC4C0A0 blender::bke::curves::nurbs::interpolate_to_evaluated C:\Users\chery\blender-git\blender\source\blender\blenkernel\intern\curve_nurbs.cc:253
blender.exe :0x00007FF6CCB67410 <lambda_55c63396dcee5edebd0e7917a73cf12c>::operator() C:\Users\chery\blender-git\blender\source\blender\blenkernel\intern\curves_geometry.cc:676
blender.exe :0x00007FF6CCB622F0 tbb::interface9::internal::dynamic_grainsize_mode<tbb::interface9::internal::adaptive_mode<tbb::int C:\Users\chery\blender-git\lib\win64_vc15\tbb\include\tbb\partitioner.h:442
blender.exe :0x00007FF6CCB727E0 tbb::interface9::internal::start_for<tbb::blocked_range<__int64>,<lambda_dec9a4ca56e389c6d7813b79c1 C:\Users\chery\blender-git\lib\win64_vc15\tbb\include\tbb\parallel_for.h:143
tbb.dll :0x00007FFE520EF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll :0x00007FFE520EF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll :0x00007FFE520E4FD0 tbb::interface7::internal::isolate_within_arena
tbb.dll :0x00007FFE520EA120 tbb::task_scheduler_init::terminate
tbb.dll :0x00007FFE520ED800 tbb::thread_bound_filter::try_process_item
tbb.dll :0x00007FFE520ED800 tbb::thread_bound_filter::try_process_item
ucrtbase.dll :0x00007FFE59B61B20 configthreadlocale
KERNEL32.DLL :0x00007FFE5BA17020 BaseThreadInitThunk
ntdll.dll :0x00007FFE5BDE2630 RtlUserThreadStart
This issue was referenced by
ada6012518
Changed status from 'Confirmed' to: 'Resolved'
Thanks. Confirming this is fixed, both crashes, both regressions.