ASSERTION FAILED: TLS ALLOCATOR ALLOC_TEMP_THREAD...

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
                    }
                }
            }
        }
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,940评论 0 23
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,569评论 2 45
  • 最近网上关于这陈思成佟丽娅的文章满天飞!放心,我不是又一个来凑热闹的! 鉴于我一向冷眼旁观的态度,这一次抑制不住的...
    鹿小路阅读 498评论 4 2
  • 山云野雾惹沙鸥,病树稠江弄漫舟。 人枯船老灯将尽,且说痴客好仙游。 望穿家书空对酒,一杯离愁覆难收。 月影年年催人...
    高衫阅读 469评论 6 5
  • 此时,正逢深冬季节,金水河象一面一望无际的水银镜平铺沉睡在气势磅礴的“山峰”下面,在阳光的辉映下,闪着熠熠的光芒。...
    嘟姥姥阅读 283评论 0 0