Skip to content

Assertion failed on expression: 'ps->array_size()' is still reproduced at v4.7.0 #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LenbaSun opened this issue Apr 8, 2025 · 9 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@LenbaSun
Copy link

LenbaSun commented Apr 8, 2025

NOTE: Your issue may already be reported! Please search on the issue tracker before creating one.

Describe the bug

This bug still exits at v4.7.0
#278 (comment)

To Reproduce

Same steps this person mentioned
#278 (comment)

Expected behavior
No assertion

Environment (please complete the following information):

  • Version 4.7.0
  • Platform: Editor(Windows/Mac), Standalone(Windows/Mac)
  • Unity version: 2022.3.56f1
  • Build options: Not built
@LenbaSun LenbaSun added the bug Something isn't working label Apr 8, 2025
@mob-sakai
Copy link
Owner

Thank you for your reporting!
Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?
Of course, you don't need to include any secret assets from your project. Feel free to use free assets instead.

repos

@mob-sakai
Copy link
Owner

@mitay-walle said in the issue:

I've done more tests and find out that in my case reason was in Noise module + prewarm.
No specific parameters, but module enabling itself.
only disabling noise or prewarm helps.

Do this advice help you?

@LenbaSun
Copy link
Author

LenbaSun commented Apr 9, 2025

Thanks for your reply.
Here is the minimal project prj_ui_particle_report.zip ,

reproduce by the following steps:

  1. Open Assets/Scenes/SampleScene.unity.
  2. Press play button to enter play mode.
  3. Press play button to exit play mode.
  4. Show assertion error messages on the console.
  • Play mode screenshot
    Image

  • Console messages screenshot
    Image

@mob-sakai
Copy link
Owner

Thank you!

@LenbaSun
Copy link
Author

LenbaSun commented Apr 9, 2025

@mitay-walle said in the issue:

I've done more tests and find out that in my case reason was in Noise module + prewarm.
No specific parameters, but module enabling itself.
only disabling noise or prewarm helps.

Do this advice help you?

Yes, disabling either prewarm or the noise module will stop the assertion from happening. But prewarm is a really common feature, and it's hard for me to tell artists not to use it.

In my current project, a lot of particle systems have already been created, and we need to upgrade the UI particle plugin to fix some issues.

If we disable prewarm, that would mean going back to review the visual output of every single particle system and tweaking them again—which is extremely difficult and pretty much not an option.

@mob-sakai
Copy link
Owner

mob-sakai commented Apr 9, 2025

Umm, the issue is not reproduced on my environment...

Here is the minimal project prj_ui_particle_report.zip ,

  • 2022.3.56f1 (Apple sillicon/Windows)
  • Editor(Mac/Windows), Standalone(Mac/Windows)
  • Mac OSX 14.7.5 M1 Max/Windows 11

@LenbaSun
Copy link
Author

LenbaSun commented Apr 9, 2025

Umm, the issue is not reproduced on my environment...

Here is the minimal project prj_ui_particle_report.zip ,

  • 2022.3.56f1 (Apple sillicon/Windows)
  • Editor(Mac/Windows), Standalone(Mac/Windows)
  • Mac OSX 14.7.5 M1 Max/Windows 11

That sounds frustrating.............T_T

@mob-sakai mob-sakai added the help wanted Extra attention is needed label Apr 9, 2025
@mob-sakai
Copy link
Owner

By the way, if you update UIParticle to the latest version (v4.11.2) in your environment, does this issue get resolved?

@LenbaSun
Copy link
Author

By the way, if you update UIParticle to the latest version (v4.11.2) in your environment, does this issue get resolved?

The good news is that this issue does not occur in version 4.11.2.
However, after upgrading to 4.11.2, another issue appears — the size of the particles changes.
The attached images and mini-sample projects show a comparison between the two.

4.11.2 snapshot & mini-project

Image

prj_ui_particle_report_scale_v4_11_2.zip

4.7.0 snapshot & mini-project

Image

prj_ui_particle_report_scale_v4_7_0.zip

Steps to reproduce in the sample project:

  1. Open Assets/Scenes/SampleScene.unity.
  2. You can directly see the size difference between the two in Editor mode, or enter Play mode by pressing Play — the size difference is visible in both modes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants