首页 > 代码库 > Looper Could not create wake pip

Looper Could not create wake pip

日志打印

A/Looper(31455): Could not create wake pipe. errno=24


A/Looper(1960): Could not create wake pipe. errno=24

A/libc(1960): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)


A/Looper(16848): Could not create wake pipe. errno=24

App直接飞掉

 

问题:

Native Looper 初始化失败

 

根据日志和APP操作查找Looper.preare();出现的地方

    public static void showToast(final String toast, final int showTimeFlag, final Context context)    {//        new Thread(new Runnable()//        {//            @Override//            public void run()//            {//                Looper.prepare();                Toast.makeText(context, toast, showTimeFlag).show();//                Looper.loop();//            }//        }).start();    }
View Code

 

Looper Could not create wake pip