Access violation when running multiple quick liquid bakes (Python API) #99305

Open
opened 2022-06-30 21:42:17 +02:00 by Marc · 5 comments

System Information
Operating system: Windows 10

Blender Version
Broken: 3.3 alpha, 3.3, 3.4 alpha, 3.4
Worked: Not any recent releases

Short description of error
Seems related to https://developer.blender.org/T98427 , but the fix for that issue did not fix this.
Access violation when running multiple quick liquid bakes

# backtrace
Exception Record:

ExceptionCode         : EXCEPTION_ACCESS_VIOLATION
Exception Address     : 0x00007FF9DE2B9224
Exception Module      : python310.dll
Exception Flags       : 0x00000000
Exception Parameters  : 0x2
	Parameters[0] : 0x0000000000000000
	Parameters[1] : 0x0000000000000008


Stack trace:
python310.dll       :0x00007FF9DE2B9220  PyDict_GetItem_KnownHash
python310.dll       :0x00007FF9DE2CF200  PyFrame_GetBack
python310.dll       :0x00007FF9DE430410  PyRun_FileExFlags
python310.dll       :0x00007FF9DE430410  PyRun_FileExFlags
python310.dll       :0x00007FF9DE430270  PyRun_StringFlags
blender.exe         :0x00007FF64D0F4E60  MANTA::runPythonString
blender.exe         :0x00007FF64D0DAF70  MANTA::~MANTA
blender.exe         :0x00007FF64D0DB340  MANTA::`vector deleting destructor'
blender.exe         :0x00007FF6484EB4D0  BKE_fluid_modifier_freeDomain
blender.exe         :0x00007FF6484EB4A0  BKE_fluid_modifier_free
blender.exe         :0x00007FF648274A00  BKE_modifier_free_ex
blender.exe         :0x00007FF648488760  BKE_object_free_modifiers
blender.exe         :0x00007FF6484834A0  object_free_data
blender.exe         :0x00007FF6487EB890  blender::deg::deg_free_copy_on_write_datablock
blender.exe         :0x00007FF6487ECA40  blender::deg::IDNode::destroy
blender.exe         :0x00007FF6487E1F70  blender::deg::Depsgraph::clear_id_nodes
blender.exe         :0x00007FF6487E21E0  DEG_graph_free
blender.exe         :0x00007FF64D64FA80  BLI_ghash_free
blender.exe         :0x00007FF648450510  scene_free_data
blender.exe         :0x00007FF64846F120  BKE_id_free_ex
blender.exe         :0x00007FF64826E980  BKE_main_free
blender.exe         :0x00007FF6482628F0  BKE_blender_free
blender.exe         :0x00007FF6486F1AB0  WM_exit_ex
blender.exe         :0x00007FF6486F1A60  WM_exit
blender.exe         :0x00007FF6477F1260  main
blender.exe         :0x00007FF64D8788C0  __scrt_common_main_seh
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Threads:
Thread : 00004eb4
ntdll.dll           :0x00007FFA49C90780  ZwWaitForWorkViaWorkerFactory
ntdll.dll           :0x00007FFA49C42680  TpReleaseCleanupGroupMembers
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 000051dc
ntdll.dll           :0x00007FFA49C90780  ZwWaitForWorkViaWorkerFactory
ntdll.dll           :0x00007FFA49C42680  TpReleaseCleanupGroupMembers
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00004114
ntdll.dll           :0x00007FFA49C90780  ZwWaitForWorkViaWorkerFactory
ntdll.dll           :0x00007FFA49C42680  TpReleaseCleanupGroupMembers
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00004ab8
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
blender.exe         :0x00007FF64E410730  IlmThread_3_1::Semaphore::wait
blender.exe         :0x00007FF64E40FF40  IlmThread_3_1::ThreadPool::numThreads
blender.exe         :0x00007FF6479B3A10  std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 000033dc
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
blender.exe         :0x00007FF64E410730  IlmThread_3_1::Semaphore::wait
blender.exe         :0x00007FF64E40FF40  IlmThread_3_1::ThreadPool::numThreads
blender.exe         :0x00007FF6479B3A10  std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00005b3c
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
blender.exe         :0x00007FF64E410730  IlmThread_3_1::Semaphore::wait
blender.exe         :0x00007FF64E40FF40  IlmThread_3_1::ThreadPool::numThreads
blender.exe         :0x00007FF6479B3A10  std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 000044b0
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
blender.exe         :0x00007FF64E410730  IlmThread_3_1::Semaphore::wait
blender.exe         :0x00007FF64E40FF40  IlmThread_3_1::ThreadPool::numThreads
blender.exe         :0x00007FF6479B3A10  std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 000033f0
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
blender.exe         :0x00007FF64E410730  IlmThread_3_1::Semaphore::wait
blender.exe         :0x00007FF64E40FF40  IlmThread_3_1::ThreadPool::numThreads
blender.exe         :0x00007FF6479B3A10  std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 000031f8
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
blender.exe         :0x00007FF64E410730  IlmThread_3_1::Semaphore::wait
blender.exe         :0x00007FF64E40FF40  IlmThread_3_1::ThreadPool::numThreads
blender.exe         :0x00007FF6479B3A10  std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00004aa4
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
blender.exe         :0x00007FF64E410730  IlmThread_3_1::Semaphore::wait
blender.exe         :0x00007FF64E40FF40  IlmThread_3_1::ThreadPool::numThreads
blender.exe         :0x00007FF6479B3A10  std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 000049b8
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
blender.exe         :0x00007FF64E410730  IlmThread_3_1::Semaphore::wait
blender.exe         :0x00007FF64E40FF40  IlmThread_3_1::ThreadPool::numThreads
blender.exe         :0x00007FF6479B3A10  std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00005340
ntdll.dll           :0x00007FFA49C90780  ZwWaitForWorkViaWorkerFactory
ntdll.dll           :0x00007FFA49C42680  TpReleaseCleanupGroupMembers
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00002654
ntdll.dll           :0x00007FFA49C90780  ZwWaitForWorkViaWorkerFactory
ntdll.dll           :0x00007FFA49C42680  TpReleaseCleanupGroupMembers
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00004c64
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 000024a4
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00005664
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 000048c4
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00005b4c
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 00004eb0
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Thread : 0000446c
ntdll.dll           :0x00007FFA49C8CDB0  NtWaitForSingleObject
KERNELBASE.dll      :0x00007FFA47831A40  WaitForSingleObjectEx
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
tbb.dll             :0x00007FFA373BD800  tbb::thread_bound_filter::try_process_item
ucrtbase.dll        :0x00007FFA473D1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFA48397020  BaseThreadInitThunk
ntdll.dll           :0x00007FFA49C42630  RtlUserThreadStart


Loaded Modules :
0x00007FF647680000 3.3.0.0              blender.exe C:\Users\ecl25031\blender-3.3.0-alpha+master.4c3b984b3daa-windows.amd64-release\blender.pdb 
0x00007FFA49BF0000 10.0.19041.1741      ntdll.dll  
0x00007FFA48380000 10.0.19041.1741      KERNEL32.DLL  
0x00007FFA47810000 10.0.19041.1741      KERNELBASE.dll  
0x00007FFA48E00000 10.0.19041.546       WS2_32.dll  
0x00007FFA499D0000 10.0.19041.1706      RPCRT4.dll  
0x00007FFA47C50000 10.0.19041.1503      USER32.dll  
0x00007FFA47B10000 10.0.19041.1766      win32u.dll  
0x00007FFA373B0000                      tbb.dll  
0x00007FFA48790000 10.0.19041.1620      GDI32.dll  
0x00007FFA2BF10000                      tbbmalloc.dll  
0x00007FFA47B40000 10.0.19041.1706      gdi32full.dll  
0x00007FFA47310000 10.0.19041.789       msvcp_win.dll  
0x00007FFA473B0000 10.0.19041.789       ucrtbase.dll  
0x00007FFA48EA0000 10.0.19041.1682      ADVAPI32.dll  
0x00007FFA48440000 7.0.19041.546        msvcrt.dll  
0x00007FFA486F0000 10.0.19041.1586      sechost.dll  
0x00007FFA49040000 10.0.19041.1741      SHELL32.dll  
0x00007FFA48F50000 10.0.19041.1706      SHLWAPI.dll  
0x00007FFA2FB80000 14.29.30139.0        VCRUNTIME140.dll  
0x00007FFA477C0000 10.0.19041.1620      CFGMGR32.dll  
0x00007FFA15BF0000 14.29.30139.0        MSVCP140.dll  
0x00007FFA43A40000 14.29.30139.0        VCRUNTIME140_1.dll  
0x00007FFA47AE0000 10.0.19041.1023      bcrypt.dll  
0x00007FFA485C0000 10.0.19041.1202      ole32.dll  
0x00007FFA35C50000 10.0.19041.867       dbghelp.dll  
0x00007FFA48A40000 10.0.19041.1741      combase.dll  
0x00007FFA49870000 10.0.19041.546       PSAPI.DLL  
0x00007FFA49B00000 10.0.19041.1741      shcore.dll  
0x00007FFA484E0000 10.0.19041.546       IMM32.dll  
0x00007FFA03B30000 10.0.19041.1741      OPENGL32.dll  
0x00007FF9D3660000 9.0.0.0              openvdb.dll  
0x00007FF9D19D0000 59.18.100.0          avcodec-59.dll  
0x00007FF9F78D0000 59.16.100.0          avformat-59.dll  
0x00007FFA2D720000 59.4.100.0           avdevice-59.dll  
0x00007FF9F8750000 57.17.100.0          avutil-57.dll  
0x00007FFA48970000 10.0.19041.985       OLEAUT32.dll  
0x00007FF9FBCC0000 1.21.1.0             OpenAL32.dll  
0x0000000070440000 1.0.28.0             libsndfile-1.dll  
0x00007FFA0FA30000 6.4.100.0            swscale-6.dll  
0x00007FF9F7770000 2.0.20.0             SDL2.dll  
0x000000006ACC0000                      libgmp-10.dll  
0x00007FFA41050000                      libgmpxx.dll  
0x00007FFA47F10000 10.0.19041.1741      SETUPAPI.dll  
0x00007FFA40FF0000                      tbbmalloc_proxy.dll  
0x00007FF9DE1A0000 3.10.2150.1013       python310.dll  
0x00007FFA30660000 6.10.19041.1110      COMCTL32.dll  
0x00007FFA2AB80000 10.0.19041.1         AVIFIL32.dll  
0x00007FFA415D0000 10.0.19041.546       VERSION.dll  
0x00007FFA44B10000 10.0.19041.746       dwmapi.dll  
0x00007FFA2A530000 10.0.19041.1741      GLU32.dll  
0x0000000070680000                      libfftw3-3.dll  
0x00007FFA29450000 4.3.100.0            swresample-4.dll  
0x00007FFA3D230000 10.0.19041.546       Secur32.dll  
0x00007FFA2EAF0000 10.0.19041.1         AVICAP32.dll  
0x00007FFA39CA0000 10.0.19041.546       WINMM.dll  
0x00007FFA28820000 10.0.19041.1         MSACM32.dll  
0x00007FFA291F0000 10.0.19041.1         MSVFW32.dll  
0x00007FFA37020000 10.0.19041.1         winmmbase.dll  
0x00007FFA47200000 10.0.19041.1586      SSPICLI.DLL  
0x00007FFA45AD0000 10.0.19041.546       kernel.appcore.dll  
0x00007FFA452E0000 10.0.19041.1741      windows.storage.dll  
0x00007FFA46D70000 10.0.19041.1682      Wldp.dll  
0x00007FFA47250000 10.0.19041.844       profapi.dll  
0x00007FFA47610000 10.0.19041.1415      bcryptPrimitives.dll  
0x00007FFA48510000 2001.12.10941.16384  clbcatq.dll  
0x00007FFA3FB50000 10.0.19041.1503      MMDevApi.dll  
0x00007FFA470C0000 10.0.19041.1620      DEVOBJ.dll  
0x00007FFA3FC00000 10.0.19041.1741      AUDIOSES.DLL  
0x00007FFA468E0000 10.0.19041.546       powrprof.dll  
0x00007FFA46750000                      UMPDC.dll  
0x00007FFA44880000 10.0.19041.1620      uxtheme.dll  
0x00007FFA2D140000 10.0.19041.1566      MPR.dll  
0x00007FFA415E0000 10.0.19041.546       drprov.dll  
0x00007FFA45F70000 10.0.19041.546       WINSTA.dll  
0x00007FFA2ED10000 10.0.19041.1566      ntlanman.dll  
0x00007FFA2EB50000 10.0.19041.546       davclnt.dll  
0x00007FFA22F70000 10.0.19041.546       DAVHLPR.dll  
0x00007FFA46500000 10.0.19041.1645      wkscli.dll  
0x00007FFA27030000 10.0.19041.546       cscapi.dll  
0x00007FFA467B0000 10.0.19041.546       netutils.dll  
0x00007FFA46CC0000 10.0.19041.546       CRYPTSP.dll  
0x00007FFA462D0000 10.0.19041.1052      rsaenh.dll  
0x00007FFA46CE0000 10.0.19041.546       CRYPTBASE.dll  
0x000002627AAF0000 3.10.2150.1013       python3.DLL  
0x00007FFA2CA10000 3.10.2150.1013       _bz2.pyd  
0x00007FFA28ED0000 3.10.2150.1013       _lzma.pyd  
0x00007FFA2C980000 3.10.2150.1013       _socket.pyd  
0x00007FFA46770000 10.0.19041.546       IPHLPAPI.DLL  
0x00007FFA40E90000 3.10.2150.1013       select.pyd  

# Python backtrace

Exact steps for others to reproduce the error
Put this ins a file called test.py


import bpy

CUBE = bpy.data.objects["Cube"]
CUBE.select_set(True)
bpy.ops.object.quick_liquid()
bpy.ops.fluid.bake_all()

bpy.ops.object.select_all(action='DESELECT') 
mesh = bpy.data.meshes.new('Basic_Cube')
CUBE2 = bpy.data.objects.new("Cube2", mesh)
CUBE2 = bpy.data.objects["Cube2"]
bpy.context.scene.collection.objects.link(CUBE2)
CUBE2.select_set(True) 
bpy.ops.object.quick_liquid()
bpy.ops.fluid.bake_all()

then, in terminal, run:

blender -b --python test.py 
**System Information** Operating system: Windows 10 **Blender Version** Broken: 3.3 alpha, 3.3, 3.4 alpha, 3.4 Worked: Not any recent releases **Short description of error** Seems related to https://developer.blender.org/T98427 , but the fix for that issue did not fix this. Access violation when running multiple quick liquid bakes ```lines=18 # backtrace Exception Record: ExceptionCode : EXCEPTION_ACCESS_VIOLATION Exception Address : 0x00007FF9DE2B9224 Exception Module : python310.dll Exception Flags : 0x00000000 Exception Parameters : 0x2 Parameters[0] : 0x0000000000000000 Parameters[1] : 0x0000000000000008 Stack trace: python310.dll :0x00007FF9DE2B9220 PyDict_GetItem_KnownHash python310.dll :0x00007FF9DE2CF200 PyFrame_GetBack python310.dll :0x00007FF9DE430410 PyRun_FileExFlags python310.dll :0x00007FF9DE430410 PyRun_FileExFlags python310.dll :0x00007FF9DE430270 PyRun_StringFlags blender.exe :0x00007FF64D0F4E60 MANTA::runPythonString blender.exe :0x00007FF64D0DAF70 MANTA::~MANTA blender.exe :0x00007FF64D0DB340 MANTA::`vector deleting destructor' blender.exe :0x00007FF6484EB4D0 BKE_fluid_modifier_freeDomain blender.exe :0x00007FF6484EB4A0 BKE_fluid_modifier_free blender.exe :0x00007FF648274A00 BKE_modifier_free_ex blender.exe :0x00007FF648488760 BKE_object_free_modifiers blender.exe :0x00007FF6484834A0 object_free_data blender.exe :0x00007FF6487EB890 blender::deg::deg_free_copy_on_write_datablock blender.exe :0x00007FF6487ECA40 blender::deg::IDNode::destroy blender.exe :0x00007FF6487E1F70 blender::deg::Depsgraph::clear_id_nodes blender.exe :0x00007FF6487E21E0 DEG_graph_free blender.exe :0x00007FF64D64FA80 BLI_ghash_free blender.exe :0x00007FF648450510 scene_free_data blender.exe :0x00007FF64846F120 BKE_id_free_ex blender.exe :0x00007FF64826E980 BKE_main_free blender.exe :0x00007FF6482628F0 BKE_blender_free blender.exe :0x00007FF6486F1AB0 WM_exit_ex blender.exe :0x00007FF6486F1A60 WM_exit blender.exe :0x00007FF6477F1260 main blender.exe :0x00007FF64D8788C0 __scrt_common_main_seh KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Threads: Thread : 00004eb4 ntdll.dll :0x00007FFA49C90780 ZwWaitForWorkViaWorkerFactory ntdll.dll :0x00007FFA49C42680 TpReleaseCleanupGroupMembers KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 000051dc ntdll.dll :0x00007FFA49C90780 ZwWaitForWorkViaWorkerFactory ntdll.dll :0x00007FFA49C42680 TpReleaseCleanupGroupMembers KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00004114 ntdll.dll :0x00007FFA49C90780 ZwWaitForWorkViaWorkerFactory ntdll.dll :0x00007FFA49C42680 TpReleaseCleanupGroupMembers KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00004ab8 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx blender.exe :0x00007FF64E410730 IlmThread_3_1::Semaphore::wait blender.exe :0x00007FF64E40FF40 IlmThread_3_1::ThreadPool::numThreads blender.exe :0x00007FF6479B3A10 std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _ ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 000033dc ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx blender.exe :0x00007FF64E410730 IlmThread_3_1::Semaphore::wait blender.exe :0x00007FF64E40FF40 IlmThread_3_1::ThreadPool::numThreads blender.exe :0x00007FF6479B3A10 std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _ ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00005b3c ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx blender.exe :0x00007FF64E410730 IlmThread_3_1::Semaphore::wait blender.exe :0x00007FF64E40FF40 IlmThread_3_1::ThreadPool::numThreads blender.exe :0x00007FF6479B3A10 std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _ ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 000044b0 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx blender.exe :0x00007FF64E410730 IlmThread_3_1::Semaphore::wait blender.exe :0x00007FF64E40FF40 IlmThread_3_1::ThreadPool::numThreads blender.exe :0x00007FF6479B3A10 std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _ ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 000033f0 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx blender.exe :0x00007FF64E410730 IlmThread_3_1::Semaphore::wait blender.exe :0x00007FF64E40FF40 IlmThread_3_1::ThreadPool::numThreads blender.exe :0x00007FF6479B3A10 std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _ ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 000031f8 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx blender.exe :0x00007FF64E410730 IlmThread_3_1::Semaphore::wait blender.exe :0x00007FF64E40FF40 IlmThread_3_1::ThreadPool::numThreads blender.exe :0x00007FF6479B3A10 std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _ ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00004aa4 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx blender.exe :0x00007FF64E410730 IlmThread_3_1::Semaphore::wait blender.exe :0x00007FF64E40FF40 IlmThread_3_1::ThreadPool::numThreads blender.exe :0x00007FF6479B3A10 std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _ ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 000049b8 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx blender.exe :0x00007FF64E410730 IlmThread_3_1::Semaphore::wait blender.exe :0x00007FF64E40FF40 IlmThread_3_1::ThreadPool::numThreads blender.exe :0x00007FF6479B3A10 std::thread::_Invoke<std::tuple<void (__cdecl usdBlender__pxrReserved__::HdRenderThread::*)(void) _ ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00005340 ntdll.dll :0x00007FFA49C90780 ZwWaitForWorkViaWorkerFactory ntdll.dll :0x00007FFA49C42680 TpReleaseCleanupGroupMembers KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00002654 ntdll.dll :0x00007FFA49C90780 ZwWaitForWorkViaWorkerFactory ntdll.dll :0x00007FFA49C42680 TpReleaseCleanupGroupMembers KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00004c64 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 000024a4 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00005664 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 000048c4 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00005b4c ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 00004eb0 ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Thread : 0000446c ntdll.dll :0x00007FFA49C8CDB0 NtWaitForSingleObject KERNELBASE.dll :0x00007FFA47831A40 WaitForSingleObjectEx tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item tbb.dll :0x00007FFA373BD800 tbb::thread_bound_filter::try_process_item ucrtbase.dll :0x00007FFA473D1B20 configthreadlocale KERNEL32.DLL :0x00007FFA48397020 BaseThreadInitThunk ntdll.dll :0x00007FFA49C42630 RtlUserThreadStart Loaded Modules : 0x00007FF647680000 3.3.0.0 blender.exe C:\Users\ecl25031\blender-3.3.0-alpha+master.4c3b984b3daa-windows.amd64-release\blender.pdb 0x00007FFA49BF0000 10.0.19041.1741 ntdll.dll 0x00007FFA48380000 10.0.19041.1741 KERNEL32.DLL 0x00007FFA47810000 10.0.19041.1741 KERNELBASE.dll 0x00007FFA48E00000 10.0.19041.546 WS2_32.dll 0x00007FFA499D0000 10.0.19041.1706 RPCRT4.dll 0x00007FFA47C50000 10.0.19041.1503 USER32.dll 0x00007FFA47B10000 10.0.19041.1766 win32u.dll 0x00007FFA373B0000 tbb.dll 0x00007FFA48790000 10.0.19041.1620 GDI32.dll 0x00007FFA2BF10000 tbbmalloc.dll 0x00007FFA47B40000 10.0.19041.1706 gdi32full.dll 0x00007FFA47310000 10.0.19041.789 msvcp_win.dll 0x00007FFA473B0000 10.0.19041.789 ucrtbase.dll 0x00007FFA48EA0000 10.0.19041.1682 ADVAPI32.dll 0x00007FFA48440000 7.0.19041.546 msvcrt.dll 0x00007FFA486F0000 10.0.19041.1586 sechost.dll 0x00007FFA49040000 10.0.19041.1741 SHELL32.dll 0x00007FFA48F50000 10.0.19041.1706 SHLWAPI.dll 0x00007FFA2FB80000 14.29.30139.0 VCRUNTIME140.dll 0x00007FFA477C0000 10.0.19041.1620 CFGMGR32.dll 0x00007FFA15BF0000 14.29.30139.0 MSVCP140.dll 0x00007FFA43A40000 14.29.30139.0 VCRUNTIME140_1.dll 0x00007FFA47AE0000 10.0.19041.1023 bcrypt.dll 0x00007FFA485C0000 10.0.19041.1202 ole32.dll 0x00007FFA35C50000 10.0.19041.867 dbghelp.dll 0x00007FFA48A40000 10.0.19041.1741 combase.dll 0x00007FFA49870000 10.0.19041.546 PSAPI.DLL 0x00007FFA49B00000 10.0.19041.1741 shcore.dll 0x00007FFA484E0000 10.0.19041.546 IMM32.dll 0x00007FFA03B30000 10.0.19041.1741 OPENGL32.dll 0x00007FF9D3660000 9.0.0.0 openvdb.dll 0x00007FF9D19D0000 59.18.100.0 avcodec-59.dll 0x00007FF9F78D0000 59.16.100.0 avformat-59.dll 0x00007FFA2D720000 59.4.100.0 avdevice-59.dll 0x00007FF9F8750000 57.17.100.0 avutil-57.dll 0x00007FFA48970000 10.0.19041.985 OLEAUT32.dll 0x00007FF9FBCC0000 1.21.1.0 OpenAL32.dll 0x0000000070440000 1.0.28.0 libsndfile-1.dll 0x00007FFA0FA30000 6.4.100.0 swscale-6.dll 0x00007FF9F7770000 2.0.20.0 SDL2.dll 0x000000006ACC0000 libgmp-10.dll 0x00007FFA41050000 libgmpxx.dll 0x00007FFA47F10000 10.0.19041.1741 SETUPAPI.dll 0x00007FFA40FF0000 tbbmalloc_proxy.dll 0x00007FF9DE1A0000 3.10.2150.1013 python310.dll 0x00007FFA30660000 6.10.19041.1110 COMCTL32.dll 0x00007FFA2AB80000 10.0.19041.1 AVIFIL32.dll 0x00007FFA415D0000 10.0.19041.546 VERSION.dll 0x00007FFA44B10000 10.0.19041.746 dwmapi.dll 0x00007FFA2A530000 10.0.19041.1741 GLU32.dll 0x0000000070680000 libfftw3-3.dll 0x00007FFA29450000 4.3.100.0 swresample-4.dll 0x00007FFA3D230000 10.0.19041.546 Secur32.dll 0x00007FFA2EAF0000 10.0.19041.1 AVICAP32.dll 0x00007FFA39CA0000 10.0.19041.546 WINMM.dll 0x00007FFA28820000 10.0.19041.1 MSACM32.dll 0x00007FFA291F0000 10.0.19041.1 MSVFW32.dll 0x00007FFA37020000 10.0.19041.1 winmmbase.dll 0x00007FFA47200000 10.0.19041.1586 SSPICLI.DLL 0x00007FFA45AD0000 10.0.19041.546 kernel.appcore.dll 0x00007FFA452E0000 10.0.19041.1741 windows.storage.dll 0x00007FFA46D70000 10.0.19041.1682 Wldp.dll 0x00007FFA47250000 10.0.19041.844 profapi.dll 0x00007FFA47610000 10.0.19041.1415 bcryptPrimitives.dll 0x00007FFA48510000 2001.12.10941.16384 clbcatq.dll 0x00007FFA3FB50000 10.0.19041.1503 MMDevApi.dll 0x00007FFA470C0000 10.0.19041.1620 DEVOBJ.dll 0x00007FFA3FC00000 10.0.19041.1741 AUDIOSES.DLL 0x00007FFA468E0000 10.0.19041.546 powrprof.dll 0x00007FFA46750000 UMPDC.dll 0x00007FFA44880000 10.0.19041.1620 uxtheme.dll 0x00007FFA2D140000 10.0.19041.1566 MPR.dll 0x00007FFA415E0000 10.0.19041.546 drprov.dll 0x00007FFA45F70000 10.0.19041.546 WINSTA.dll 0x00007FFA2ED10000 10.0.19041.1566 ntlanman.dll 0x00007FFA2EB50000 10.0.19041.546 davclnt.dll 0x00007FFA22F70000 10.0.19041.546 DAVHLPR.dll 0x00007FFA46500000 10.0.19041.1645 wkscli.dll 0x00007FFA27030000 10.0.19041.546 cscapi.dll 0x00007FFA467B0000 10.0.19041.546 netutils.dll 0x00007FFA46CC0000 10.0.19041.546 CRYPTSP.dll 0x00007FFA462D0000 10.0.19041.1052 rsaenh.dll 0x00007FFA46CE0000 10.0.19041.546 CRYPTBASE.dll 0x000002627AAF0000 3.10.2150.1013 python3.DLL 0x00007FFA2CA10000 3.10.2150.1013 _bz2.pyd 0x00007FFA28ED0000 3.10.2150.1013 _lzma.pyd 0x00007FFA2C980000 3.10.2150.1013 _socket.pyd 0x00007FFA46770000 10.0.19041.546 IPHLPAPI.DLL 0x00007FFA40E90000 3.10.2150.1013 select.pyd # Python backtrace ``` **Exact steps for others to reproduce the error** Put this ins a file called test.py ``` import bpy CUBE = bpy.data.objects["Cube"] CUBE.select_set(True) bpy.ops.object.quick_liquid() bpy.ops.fluid.bake_all() bpy.ops.object.select_all(action='DESELECT') mesh = bpy.data.meshes.new('Basic_Cube') CUBE2 = bpy.data.objects.new("Cube2", mesh) CUBE2 = bpy.data.objects["Cube2"] bpy.context.scene.collection.objects.link(CUBE2) CUBE2.select_set(True) bpy.ops.object.quick_liquid() bpy.ops.fluid.bake_all() ``` then, in terminal, run: ``` blender -b --python test.py ```
Author

Added subscriber: @MarcM0

Added subscriber: @MarcM0
Marc changed title from Access violation when running multiple quick liquid bakes to Access violation when running multiple quick liquid bakes (Python API) 2022-06-30 22:16:45 +02:00
Member

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

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

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Author

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Author

Hey, this is still an issue in 3.4. Any progress on the issue?

Hey, this is still an issue in 3.4. Any progress on the issue?
Philipp Oeser removed the
Interest
Python API
label 2023-02-10 09:04:25 +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
2 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#99305
No description provided.