f < 0 || f > UINT_MAX error messages

I’m getting these errors in the console:

f < 0 || f > UINT_MAX

It doesn’t reference a line in my code, so I’m not really sure where to look. Does anyone know what this error means?

It could be a unity issue. What that error is saying is you have an ‘unsigned int’ which is greater than the unsigned int mat (UINT_MAX) or less than 0. Since the int is unsigned it cannot be negative.

Are you defining any uints? and are these uints getting super large? or < 0?

That sounds like something I had when upgrading a project from Unity 2.6 to Unity 3. The problem was a particle system where the min emission was -4 or something, which worked fine in 2.6, but 3.0 didn’t like (it won’t let you go below 0 when entering that number in Unity 3).

–Eric

Hi… Im getting a bug much like this, except it crashes unity (and the editor if running inside it). if I look in the log file I see this:

I found that disabling one of my particle effects stopped this crash, but havent identified what the problem parameter is, and just the particle effect by itself does not cause the crash it seems. I’ll commit it as some sort of bug but havent narrowed it down very well yet.