Understanding invalid memory pointer ThreadsafeLinearAllocator error messages?

During Play Mode, I am getting three error messages, followed by one warning.

Error1

Assertion failed on expression: '!params || ((params->vertexCount * params->stride) + params->vertexOffset) <= (chunk->writtenVertices * chunk->stride)'

Error2

Assertion failed on expression: '!chunk->indexed || !params || params->indexCount <= chunk->writtenIndices'

Error3

Invalid memory pointer was detected in ThreadsafeLinearAllocator::smile:eallocate!

Warning

Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak

There is no additional information, so I am a bit lost as to where these are coming from, and why? Could this just be the Unity Editor Scene tab? Unity 5.5?

Seems to appear randomly during Play. I am currently unaware if this actually causes any visible problems in the game.

I have the same issue.
Did you happen to come across a solution Carter?

I believe it was an error with the editor, that’s all. Nothing that will effect the build, and actually nothing that even effected the game (from what I could tell).

I am unable to confirm this though, but I haven’t had any problem since, and it ‘seemed to go away’ when I hid the Scene tab for those brief moments I kept repeatedly getting this error. Like I said though, I can’t confirm this.

I haven’t seen the error since the time of the OP. After quiting & turning off my computer, probably changing scenes & just moving onward, the error stopped appearing. Since then, I’ve also had a fresh install of Windows 10 & thus reinstalled Unity 5.5, from an unrelated issue. If the problem returns, I will post.

I can confirm this issue doesn’t just happen in the editor. This is in a crash report of a player of my game:

Invalid memory pointer was detected in ThreadsafeLinearAllocator::smile:eallocate!
(Filename:  Line: 223)

Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak
(Filename:  Line: 370)

Can anyone submit a bug with a minimal repro?

That error can potentially happen when using dynamic geometry, such as particles, lines, trails, sprites etc. but I’m not sure that it’s something we already have a bug report for, so it would be great if someone could provide one.

Replying with the case number afterwards too is very helpful :slight_smile:

I submitted 868528.

2 Likes

Today I had the same log just before crash:

Invalid memory pointer was detected in ThreadsafeLinearAllocator::smile:eallocate!

(Filename: Line: 223)

Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak

(Filename: Line: 370)

I will submit it tommorow.

Since 5.5.0 my game crashes a lot on Standalone/PC (tested on 5.5.0f3 p1,p2,p3,p4 on 32 and 64 bit version)
My game uses Daikon Forge so it often creates dynamic meshes to render UI.

Same here already submitted with Project.

It only comes on my Server Build which runs on a Debian Server.
Webgl or Editor didnt have this Problem.

https://fogbugz.unity3d.com/default.asp?869878_6cm1379f2hv99sme

and my case with Invalid memory pointer was detected in ThreadsafeLinearAllocator
https://fogbugz.unity3d.com/default.asp?870887_rgnc8psp0m8mt35j
just from one day:
2922053--215859--upload_2017-1-16_9-32-51.png

Getting this error when running unity application on a single core server, but if I run it on a dual core server - the error just magically disappears.

Anything new on this ?

Unity QA reported back to me that this should be solved in Unity 5.6.

2 Likes

Still having this in 5.6.0b3 when all I have added to the project is Valve’s SteamVR plugin

Can any Unity devs suggest a workaround for this issue in the meantime, or some hints as to what is causing this?

I have this log when I use dynamic mesh too, I have to create a kingdom borderline mesh for my tile based map.

Can anyone else report this problem as a bug? Make sure to include project and reproduction steps.

After doing that, please post bug number here, so we can find it faster.

I have come across the same error a few times now but it doesn’t seem to associate with a specific action. All I can deduce that this happened after something went wrong with Collaborate and it didn’t want to download one of the scripts after my partner and I were working on it. He updated and pushed, and I updated the script then asked to pull. It gave me a warning and I chose the server’s version but it never downloaded it and had to delete the project and download it from the cloud.

My other guess is that it has to do with for loops. I was adding something in an array in a nested for loop when it happened.

As per your request here is bug number: 887574

I’m on Unity 5.5.0f3 and I get this string reported as a warning message every time I start my game. I’ll get it a few dozen times if I play for a few minutes. It’s not a minimal reproduction, but do you need another example?

Edit: this string - Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak

Unity QA got back to me saying this issue is fixed in 5.6.0b10 and on.

Will this be getting into 5.5.x cycle? We also have the issue (5.5.1p4), but aren’t on 5.6.0 yet.