Page MenuHome

Crash when calling particle_sytem.co_hair() on disabled particles
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows 10

Blender Version
Broken:

  • 2.81 official release
  • 2.82 18343c230d2c (buildbot)
  • 2.83 11df5443e5d0 (buildbot)

Short description of error

Blender crashes when the co_hair() method is called on the particle system in the attached file.

Exact steps for others to reproduce the error

  • Open
  • Press "Run Script"
  • Blender crashes

Event Timeline

Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Jan 27 2020, 12:52 PM
Richard Antalik (ISS) changed the subtype of this task from "Report" to "Bug".

Seems that your object doesn't have cache?

>	blender.exe!rna_ParticleSystem_co_hair(ParticleSystem * particlesystem, Object * object, int particle_no, int step, float * n_co) Line 366	C
 	blender.exe!ParticleSystem_co_hair_call(bContext * C, ReportList * reports, PointerRNA * _ptr, ParameterList * _parms) Line  5139	C
 	blender.exe!RNA_function_call(bContext * C, ReportList * reports, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 7594	C
 	blender.exe!pyrna_func_call(BPy_FunctionRNA * self, _object * args, _object * kw) Line 6148	C

particlesystem->pathcache was NULL

Brecht Van Lommel (brecht) renamed this task from Crash when calling particle_sytem.co_hair() to Crash when calling particle_sytem.co_hair() on disabled particles.Feb 3 2020, 11:29 AM

The particles are disabled for the viewport and have not been evaluated, so there is nothing that can be queried.

We can fix the crash, but to get the actual position the particles need to be enabled.

Fixing the crash is all I need. Thank you!