内存泄漏-应用程序退出信号9。

时间:2022-09-05 18:47:25

I have an application which is dealing with many data structures, uiimageviews, videos, creating bit map context and so on. Every time the application is crashing on its continuous usage for a long time. The application is crashing with the memory warning --> Application exited abnormally with signal 9. What may be its reason. What does signal 9 means.

我有一个应用程序,它处理很多数据结构,uiimageviews,视频,创建位图上下文等等。每次应用程序在长时间的连续使用中崩溃。应用程序与内存警告一起崩溃——>应用程序在信号9中异常退出。可能是它的原因。信号9意味着什么?

3 个解决方案

#1


6  

I think this is due to the memory issue. Your app is using lot of memory due that is app is killed..

我认为这是由于记忆问题。你的应用程序使用了大量的内存,因为这是应用程序被杀死了。

#2


4  

Check out this posting

看看这个帖子

http://lists.apple.com/archives/xcode-users/2011/Mar/msg00837.html

http://lists.apple.com/archives/xcode-users/2011/Mar/msg00837.html

It sounds like it might be related.

听起来好像有关系。

#3


3  

It can also be a privacy/permission issue. We forgot to add NSCameraUsageDescription and UILaunchStoryboardName to Info.plist file and our app crashed with error Message from debugger: Terminated due to signal 9

它也可以是隐私/权限问题。我们忘记添加NSCameraUsageDescription和UILaunchStoryboardName到Info。plist文件和我们的应用程序在调试器中出现错误消息:由于信号9而终止。

After adding the following lines to Info.plist the app sopped crashing.

在添加以下行信息之后。这款应用程序被淘汰了。

<key>NSCameraUsageDescription</key>
<string>The app would like to let you make a picture.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>The app would like to let you choose an item from your Photos.</string>

内存泄漏-应用程序退出信号9。

#1


6  

I think this is due to the memory issue. Your app is using lot of memory due that is app is killed..

我认为这是由于记忆问题。你的应用程序使用了大量的内存,因为这是应用程序被杀死了。

#2


4  

Check out this posting

看看这个帖子

http://lists.apple.com/archives/xcode-users/2011/Mar/msg00837.html

http://lists.apple.com/archives/xcode-users/2011/Mar/msg00837.html

It sounds like it might be related.

听起来好像有关系。

#3


3  

It can also be a privacy/permission issue. We forgot to add NSCameraUsageDescription and UILaunchStoryboardName to Info.plist file and our app crashed with error Message from debugger: Terminated due to signal 9

它也可以是隐私/权限问题。我们忘记添加NSCameraUsageDescription和UILaunchStoryboardName到Info。plist文件和我们的应用程序在调试器中出现错误消息:由于信号9而终止。

After adding the following lines to Info.plist the app sopped crashing.

在添加以下行信息之后。这款应用程序被淘汰了。

<key>NSCameraUsageDescription</key>
<string>The app would like to let you make a picture.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>The app would like to let you choose an item from your Photos.</string>

内存泄漏-应用程序退出信号9。