ASSERTION FAILED: TLS ALLOCATOR ALLOC_TEMP_THREAD
今天碰到了类似的问题,不过是在Android下才出现的。
Same thing on 2017.3.0.f3 with android.
Reimport All didn't resolved the issue...
So I tested ton of things and one thing worked to me :
At the root of your project,within the Project view/search bar,
- type (in order to display all the textures):
- t:texture2d
- Select all your textures and apply the compression "normal quality" and use Crunch compression => No
After this big reset you can change back your quality settings :)
查到这个解决办法,然后发现图片太多,没办法查,反正原理知道了,写个代码筛选就行
[MenuItem( "Test/tttt" )]
public static void Testttttt()
{
foreach( var assetPath in AssetDatabase.GetAllAssetPaths() )
{
var texture = AssetDatabase.LoadAssetAtPath<Texture2D>( assetPath );
if( texture != null )
{
var importer = AssetImporter.GetAtPath( assetPath ) as TextureImporter;
if(importer!=null && importer.crunchedCompression )
{
Debug.Log(assetPath);
//Find
}
}
}
}