如果我的应用程序位于前台,然后我打开应用程序切换器然后退出我的应用程序,它会崩溃。控制台中有:
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
但是如果我将其置于后台,然后打开应用程序切换器然后退出我的应用程序,它就不会崩溃。
您在代码中使用静态互斥体吗?如果你这样做的话,你可以检查这个问题。 libc++abi.dylib:因 std::__1::system_error 类型的未捕获异常而终止:互斥锁失败:参数无效