particles emit crash unity

hi all!
I’ve got an issue with unity 2017.2, so I decided to reinstall unity 2017.1 that worked well before today, and now the game crash when I emit the particles:
here is my code:

ParticleSystem m_particles;
ParticleSystem.EmitParams m_emitParams = new ParticleSystem.EmitParams();

void OnEnable()
{
    m_particles = GetComponent<ParticleSystem>();
    m_particles.Stop();
}

public void Emit()
{
    m_emitParams.position = position;
    m_emitParams.rotation = rotation;

    m_emitParams.startLifetime = lifetime;
    m_emitParams.startSize = size;
    m_emitParams.startColor = color;
    m_emitParams.randomSeed = randomSeed;

    m_particles.Emit(m_emitParams, 1);
}

when I call m_particles.Emit function unity creates an access violation…
I tried to put the function under try catch but no glue… ctd always

thanks in advance

Can you share crash dumps and log files?

It sounds like this issue Unity Issue Tracker - Unity crashes when emitting particles from script and using a Size module, if system has not been updated yet

Did you open your 2017.2 project with 2017.1 or reopen a backup? We do not support downgrading versions so its possible that something was updated in 2017.2 and is not supported in 2017.1.
Do you have a 2017.1 version of the project?

hi @karl_jones
seems like the issue you linked…
here is the dump, built checkout a previuos version, built with 2017.1

but a question: it’s ok that unity doesn’t support downgrade, but for example, when I upgraded to 2017.2, the only scripts changed were about the VR, that changed the Class to XR… if I go back correcting the errors, is not a good downgrade? also I removed the library and obj is not ok?

thanks in advance

3255308–250772–Crash_2017-10-16_153148.rar (29.8 KB)

Can you share gRallySim.exe that was used to generate the dmp?
Its not really the scripts that are a problem with downgrading but more the various asset files. If you have made a change and saved in 2017.2 then the related asset files(prefabs, scenes etc) will have been updated to the 2017.2 format which may have changed some properties/data types etc. Downgrading to 2017.1 can then cause issues as it has no understanding of newer versions and so can cause all sorts of issues. Particles have had quite a few changes so there is a good chance that this is what is happening.

thanks @karl_jones for your interest… I’m trying to create a little project with only this thing…
p.s. I’ve tried with an empty project downloading edy vehicle (like in the bug above) and it crashes like mine…

Sounds like a different issue then. Can you file a bug report with the small project that has the same issue?

thanks @karl_jones !
here is the example… I tried to add in the bug error but I’ve got some web issues…

3255487–250796–ParticleIssue.rar (39.8 KB)