![]() |
Bug / Crash Crash Related to CustomEmitterShape - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html) +--- Thread: Bug / Crash Crash Related to CustomEmitterShape (/thread-4498.html) |
Crash Related to CustomEmitterShape - nonnamed - 25-05-2025 I would like to report a crash issue that I discovered with a specific setting. If this has already been reported or explained elsewhere, I apologize in advance. When creating a CustomEmitterShape, if an EmitPoint added to the distribution has a direction of Vector2.zero, a crash occurs in the Compute BackEnd. However, it runs correctly in the Burst BackEnd. Please note that I am not confident in English, so I used ChatGPT to help write this message. RE: Crash Related to CustomEmitterShape - josemendez - 26-05-2025 (25-05-2025, 05:01 AM)nonnamed Wrote: I would like to report a crash issue that I discovered with a specific setting. Hi! Thanks for reporting this! the direction of emission points is assumed to be a normalized vector, ie. have a length of 1. Creating a custom shape and passing a vector of zero length might lead to division by zero issues down the pipeline, will add an explicit check for this case to improve robustness. kind regards, |