There is no stack trace, nothing, I can’t believe why editor developers leave error logs like this, who is it helping?
They are always spamming the console like crazy, in every project, unity 6000.0.40, or previous ones.
There can be hundreds of these literally. They are present for all our team members, yet I dont really see any posts on this issue.
They are very random and not sure whats the repro steps, thats why its not a bug report yet.
Maybe somebody figured this out?
As usual, try deleting the Library folder to see if that makes it go away. “End of file” could indicate a corrupt file, possibly an artifact in the Library.
Since you work in a team, ensure everyone is using the exact same Unity version down to the patch level (6000.0.40f1). Various issues can arise if devs on a team don’t give any consideration to versioning and everyone updating at the same time, including data corruption.
I’m guessing all of these are related, and something keeps bonkering your Library or even project assets.
Try disabling parallel imports for a while since any custom asset importer must take the necessary steps to be multithreading compatible (outlined in the manual) and I’m guessing that many of the store asset or custom importers don’t concern themselves with that.
I’m also consistently peeving about proper use of the AssetDatabase (primarily: don’t Refresh, use ImportAsset; don’t SaveAssets, use SaveAssetIfDirty). Usually it’s just a matter of performance and playing nice with your users but occassionally it could also corrupt assets.
For instance you cannot use ADB methods in static ctors, InitializeOnLoad methods and all but one AssetPostprocessor method (OnPostprocessAllAssets is where you can use it). Unity started logging these as errors in Unity 6 though but perhaps not all of them.
One of the issues was this (the corrupt file from VFX asset)
The stuck unity processes is still an issue.
is this only for test to check if this may be causing the issue? How can we investigate what is causing it even if errors stop after this? As we need the parallel imports for real development, otherwise it will be extremely slow I presume.
from [InitializeOnLoadMethod] (doesnt log any error here).
Our aim was to go over all the scriptable objects after each code recompile, or project startup. Don’t know of any alternative to InitializeOnLoadMethod unfortunately.
Yes for testing. If the issue goes away, check how much your project actually benefits from parallel imports in everyday use. Often its negligible. And then you should inspect all asset importers. The manual mentions the caveats I think.
I’m not sure if InitializeOnLoadMethod isn’t just fine. But it’s easy to bypass this by wrapping the code inside into:
EditorApplication.delayCall += () =>
{
// the original code goes here
}
This delays execution until after the first editor update. The callback doesn’t need to be unregistered, it’s automatically removed every time a delayCall gets invoked.